Authorizations
Body
application/json
- Option 1
- Option 2
- Option 3
Response
Successful response
- Option 1
- Option 2
- Option 3
curl --request POST \
--url https://app.flowglad.com/api/v1/prices \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"price": {
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"startsWithCreditTrial": true,
"slug": "<string>",
"usageMeterId": null
}
}'
{
"price": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"startsWithCreditTrial": null,
"slug": "<string>",
"usageMeterId": null
}
}
curl --request POST \
--url https://app.flowglad.com/api/v1/prices \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"price": {
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"startsWithCreditTrial": true,
"slug": "<string>",
"usageMeterId": null
}
}'
{
"price": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"startsWithCreditTrial": null,
"slug": "<string>",
"usageMeterId": null
}
}
Show child attributes
Successful response
Show child attributes
Was this page helpful?