Cancel a payment

Changed on
delete/payments/{reference}

Request

  • Base URL
    https://api.notchpay.co
  • URL
    https://api.notchpay.co/payments/{reference}
  • Auth
    • API key in header Authorization
    • or API key in header X-Sync

Path parameters

referencestring required

Reference of the transaction

Response

Payment canceled

codeinteger required
statusstring required
messagestring required

Example response

{
  "code": 202,
  "status": "Accepted",
  "message": "Your payment has been canceled"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status