Cancel subscription

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

Cancellation behavior

Send isHard explicitly to choose when the subscription ends:

isHardResult
falseStops renewal and changes the state to CANCELLED. Access can continue until deactivatesAt. Truegate sends Subscription canceled, followed by Subscription expired when the cutoff is reached. The state remains CANCELLED after expiration.
trueImmediately changes the state to DEACTIVATED and sends SUBSCRIPTION_DEACTIVATED. Use this when access must end immediately.

Neither option refunds the payment. For a refund, use Refund a payment.

A successful request returns HTTP 201 with an empty body. Use Get subscription details and the subscription webhooks to update access in your application.

Request signature

Sign only these fields, in order:

projectId → subscriptionId → isHard

Send isHard explicitly and sign its value as true or false.

See Signing requests for the HMAC-SHA-256 algorithm and code example.

Body Params

Signed cancel subscription

string
required
string
required
string
required
boolean
required

Send explicitly and include in the signature. false stops renewal and changes the subscription to CANCELLED, with deactivation scheduled for deactivatesAt at the end of the paid period. true immediately changes it to DEACTIVATED. Neither option refunds a payment.

Responses
201

Subscription cancellation applied. Empty response body. isHard selects immediate deactivation or cancellation until deactivatesAt.

Language
LoadingLoading…
Response
Choose an example:
application/json