Cancel a payment

To cancel a payment, you use a payment resource.

Payments at Cleeng are a reference to the actual payment that happens at the payment gateway or in-app store.

To cancel a payment, make a PATCH request to the /3.1/payments/{paymentId}/cancel endpoint where paymentId is the reference of the payment you want to cancel.

Please note that you can use this endpoint to cancel a payment that has been authorized but not captured yet. (For more information about payment authorization and capture, see here).

Cancelling a payment means that the payment is not processed any further.

patch/payments/{paymentId}/cancel

Request

  • Base URL
    https://api.sandbox.cleeng.com/3.1
  • URL
    https://api.sandbox.cleeng.com/3.1/payments/{paymentId}/cancel
  • Auth
    API key in header X-Publisher-Token

Path parameters

paymentIdstring required

The identifier of Cleeng payment.

Headers

Content-Typestring

Response

200

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Payment cancelled successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.