Create Mandate Token
Changed onThis API is used to initate the process to Create a Mandate and is applicable for BillDesk Hosted Payments Page and BillDesk Web SDK workflows
Request
- Base URLhttps://uat1.billdesk.com/u2
- URLhttps://uat1.billdesk.com/u2/pgsi/ve1_2/mandatetokens/create
- Authnone declared. Required headers: BD-Traceid, BD-Timestamp, Content-Type, Accept
Headers
BD-TraceID is a unique identifier passed by the merchant to ensure request idempotency. Requests with identical BD-TraceID within a 24 hour window would fail.
Request timestamp to identify date and time of origin of request. Example, a value of BD-Timestamp 20210113180403 identifies the request to have originated on 13th January 2021 at 06:04:03 PM.
Request Content-Type to take the values application/jose
Accept Response Content-Type to take the values application/jose
Request body
Example request
{
"mercid": "BDMERCID",
"customer_refid": "CSREF00001",
"subscription_refid": "SUBREF101",
"subscription_desc": "Unlimited Plan",
"amount": "299.28",
"start_date": "2021-05-08",
"end_date": "2059-12-31",
"debit_day": "1",
"customer": {
"first_name": "John",
"last_name": "Doe",
"mobile": "9022979988",
"mobile_alt": "9022979982",
"email": "abc@xyz.com",
"email_alt": "abc@xyz.com"
},
"ru": "https://www.merchant.com",
"device": {
"user_agent": "Mozilla/5.0(WindowsNT10.0;WOW64;rv: 51.0)Gecko/20100101Firefox/51.0",
"accept_header": "application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
},
"additional_info": {
"additional_info1": "Details1",
"additional_info2": "Details2",
"additional_info3": "Details3",
"additional_info4": "Details4",
"additional_info5": "Details5",
"additional_info6": "Details6",
"additional_info7": "Details7"
}
}Response
OK
Example response
{
"mercid": "BDMERCID",
"customer_refid": "CSREF00001",
"subscription_refid": "SUBREF101",
"subscription_desc": "Unlimited Plan",
"start_date": "2021-05-08",
"end_date": "2059-12-31",
"amount": "299.28",
"ru": "https://www.merchant.com",
"customer": {
"first_name": "John",
"last_name": "Doe",
"mobile": "9022979988",
"mobile_alt": "9022979982",
"email": "abc@xyz.com",
"email_alt": "abc@xyz.com"
},
"additional_info": {
"additional_info1": "Details1",
"additional_info2": "Details2",
"additional_info3": "Details3",
"additional_info4": "Details4",
"additional_info5": "Details5",
"additional_info6": "Details6",
"additional_info7": "Details7"
},
"debit_day": "1",
"links": [
{
"parameters": {
"mercid": "BDMERCID"
}
}
]
}Changes
- breaking
the request property
/became required - breaking
the request property
/became required - warning
changed the pattern of the request property
/from^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9\-]+)*(\.[A-Za-z]{2,6})$to^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9\\-]+)*(\\.[A-Za-z]{2,6})$ - warning
changed the pattern of the request property
/from^[\+]{0,1}[0-9]{5,15}$to^[\\+]{0,1}[0-9]{5,15}$ - warning
added the new
refundenum value to theresponse property for the response status - info
added the new optional request property
/ - info
added the new optional request property
/ - info
removed the pattern
^[A-Za-z0-9]{1,15}$from the request property/ - info
removed the pattern
^[A-Za-z0-9]{1,15}$from the request property/ - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the
/response's property pattern was changed from^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9\-]+)*(\.[A-Za-z]{2,6})$to^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9\\-]+)*(\\.[A-Za-z]{2,6})$for the status - info
the
/response's property pattern was changed from^[\+]{0,1}[0-9]{5,15}$to^[\\+]{0,1}[0-9]{5,15}$for the status - info
the
/response's property pattern^[A-Za-z0-9]{1,15}$was removed for the status - info
the
/response's property pattern^[A-Za-z0-9]{1,15}$was removed for the status
- breaking