To cancel a payment, you must call the API method cancel. You can cancel a payment if, only if, its status is open (OP) or pending (PE). It’s important to remember that is not possible to cancel confirmed payments (CO), only refunded.

A successful request will return a JSON expression similar to the one below.