Cancels 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.
An optional message describing the reason for the cancellation. (maximum of 40 characters)
A unique transaction identifier generated by Trustly (15 character max).
3-letter ISO Currency Code. Currently only USD is supported.
The amount of the transaction. (10 characters with support for 2 decimal places)
The total amount that is still pending completion. (10 characters with support for 2 decimal places)
The total amount that was already paid. (10 characters with support for 2 decimal places)
The total amount that was refunded. (10 characters with support for 2 decimal places)
The total amount that was reversed. (10 characters with support for 2 decimal places)
The balance of the amount paid, minus the amount reversed and/or refunded. (10 characters with support for 2 decimal places)
Status code of the Payment Provider Transaction record. Definitions and descriptions can be found in this table
A descriptive status message. (120 characters)