curl --request POST \
--url https://app.flowglad.com/api/v1/prices \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"price": {
"intervalUnit": "day",
"intervalCount": 123,
"type": "<string>",
"isDefault": true,
"unitPrice": 4503599627370495,
"productId": "<string>",
"name": "<string>",
"trialPeriodDays": 4503599627370495,
"usageEventsPerUnit": "<unknown>",
"active": true,
"slug": "<string>",
"usageMeterId": "<unknown>"
}
}
'{
"price": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": "<unknown>",
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": "<unknown>",
"trialPeriodDays": 4503599627370495
}
}curl --request POST \
--url https://app.flowglad.com/api/v1/prices \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"price": {
"intervalUnit": "day",
"intervalCount": 123,
"type": "<string>",
"isDefault": true,
"unitPrice": 4503599627370495,
"productId": "<string>",
"name": "<string>",
"trialPeriodDays": 4503599627370495,
"usageEventsPerUnit": "<unknown>",
"active": true,
"slug": "<string>",
"usageMeterId": "<unknown>"
}
}
'{
"price": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": "<unknown>",
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": "<unknown>",
"trialPeriodDays": 4503599627370495
}
}Show child attributes
day, week, month, year A positive integer
x <= 9007199254740991"subscription"Whether or not this price is the default price for the product.
The price per unit. This should be in the smallest unit of the currency. For example, if the currency is USD, GBP, CAD, EUR or SGD, the price should be in cents.
0 < x <= 9007199254740991The trial period in days. If the trial period is 0 or null, there will be no trial period.
0 < x <= 9007199254740991Omitted.
Omitted.
Successful response
Show child attributes
Epoch milliseconds.
-9007199254740991 <= x <= 9007199254740991Epoch milliseconds.
-9007199254740991 <= x <= 9007199254740991day, week, month, year A positive integer
x <= 9007199254740991"subscription"Whether or not this price is the default price for the product.
The price per unit. This should be in the smallest unit of the currency. For example, if the currency is USD, GBP, CAD, EUR or SGD, the price should be in cents.
0 < x <= 9007199254740991Omitted.
Currency code
USD, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW Omitted.
The trial period in days. If the trial period is 0 or null, there will be no trial period.
0 < x <= 9007199254740991Was this page helpful?