Subscription Cancellation Endpoint
Overview
Endpoint
This endpoint allows cancellation of an existing subscription by ID.
Path parameters
subscription_idinteger · int64RequiredExample:
Unique numeric identifier of the subscription to be cancelled. This is the subscription ID provided when the subscription was created.
123456789Header parameters
Content-TypestringRequiredDefault:
Media type of the body sent to the API.
application/jsonX-Datestring · date-timeRequired
ISO8601 Datetime with Timezone (yyyy-MM-dd'T'HH:mm:ssZ)
X-LoginstringRequired
Merchant X-Login API Key.
AuthorizationstringRequired
Authorization control hash.
X-Idempotency-KeystringOptional
Unique idempotency key for ensuring that the same request is not processed more than once.
Body
objectOptional
Responses
200
Subscription successfully cancelled
application/json
Responseobject
420
Subscription does not exist
application/json
421
Subscription was already cancelled
application/json
426
Subscription is terminated and cannot be cancelled
application/json
501
Generic Error
application/json
delete
/v3/subscriptions/{subscription_id}Request Parameters
Parameter
Type
Required
Description
Request Body
Response
Success Response
Error Responses
Subscription Already Cancelled (421)
Subscription Not Found (420)
Subscription Terminated (426)
Generic Error (501)
Cancellation Effects
Important Notes
Last updated
Was this helpful?

