Cancel a payment request
It is possible to cancel a payment request, as long as it is still pending processing (the status must be CREATED).
Request Data Model
These are all the parameters you can configure when making a request.
| Property | Type | Required | Description |
|---|---|---|---|
uniqueReference | String | Yes | Reference number sent in the charge request. |
serialNumber | String | Yes | Terminal serial number. |
Request
{"uniqueReference": "1234555","serialNumber": "PBN7233T31647"}
Response
If the response is correct, you will receive a 201 status with the message “La petición de cobro ha sido cancelada exitosamente” (The charge request has been successfully canceled).
In case of error, for example if the charge has already been processed, you will receive a 422 code and a response like the following:
{"message": "No se puede realizar la cancelación de la transacción","creationDate": "2024-09-19T19:00:00-06:00","transactionID": "abc676","updateDate": "2024-09-19T19:00:00-06:00","status": "APPROVED"}
Chile
Colombia
Ecuador
Peru