Cancels a customer’s subscription. By default, the subscription remains active until the end of the current billing period. Set cancellation_timing to ‘immediate’ to cancel immediately.
API key authentication. Include your API key in the Authorization header as: Bearer
Cancel a customer subscription
The customer ID
The subscription ID to cancel
When to cancel the subscription. Defaults to 'at_billing_period_end' to allow customers to use remaining time.
immediate, at_billing_period_end The canceled subscription object with updated status
Cancel subscription response