Skip to main content
POST
Add Mandate

Authorizations

x-api-key
string
header
required

Merchant API Key

x-signature
string
header
required

Generated request signature

Body

application/json
subscriptionId
string<MongoId>
required

Subscription which requires mandate to be updated.

returnUrl
string
required

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.

pendingUrl
string

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.

successUrl
string

If the mandate is in successful state, the customer will be redirected to this URL. If returnUrl is passed, this parameter is not mandatory.

failedUrl
string

If the mandate is in failed state, the customer will be redirected to this URL. If returnUrl is passed, this parameter is not mandatory.

Response

200 - application/json

Specific mandate details

status
string

The response from the API

sub_status
string

Used for internal purposes only

data
object

Contains the mandateId and URL.