v1
latestOpenAPI 3.0.02026-07-2431146358.7 KBMandate
Modify Mandate
List of attributes that can be modified depend upon the payment method type. An AFA using the payment method linked with the mandate is required to modify one or more of the attributes.
post/pgsi/ve1_2/mandates/modify
Headers
BD-Traceidstring required
Example:20201203182838
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.
BD-Timestampstring required
Example:20201203182838
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.
Content-Typestring required
Example:application/json
Request Content-Type to take the values application/jose
Acceptstring required
Example:application/jose
Accept Response Content-Type to take the values application/jose
Request body
Example request
{
"mercid": "BDMERCID",
"mandateid": "MA19E400049927",
"end_date": "2059-12-31",
"amount": "2400.00",
"authentication_type": "3ds2",
"card": {
"number": "4242420000001234",
"expiry_month": "02",
"expiry_year": "2029",
"holder_name": "John Doe",
"cvv": "123"
},
"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"
}
}Response
OK
Example response
{
"transactionid": "U4560001099939",
"mandateid": "MA19E400049927",
"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",
"ru": "https://www.merchant.com",
"card": {
"type": "debit, credit, prepaid",
"masked_value": "xxxxxxxxxxxx1001",
"network": "VISA, MASTER"
},
"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"
}
}