post https://evaluation-api.azpay.services/v1/receiver#debitCardAuthorization
Through this endpoint is possible to Authorize a debit card transaction
Important!
Keep the body params following the same sequence as you see above!
Important!
A Debit Card Transaction is different from a Credit Card Transaction. The customer must be redirected to the url in the
<urlAuthentication>
field in the response.
Example of API Response:
{
"transactionId": "1FE42991-4FC0-0A0F-45D8-E51A239D18BB",
"operationId": 1,
"status": 0,
"message": "WAITING FOR PAYMENT",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"currency": "986",
"totalAmount": 10000,
"dateTime": "2019-02-15T15:15:32.185-02:00"
},
"processor": {
"flag": "mastercard",
"amount": "10000",
"numberOfPayments": "1",
"acquirer": "CIELO",
"acquirerId": "1",
"urlAuthentication": "https:\/\/qasecommerce.cielo.com.br\/web\/index.cbmp?id=361975c97fbc9e3ee4aac6a19dc28993",
"code": "",
"message": "",
"lr": "",
"arp": "",
"nsu": "",
"tid": "1006993069000DA9E1AA",
"pan": "CEeH6QJ5ixXfekMJFuInU3ZSB87fPcKJ8\/kDP0g8drs=",
"eci": "",
"statusCode": "0",
"avsResponseCode": "",
"tokenCard": "8f6fd224c582686f67f98c1fef198794bfabf69330c93ec08719c90f53f2a663"
}
}
{
"transactionId": null,
"status": {
"code": 409,
"message": "ERROR - XML"
},
"result": {
"error": {
"code": 101,
"action": "XML",
"message": "XML ERROR",
"details": "<![CDATA[Element 'merchantKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '10'.\n]]>",
"moreInfo": "<![CDATA[Please check fields format and special character.]]>"
}
}
}