curl --request DELETE \
--url https://api.rootfi.dev/v4/payments/subscriptions/{id} \
--header 'api_key: <api-key>'{
"success": true
}Cancel a subscription.
curl --request DELETE \
--url https://api.rootfi.dev/v4/payments/subscriptions/{id} \
--header 'api_key: <api-key>'{
"success": true
}| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The rootfi_id or platform_id of the subscription |
| Parameter | Type | Required | Description |
|---|---|---|---|
| cancel_at_period_end | boolean | No | If true, cancels at end of current period (default: true) |
| prorate | boolean | No | If true, issues prorated credit for unused time |