Jetpay Developer Guide
Using the API
Canceling a Transaction
1 min
if the processing of a payment has not started yet (funds for the transaction have not been pulled from the source bank account), the transaction can be canceled this is made possible by using the cancel transaction endpoint sequencediagram participant partner as partner participant api as jetpay api partner >>+api create debit transaction note right of api put /debit (v0) api >> partner r debit transaction created note right of api 201 created partner >>+api cancel transaction note right of api delete /transaction/{transactionid} (v0) api >> partner r transaction deleted note right of api 200 ok ⚠warning a transaction must be canceled before funds are pulled from the source bank account for the cancelation to be accepted if the funds have already been pulled from the source bank account, it is not longer possible to cancel the transactions, and unless an error occurs during the transaction process, the funds will be pushed into the destination account