v1
latestOpenAPI 3.0.02026-07-2431146358.7 KBMandate
Update Mandate
This API is used to carry out a ‘small value’ authorization using the payment method linked to the mandate, and is applicable for the card payment method.
post/pgsi/ve1_2/mandates/update
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
{
"mandateid": "MA19E400049927",
"mercid": "BDMERCID",
"card": {
"number": "4242420000001234",
"expiry_month": "02",
"expiry_year": "2029",
"holder_name": "John Doe",
"cvv": "123"
},
"response_parameters": {
"cres": "eJytmFmvo8iSgN/5Fa26j 1Y3qxdariMlO9hgsy8vIwyYfTGLWX7 94HP6VFXX1Ghujy7S0UmCzMiIzIgv0 nk0kjaKGD0KhjZ6O8pR1XyXA364Xvl 88vF+ivl/jvm6mfrze/W+TZS3g",
"AccuResponseCode": "ACCU000 ",
"session": "X4440639244491",
"AccuGuid": "a13df076-5c82-4fbf-aa5c-be11e9847e9a",
"AccuRequestId": "MGI2ZTE2M2RjYzJjNTBhMDlkMzA1OTc2NmU3OTBjOTdjNjk3NjA5MDdmY2RlMDI1MTA1MDBjOTYyMzMyODNjNg==\""
}
}Response
OK
Example response
{
"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"
}
}