post https://evaluation-api.azpay.services/v1/receiver#ClearSaleAntiFraud
Through this endpoint is possible to authorize a credit card with an Anti-Fraud
Important!
Keep the body params following the same sequence as you see above!
Example of API Response:
{
"transactionId": "0EE7521A-B30C-0C95-C481-822C7FABE773",
"operationId": 1,
"status": 3,
"message": "AUTHORIZED",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"currency": "986",
"totalAmount": 10000,
"dateTime": "2019-02-18T13:21:35.352-03:00"
},
"processor": {
"flag": "mastercard",
"amount": "10000",
"numberOfPayments": "1",
"acquirer": "CIELO",
"acquirerId": "1",
"urlAuthentication": "",
"code": "4",
"message": "Transa\u00e7\u00e3o autorizada",
"lr": "00",
"arp": "123456",
"nsu": "330226",
"tid": "1006993069000DAA972A",
"pan": "07TIgQCiIMJ9uDby3dyD7cp8cD8xLd8XuNQ2CqXb5N4=",
"eci": "0",
"statusCode": "4",
"avsResponseCode": "",
"tokenCard": "0de3b2ca40b4c628f4bccd554c0dfa6621d6b77139c6e7e20246fe4bc4f7140d"
}
}
{
"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.]]>"
}
}
}