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