Create Subscription

The Create Subscription API allows partners to create recurring payments using a card or bank account token.
post
https://<PayEngine-host>
/api/payment/subscription
Webhook event: SUBSCRIPTION_CREATED

Webhook Payload Example

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