Cancel subscription

Path Params
string
required
length between 5 and 36

Subscription ID

Body Params
date-time | null

If cancelDate is not passed or is set to null, subscription will be canceled immediately

string | null

Provide the reason for subscription cancellation

boolean

Send an email upon subscription cancellation. Set to true by default

boolean

If passed, cancelDate will be set to 1 hour before the expected rebill date, overriding any previously passed cancelDate value

Headers
string

Unique ID of the request, used for idempotency.

The gateway remembers an X-Request-ID for 5 minutes. A repeated request with the same ID within this window returns the stored response of the original request (same status, headers and body) and is not processed again. If the original request is still being processed, the repeated request waits for it and returns its response. After 5 minutes the same ID is treated as a new request.

Request IDs are scoped to your API key.

Responses

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