# Void

## Introduction

- Void refers to the cancellation operation initiated by the merchant after transaction authorization and before capture. After a successful void, the transaction will not enter the clearing process, and the customer's funds will not actually be deducted.
- Once the transaction has been captured, it cannot be voided and can only be refunded.


## Void Transaction

Request Example
[Cancel](/payments/apis/payments/openapi/capture-and-void/payments-void-opl_1)

```json
{
  "merchant_id": "YOUR_MERCHANT_ID",
  "order_id": "GW_order_id",
  "reason": "REQUESTED_BY_CUSTOMER"
}
```

Successful Response Example

```json
{
  "ret_code": "000000",
  "ret_msg": "Success",
  "data": {
    "merchant_id": "YOUR_MERCHANT_ID",
    "order_id": "GW_order_id"
  }
}
```

Failed Response Example

```json
{
  "ret_code": "010000",
  "ret_msg": "Invalid request"
}
```

## Result Notification

Refer to [Webhook](/payments/docs/developer-resources/webhook)