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

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 false.

cancellation_details Object No

Details about why this subscription was cancelled

cancellation_details.comment No
cancellation_details.feedback String No

Possible values:

  • ""
  • "switched_service"
  • "low_quality"
  • "other"
  • "unused"
  • "customer_service"
  • "missing_features"
  • "too_complex"
  • "too_expensive"
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 false.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.