Skip to main content
DELETE
/
payments
/
{reference}
Cancel a payment
curl --request DELETE \
  --url https://api.notchpay.co/payments/{reference} \
  --header 'Authorization: <api-key>'
{
  "code": 202,
  "status": "Accepted",
  "message": "Your payment has been canceled"
}

Documentation Index

Fetch the complete documentation index at: https://developer.notchpay.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

reference
string
required

Reference of the transaction

Response

Payment canceled

code
integer
required
Example:

202

status
string
required
Example:

"Accepted"

message
string
required
Example:

"Your payment has been canceled"