post https://evaluation-api.azpay.services/v1/receiver#creditCardCapture
Through this endpoint is possible to Capture a credit card transaction
Important!
Keep the body params following the same sequence as you see above!
Example of API Response:
{
"transactionId": "9CF8E1DE-9CDA-A6B8-55CF-F0C91A8A8A70",
"operationId": 2,
"status": 8,
"message": "CAPTURED",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"totalAmount": "10000",
"currency": "986",
"dateTime": "2019-02-15T14:28:28.427-02:00"
},
"processors": [
{
"processor": {
"acquirer": "CIELO",
"acquirerId": "1",
"flag": "mastercard",
"amount": "10000",
"details": {
"code": "6",
"message": "Transacao capturada com sucesso",
"date": "2019-02-15T14:29:32.965-02:00",
"statusCode": "6",
"tid": "1006993069000DA9D97A"
},
"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.]]>"
}
}
}