curl --request DELETE \
--url https://us.api.flexprice.io/v1/creditgrants/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"effective_date": "<string>"
}
'{
"message": "<string>"
}Use when removing or ending a credit grant (e.g. revoke promo or close prepaid). Plan-scoped grants are archived; subscription-scoped supports optional effective_date in body.
curl --request DELETE \
--url https://us.api.flexprice.io/v1/creditgrants/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"effective_date": "<string>"
}
'{
"message": "<string>"
}Enter your API key in the format x-api-key <api-key>*
Credit Grant ID
Optional: effective_date for subscription-scoped grants
EffectiveDate is optional; when set (subscription scope) the grant end date is set to this time.
OK