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": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}'
{
"price": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"currency": "USD",
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}
Successful response
The response is of type object
.
Was this page helpful?
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": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}'
{
"price": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"currency": "USD",
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<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": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}'
{
"price": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"currency": "USD",
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}
Successful response
The response is of type object
.
Was this page helpful?
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": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}'
{
"price": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "subscription",
"trialPeriodDays": 123,
"setupFeeAmount": 123,
"isDefault": true,
"unitPrice": 123,
"usageEventsPerUnit": "null",
"productId": "<string>",
"active": true,
"currency": "USD",
"startsWithCreditTrial": true,
"slug": "<string>",
"overagePriceId": "<string>",
"usageMeterId": "null"
}
}