Cancel subscription

Cancels a subscription. Another shopper's subscription is 404 and nothing changes.

Call this from your server with your merchant credentials — never from a browser or app. The shopper is identified by email in the X-Customer-Email header; you only see that shopper's subscriptions.

Idempotent: an already cancelled subscription returns 200 unchanged. A subscription still pending_payment or creating is 409. subscription.canceled is sent when the subscription actually ends, not when this call returns.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The subscription_id (sub_…).

Body Params
Headers
string
required
length ≥ 3

The shopper's email, as sent to POST /api/v1/checkout/init (case-insensitive).

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json