POST
/
api
/
payment-request
/
cancel
/
{paymentRequestId}
curl --request POST \
  --url https://api.atoa.me/api/payment-request/cancel/{paymentRequestId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Your payment has been cancelled successfully."
}

The Cancel Payment API facilitates the quick cancellation of a payment request. Simply pass the paymentRequestId obtained during payment generation.

The payment can be cancelled if the status of the payment request is in PAYMENT_NOT_INITIATED or AWAITING_AUTHORIZATION.

AUTHORIZATIONS: Bearer <token>

paymentRequestId
string
required

RESPONSE

message
string

Your payment has been cancelled successfully.