Cancel Subscription
The Cancel Subscription API allows partners to cancel subscription by providing subscription id and the subscription will be cancelled immediately
Cancel the subscription
Name
Type
Description
Request Body
Name
Type
Description
Field Name
Type
Description
Required?
curl --location --request GET '<API_HOST>/api/merchant/2be66e67-88a7-4e04-985d-0a1cfb0a648c/recurring-payments/recurring-payments/subscriptions/e90c1de6-4e87-4c9e-bcbc-c535d6e349ec'/cancel \
--header 'Authorization: Basic <API_KEY>'{
"subscription_id": "1020c780-e4e5-4457-a0e3-b709d7223231",
"subscription_status": "CANCELLED",
"message": "Subscription cancelled",
}Webhook Payload Example
{
event_uid: '4d304a4ed5a4e338b4753ab832efd9c0',
event: 'SUBSCRIPTION_CANCELLED',
data: {
subscription_id: 'a65ju',
subscription_status: 'CANCELLED',
success: true,
message: 'Subscription was cancelled successfully'
}
}Last updated