Cancellation API
The Cancellation API allows you to cancel a transaction previously generated by theAuthorization API.
With the DELETE method of the orchestrator, transactions can be cancelled or terminated according to their current state.
Transactions with status
REGISTRADOorPENDIENTE, will be updated to statusCANCELADO.Transactions with status
AUTORIZADO, will be updated to statusEXTORNADO.
REQUEST
Path
Method: DELETE
URL: {{base}}/charges/{{merchant_code}}/{{merchant_operation_number}}
Field | Description | Accepted Value | Type |
|---|---|---|---|
| Merchant ID | Alfanumeric |
|
| Merchant operation number | Alfanumeric |
|
Headers
For all payment methods, the following parameters will be sent in the request header:
Field | Description | Accepted Value | Type |
|---|---|---|---|
| Identification token for API usage previously created in Oauth API | Alfanumeric |
|
RESPONSE
Field | Description | Accepted Value | Type | Madatory |
|---|---|---|---|---|
| Indicates whether the process was successful | Alfanumeric:
|
| YES |
| Merchant ID | Alfanumeric |
| YES |
| Order number of the operation that was cancelled or extended | Numeric greater than or equal to 6 digits |
| YES |
| Object containing metadata of the executed flow |
|
| YES |
| Object containing the result of the executed flow |
|
| YES |
| Code representing the result of the executed flow | Numeric |
| YES |
| Object that contains the message resulting from the flow. |
|
| YES |
| Language-level locale for the message of the executed stream | Alfanumeric |
| YES |
| Message resulting from the executed flow | Alfanumeric |
| YES |
Example
{
"success": true,
"merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
"merchant_operation_number":"",
"meta": {
"status": {
"code": "00",
"message_ilgn": [
{
"locale": "es_PE",
"value": "Se proceso correctamente"
}
]
}
}
}