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

Authorizations

Authorization
string
header
required

Path Parameters

reference
string
required

Reference of the transaction

Response

202
application/json
Payment canceled

The response is of type object.