DELETE /v1/subscriptions/{subscription_exposed_id}
Cancels a customer’s subscription immediately. The customer won’t be charged again for the subscription. After it’s canceled, you can no longer update the subscription or its metadata.
Any pending invoice items that you’ve created are still charged 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 are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now
and prorate
are both set to true.
By default, upon subscription cancellation, Stripe stops 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.
Servers
- https://api.stripe.com/
Path parameters
Name | Type | Required | Description |
---|---|---|---|
subscription_exposed_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
prorate |
Boolean | No |
Will generate a proration invoice item that credits remaining unused time until the subscription period end. Defaults to |
cancellation_details |
Object | No |
Details about why this subscription was cancelled |
cancellation_details.comment |
No | ||
cancellation_details.feedback |
String | No |
Possible values:
|
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
invoice_now |
Boolean | No |
Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.