---
title: "Cancel eWallet Payment"
method: POST
path: "/debit/cancel"
---

# Cancel eWallet Payment

`POST /debit/cancel`

The following endpoint can be used to cancel an incomplete eWallet payment.

## Headers

- `Content-Type` string, required
- `X-TIMESTAMP` string, required
- `Authorization` string
- `X-SIGNATURE` string, required
- `X-PARTNER-ID` string, required
- `X-EXTERNAL-ID` string, required
- `CHANNEL-ID` string, required

## Request body

- object
  - `partnerReferenceNo` string, required — Merchant internal payment reference ID.
  - `originalPartnerReferenceNo` string, required — Durianpay internal payment reference ID.
  - `reason` string — Reason of cancellation.

## Response `200`

This response indicates that eWallet transaction cancellation was successful.

- object
  - `additionalInfo` object
    - `trace_id` string — Unique identifier for the single request. To be shared with Durianpay Team if required.
  - `cancelTime` string — Cancellation time. The value will only be available when cancellation was successful.
  - `originalReferenceNo` string, required — Durianpay internal payment reference ID.
  - `responseCode` string, required — Response code indicating the result of the operation.
  - `responseMessage` string, required — Message explaining the responseCode.

## Other responses

- `202` — This response confirms that the eWallet transaction cancellation has been accepted and is now in progress.
- `400` — This response indicates a client-side error occurred while processing the request.
- `403` — This response indicates that the request was rejected due to insufficient permissions.
- `404` — This response indicates a server-side not found error occurred while processing the request.
- `500` — This response indicates a server-side error occurred while processing the request.

---

[API](https://skmtc.net/durianpay/apis/durianpay-api.md) · [All operations](https://skmtc.net/durianpay/apis/durianpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/durianpay/durianpay-api/versions/ffc0e7e8a227/schema)
