Update Subscription

The Update Subscription API allows partners to update the card or account token associated with a subscription.
Note: For any other updates to a subscription we recommend canceling the subscription and creating a new one
patch
https://<PayEngine-host>
/api/payment/subscription/:subcriptionId
Webhook event: SUBSCRIPTION_UPDATED

Webhook Payload Example

{
event_uid: '4d304a4ed5a4e338b4753ab832efd9c0',
event: 'SUBSCRIPTION_UPDATED',
data: {
subscriptionId: 'e90c1de6-4e87-4c9e-bcbc-c535d6e349ec',
subscriptionStatus: 'ACTIVE',
merchantId: 'c404d923-226f-4aae-92da-22c1ef370434',
startDate: <start timestamp>,
endDate: <end timestamp>,
amount: '150.00',
frequency: 'MONTHLY',
frequencyFactor: 1,
}
}