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

# Gas不足通知回调

`NOTIFY_NOT_ENOUGH_HOT_MONEY` (type=7)

当提币操作因热钱包主币余额不足（Gas不足）而暂时失败时，WaaS会通过此回调通知商户。这是一个临时性失败状态，**商户向热钱包补充主币余额后，该提币单会自动重试处理**。

### 核心说明

1. **Gas费用不足**：热钱包缺乏足够的主币支付网络手续费
2. **资金保持冻结**：用户提币资金保持冻结状态
3. **后续操作**：补充热钱包的主币余额后，WaaS会自动重试提币

### 请求参数

WaaS发送的请求是经过**RSA加密的Base64字符串**，商户需解密获取业务参数：

<ResponseField name="Gas不足请求参数" type="object">
  <Expandable title="查看完整参数列表">
    <ResponseField name="callBackId" type="String" required="是" example="250529528850002">
      lBackId 的唯一性。WaaS 将携带该参数主动回调商户，以通知商户哪一笔提币订单因 Gas 不足而触发了回调。
    </ResponseField>
  </Expandable>
</ResponseField>

### 响应参数

商户处理完回调后，需返回 JSON 格式的响应体。其中 `data` 字段需返回 **RSA加密的Base64字符串**（使用 WaaS 提供的公钥加密），其余字段为明文：

<ResponseField name="Gas不足响应参数" type="object">
  <Expandable title="查看完整参数列表">
    <ResponseField name="apiKey" type="String" required="是" example="88c47568-8d24-4983-9b4c-y1ec8b939e9b">
      商户的唯一 API 标识符
    </ResponseField>

    <ResponseField name="data" type="String" required="是" example="i2H9eQf22gLnJoTeo1WbWVR6wmNv/Ryom5UjTPm4yM2aeuQUkpsErZAY...">
      加密的业务数据,比如：i2H9eQf22gLnJoTeo1WbWVR6wmNv(具体可参考右侧示例)

      由以下原始业务参数加密生成：

      **requestUUID** (String) : 请求的唯一标识符号，商户在响应中需要同样返回相同的requestUUID以帮助 WaaS 确认

      **tenantUserId** (String) : 发起提款的用户ID(在商户系统中，并非WaaS系统中)

      **type** (Integer) : 回调类型

      **trackingId** (String) : 业务事件标识符

      **callBackId** (String) : 回调ID
    </ResponseField>

    <ResponseField name="errCode" type="Integer" required="是" example="0">
      全局处理状态码：
      `0`=成功，非`0`=失败
    </ResponseField>

    <ResponseField name="message" type="String" required="是" example="">
      错误详情（失败时必填）：

      * 成功时可返回空字符串
      * 失败时需描述具体错误
    </ResponseField>
  </Expandable>
</ResponseField>

***

<RequestExample>
  ```mdx 解密后原始请求
  {
    "business": 0,
    "requestUUID": "5aceadbb-0783-4d38-895a-3418127c5f10",
    "tenantUserId": "1945",
    "callBackId": "250529528850002",
    "type": 7,
    "trackingId": "101934"
  }
  ```
</RequestExample>

<ResponseExample>
  ```mdx 解密后的响应参数结构
  {
    "apiKey": "88c47568-8d24-4983-9b4c-y1ec8b939e9b",
    "errCode": 0,
    "data": "{\"type\":7,\"callBackId\":\"250529528850002\",\"trackingId\":\"101934\",\"requestUUID\":\"5aceadbb-0783-4d38-895a-3418127c5f10\",\"tenantUserId\":\"1945\"}"
    "message": ""
  }
  ```
</ResponseExample>
