Cancel a subscription

DELETE {{baseUrl}}/v1/subscriptions/:subscription_exposed_id

Cancels a customer’s subscription immediately. The customer will not be charged again for the subscription.

Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.

By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.

Request Body

[{"name"=>"cancellation_details[comment]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"cancellation_details[feedback]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[1]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"invoice_now", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"prorate", "value"=>"<boolean>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring