cURL
curl --request POST \ --url https://api.example.com/api/v1/subscriptions/{subscription_id}/cancel \ --header 'Content-Type: application/json' \ --data ' { "cancel_at_period_end": true, "reason": "<string>" } '
Cancel a subscription immediately or at the end of the current billing period.
true
false
Was this page helpful?