post https://evaluation-api.azpay.services/v1/receiver#transactionCancel
Through this endpoint is possible to Cancel a transaction
Important!
Keep the body params following the same sequence as you see above!
Example of API Response:
{
"transactionId": "710A5D3A-238B-A1A8-06F0-34A20B044177",
"operationId": 5,
"status": 6,
"message": "CANCELLED",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"totalAmount": "10000",
"currency": "986",
"dateTime": "2019-02-18T13:39:25.557-03:00"
},
"processors": [
{
"processor": {
"acquirer": "CIELO",
"acquirerId": "1",
"amount": "10000",
"details": {
"code": "9",
"message": "Transa\u00e7\u00e3o desfeita",
"date": "2019-02-18T13:44:03.285-03:00",
"statusCode": "9",
"tid": "1006993069000DAA984A"
},
"avsResponseCode": "",
"tokenCard": ""
}
}
]
}
{
"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.]]>"
}
}
}