Cancel a Payment
If you created the payment link through the API, you were given a transaction link as well as an identifier. The identifier is what we use to identify a transaction, which is also contained in the last section of the link.
If you did not save the identifier or link, transaction identifiers can be found on the Payment page on your Jetpay dashboard.
Simply click on the payment in the Payments table to see all transaction details, including the ID.

Now that you have an API token and a payment identifier, you are ready to cancel the transaction.
See the API docs for the Transaction Cancel for more details and additional languages. If you have followed the steps in Getting your API Key, you can call the endpoint with the parameters we've gathered.
If you want to test this without setting up a client, you can do this by using CURL.
- Replace <your api token here> and {identifier} with the API token and identifier you just found.
When the transaction is deleted, you will receive a HTTP 200 response from the API with "ok" set to true. On the right is a sample response.
Transactions may only be cancelled before they are processed; once the payment or debit has been accepted, the transaction can no longer be cancelled, and an error will be returned.
Successful reponse:
Unsuccessful response: