> ## Documentation Index
> Fetch the complete documentation index at: https://docs-payment-merchant.keysecure.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Simulate Consumption Clearance

Simulates a consumption **clearance success** so you can test the clearance notification.

<Note>
  * `card_no`, `amount`, and `consume_no` are all required
  * If you pass `consume_no`, you can omit `pay_type`
  * These APIs **do not use** `Api-Key` / `Access-Token`
</Note>

## Request Headers

<ParamField header="Content-Type" type="string" required default="application/json">
  Fixed to `application/json; charset=utf-8`
</ParamField>

## Request Body

<ParamField body="card_no" type="string" required>
  Card number
</ParamField>

<ParamField body="amount" type="number" required>
  Amount
</ParamField>

<ParamField body="consume_no" type="string" required>
  Consumption order number. Associates the authorization transaction number.
</ParamField>

## Response

<ResponseField name="code" type="number">
  Status code. `0` means success. On failure it matches the HTTP status (e.g. `400` / `500`)
</ResponseField>

<ResponseField name="msg" type="string">
  Response message. `Success` on success, or a specific error reason. No `data` field
</ResponseField>

<RequestExample>
  ```bash Request theme={null}
  curl --request POST \
    --url https://sandbox-openplatform.keysecure.io/open-api/v1/simulate/consumption_clear \
    --header 'Content-Type: application/json' \
    --data '{
      "card_no": "C02606050CI1Y0HS",
      "amount": 10,
      "consume_no": "CC260605GQ51UIV4"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "code": 0,
    "msg": "Success"
  }
  ```
</ResponseExample>
