Cancel Transaction
Transaction
DELETE
https://api.synapsefi.com/v3.1/users/:user_id/nodes/:node_id/trans/:tran_id
This endpoint allows you to cancel a specific transaction.
Path Parameters
Name | Type | Description |
---|---|---|
tran_id | string | ID of the transaction. |
node_id | string | ID of the node. |
user_id | string | ID of the user. |
Headers
Name | Type | Description |
---|---|---|
X-SP-USER | string | User's OAuth key and device fingerprint, separated by a pipe. |
X-SP-USER-IP | string | IP address of your device. |
X-SP-GATEWAY | string | Your Client ID and Secret, separated by a pipe. |
Example Request
To cancel a transaction en route to the recipient, the transaction must not have been batched already. For example, to cancel transactions between native Synapse accounts (ex: Deposit Accounts), they need to have status CREATED
or QUEUED-BY-SYNAPSE.
While a transaction leaving a Deposit Account, to an ACH-US account can be canceled with status CREATED
, QUEUED-BY-SYNAPSE
orPROCESSING-DEBIT
(because outgoing ACH is batched during PROCESSING-CREDIT
).
You cannot cancel an already settled transaction, with the exception of Reversals for Interchange Pull transactions.
If a cancelation fails, you will receive a 400 Bad Request response with error.code:cannot_cancel_transaction
. Go to Possible Transaction Statues to learn more.
Last updated