Integrators will use this the create subscription API to create a specific payment plan for a customer.
Using the subscription, Ezypay will automatically trigger payment collection depending on the frequency and amount configured in the subscription.
By default, what is configured in the PLAN will be inherited by the Subscription. Any similar parameters provided when the subscription is created ("interval", "billingEnd", "billingEndValue") it will overwrite what was setup in the PLAN used.
Subscriptions can be created with as PENDING activation or activated instantly.
More details on what the Subscription can do can be found in the document below:
https://developer.ezypay.com/docs/subscription-payments-for-subscription-model-option
NOTE
If the paymentMethodToken is not provided during the create subscription process, the primary payment method token will be used based on which customer Id was provided.
As soon as an invoice failed from the subscription, the status of the subscription will be updated to "PAST_DUE".