post
https://public-api.asapcashier.test.truegate.tech/api/v1/subscriptions/cancel
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Cancellation behavior
Send isHard explicitly to choose when the subscription ends:
isHard | Result |
|---|---|
false | Stops 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. |
true | Immediately 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.
201Subscription cancellation applied. Empty response body. isHard selects immediate deactivation or cancellation until deactivatesAt.