Payment: Cancel Authorized Amount

Overview

Cancellation of the Authorised Amount is an API request used to cancel a payment that was previously authorised. It instructs the system to interrupt the payment flow, release all previously authorised funds and return them to the payer’s account.


Preconditions

  • The payment method used must support manual capture
  • The payment must not be already captured or cancelled
  • Payment must be authorized Payment Status = "AUTHORIZED"
  • The authorisation must still be valid (i.e. within the capture window)

Use Cases

StepDescription
Step 1You initiate a payment with auto-capture OFF
Step 2The system authorises the amount and holds it on the payer’s account
Step 3You must send a cancellation request within the allowed window
Step 4If you don’t, the payment becomes expired and is marked as cancelled in the system automatically

How it Works

Endpoints

EndpointShort Name
PATCH /api/v1/payments/{id}Initiate the cancellation of the payment and the release of the authorised amount

Possible Results

Full Status Model is available on the page Payment: Overview

Error Reasons

Error CodeDescription
CODE_PT0000Unknown error
CODE_PT0001Request processing time expired
CODE_PT0002Invalid payment details
CODE_PT0003Sender data error
CODE_PT0004Recipient data error
CODE_PT0005Internal processing failure