v1
latestOpenAPI 3.0.02026-07-2431146358.7 KBCreate Mandate
A mandate can be created by providing the details of the subscription and the associated payment method. To create a mandate using a payment method, a ‘small-value’ authorization has to be completed for payment_method_type = card and upi.
Mandates can be created using the card, upi or bankaccount (ie enach) as the payment method.
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",
"start_date": "2021-05-08",
"end_date": "2059-12-31",
"amount": "2400.00",
"authentication_type": "3ds2",
"ru": "https://www.merchant.com",
"debit_day": "1",
"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",
"browser_language": "en-US",
"browser_tz": "-330",
"browser_color_depth": "652",
"browser_screen_height": "452",
"browser_screen_width": "702"
},
"card": {
"number": "4242420000001234",
"expiry_month": "02",
"expiry_year": "2029",
"holder_name": "John Doe",
"cvv": "123"
},
"bankaccount": {
"number": "8928292891111",
"holder_name": "John Doe",
"dest_bank_id": "YBK",
"ifsc": "BANK0000002",
"bank_id": "1HM"
},
"upi": {
"vpa": "abc@okbank"
},
"avs": {
"bankaccounts": [
{
"number": "12233445566",
"ifsc": "IDBK10000002",
"name": "John Doe"
}
]
},
"customer": {
"first_name": "John",
"last_name": "Doe",
"mobile": "9022979988",
"email": "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"
}
}Response
OK
Example response
{
"mercid": "BDMERCID",
"mandateid": "MA19E400049927",
"customer_refid": "CSREF00001",
"subscription_refid": "SUBREF101",
"subscription_desc": "SUBREF101",
"start_date": "2021-05-08",
"end_date": "2059-12-31",
"amount": "2400.00",
"ru": "https://www.merchant.com",
"card": {
"type": "debit, credit, prepaid",
"masked_value": "xxxxxxxxxxxx1001",
"network": "VISA, MASTER"
},
"additional_info": {
"additional_info1": "Details1",
"additional_info2": "Details2",
"additional_info3": "Details3",
"additional_info4": "Details4",
"additional_info5": "Details5",
"additional_info6": "Details6",
"additional_info7": "Details7"
},
"customer": {
"first_name": "John",
"last_name": "Doe",
"mobile": "9022979988",
"email": "abc@xyz.com"
},
"bank_umrn": "130a977ccabb11e7abc4cec278b6b50a@mypsp",
"avs": {
"bankaccount": [
{
"number": "12233445566",
"ifsc": "IDBK10000002",
"name": "John Doe"
}
]
}
}