Cancel Subscription

The Cancel Subscription API allows partners to cancel or inactivate subscriptions, which has the effect of canceling all future recurring payments for that subscription.
​
post
https://<PayEngine-host>
/api/payment/cancel-subscription
Webhook event: SUBSCRIPTION_CANCELLED

Webhook Payload Example

{
event_uid: 'f1b19120cb0b1d9dcf14c27fa59ea227',
event: 'SUBSCRIPTION_CANCELLED',
data: {
subscriptionId: '3cab79a6-31bd-43e6-9a0c-e5870b18fa38',
subscriptionStatus: 'CANCELLED',
message: 'subscription cancelled'
}
}
​