Add Mandate
This API is used to update a specific subscription with a new payment method. Only ACTIVE or PAUSED subscriptions can be updated with a new payment method. If a subscription has cancelAtEnd set to true, this API cannot be called, since the subscription will be automatically canceled at the end of the cycle and adding a new mandate will be useless.
For PENDING subscriptions (which have not been activated once), always use the payURL provided in the Get Subscription API.
This API will not work for subscriptions in terminal states.
Note: Update Mandate, by default, only allows adding a new mandate for a running subscription. If the partner wants, it is possible to request a mandate with the last due unpaid invoice amount. This way, the partner will have a new mandate for auto-debit, and an unpaid invoice will be cleared. This feature can be enabled by requesting the administrative team.
Authorizations
Merchant API Key
Generated request signature
Body
Subscription which requires mandate to be updated.
This URL is needed to redirect the user after the mandate is completed. If this is not passed, we take subscription returnUrl and redirect the customer to that URL.
If the mandate is still in pending state, the customer will be redirected to this URL. If returnUrl is passed, this parameter is not mandatory.
If the mandate is in successful state, the customer will be redirected to this URL. If returnUrl is passed, this parameter is not mandatory.
If the mandate is in failed state, the customer will be redirected to this URL. If returnUrl is passed, this parameter is not mandatory.