curl --request PUT \
--url https://app.flowglad.com/api/v1/prices/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"price": {
"id": "<string>",
"type": "<string>",
"isDefault": true,
"name": "<string>",
"active": true,
"slug": "<string>"
}
}
'{
"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>",
"pricingModelId": "<string>",
"trialPeriodDays": 4503599627370495
}
}curl --request PUT \
--url https://app.flowglad.com/api/v1/prices/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"price": {
"id": "<string>",
"type": "<string>",
"isDefault": true,
"name": "<string>",
"active": true,
"slug": "<string>"
}
}
'{
"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>",
"pricingModelId": "<string>",
"trialPeriodDays": 4503599627370495
}
}Was this page helpful?