Cancel transaction
Changed onCancels an existing transaction that has not yet been processed. A cancellation should be issued as soon as you know the transaction will not be completed.
A Deferred or Instant payment transaction can only be canceled before the payment processing cut-off time. If the Cancel request returns an error, a Refund call should be executed instead.
Additionally, this endpoint can be used to cancel a Bank Authorization when a user revokes access to their bank from your application. If the bank authorization transaction is voided, further /capture or /deposit requests using the canceled transaction will not be permitted. Any outstanding transactions with a pending status related to the bank authorization will remain unchanged and must be canceled individually if necessary.
Request
- Base URLhttps://sandbox.trustly.one/api/v1
- URLhttps://sandbox.trustly.one/api/v1/transactions/{transactionId}/cancel
- AuthHTTP basic
Path parameters
Authorization Transaction ID retrieved from a Trustly Deferred or Recurring transaction.
Request body
Response
OK
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
HTTPBasicwas added to the API
- warning
- info
api operation id
post-transactions-cancelremoved and replaced withtransactions_post-transactions-cancel
- info