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

# 查询下发订单列表

> 按时间范围分页查询下发子单，支持按批次号、状态、审批状态等条件筛选。

## 概述

本页说明「查询下发子单列表」接口，完整的请求参数、响应结构与示例由关联的 OpenAPI 定义渲染。

## 说明

* 认证方式使用 GatePay 标准签名请求头。
* 常用于对账兜底与审计追溯；建议与出款回调配合，列表查询作为互补手段。
* 通用签名规则见 [安全与签名](/api-reference/version/100/cn/common/securityAndSignature)；接入步骤见 [对账指引](/essentials/version/100/cn/common/reconciliation)。


## OpenAPI

````yaml api-reference/version/100/cn/openapi/reconciliation-openapi.json GET /withdraw/open/v1/withdraw/suborder/query
openapi: 3.1.0
info:
  title: GatePay 对账 API
  version: 1.0.0
  description: GatePay 对账订单列表相关 OpenAPI 定义。
servers:
  - url: https://openplatform.gateapi.io
    description: 生产环境
security: []
paths:
  /withdraw/open/v1/withdraw/suborder/query:
    get:
      tags:
        - reconciliation
      summary: 查询下发子单列表
      description: 按时间范围分页查询下发子单，支持按批次号、状态、审批状态等条件筛选。
      operationId: listReconciliationWithdrawSuborders
      parameters:
        - $ref: '#/components/parameters/X-GatePay-Certificate-ClientId'
        - $ref: '#/components/parameters/X-GatePay-Signature'
        - $ref: '#/components/parameters/X-GatePay-Timestamp'
        - $ref: '#/components/parameters/X-GatePay-Nonce'
        - $ref: '#/components/parameters/withdrawSuborderList_page'
        - $ref: '#/components/parameters/withdrawSuborderList_count'
        - $ref: '#/components/parameters/withdrawSuborderList_start_time'
        - $ref: '#/components/parameters/withdrawSuborderList_end_time'
        - $ref: '#/components/parameters/withdrawSuborderList_status'
        - $ref: '#/components/parameters/withdrawSuborderList_channel_id'
        - $ref: '#/components/parameters/withdrawSuborderList_audit_status'
      responses:
        '200':
          description: 下发子单列表
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ReconciliationWithdrawSuborderListResponse
              examples:
                success:
                  summary: 成功响应
                  value:
                    status: SUCCESS
                    code: '000000'
                    label: ''
                    errorMessage: ''
                    data:
                      merchant_id: 10002
                      total: 1
                      total_amount: '1'
                      order_count: 1
                      user_count: 1
                      suborder_list:
                        - create_time: 1726055848856
                          finish_time: 1726055856011
                          batch_id: '237394559478075350'
                          merchant_withdraw_id: M137394559478075550
                          suborder_id: '268830764354768896'
                          withdraw_id: '268830764354768896'
                          currency: USDT
                          amount: '1'
                          fee: '0'
                          fee_type: 1
                          chain: ETH
                          show_chain_name: Ethereum
                          address: '0x1234567890abcdef'
                          channel_id: '123456'
                          desc: ''
                          status: DONE
                          pay_status: DONE
                          pay_amount: '1'
                          pay_time: 1726055856011
                          pay_account: ''
                          done_amount: '1'
                          memo: ''
                          tx_id: '0xabc123'
                          err_msg: ''
                          from_address: ''
                          settle_merchant_id: 10002
components:
  parameters:
    X-GatePay-Certificate-ClientId:
      name: X-GatePay-Certificate-ClientId
      in: header
      required: true
      description: 应用 ClientId。
      schema:
        type: string
    X-GatePay-Signature:
      name: X-GatePay-Signature
      in: header
      required: true
      description: 请求签名（HMAC-SHA512）。
      schema:
        type: string
    X-GatePay-Timestamp:
      name: X-GatePay-Timestamp
      in: header
      required: true
      description: 请求时间戳（UTC 毫秒）。
      schema:
        type: string
    X-GatePay-Nonce:
      name: X-GatePay-Nonce
      in: header
      required: true
      description: 随机数，用于防重放。
      schema:
        type: string
    withdrawSuborderList_page:
      name: page
      in: query
      required: true
      schema:
        type: integer
        minimum: 1
      description: 页码，从 1 开始。
    withdrawSuborderList_count:
      name: count
      in: query
      required: true
      schema:
        type: integer
        minimum: 1
        maximum: 500
      description: 每页条数，最大 500。
    withdrawSuborderList_start_time:
      name: start_time
      in: query
      required: true
      schema:
        type: integer
        format: int64
      description: 查询起始时间（毫秒）。
    withdrawSuborderList_end_time:
      name: end_time
      in: query
      required: true
      schema:
        type: integer
        format: int64
      description: 查询结束时间（毫秒）。
    withdrawSuborderList_status:
      name: status
      in: query
      required: false
      schema:
        type: string
        enum:
          - INIT
          - PENDING
          - CHECK
          - PROCESSING
          - DONE
          - FAIL
      description: |-
        子单状态筛选。可用取值：

        - `INIT` — 已创建
        - `PENDING` — 待处理
        - `CHECK` — 审核中
        - `PROCESSING` — 处理中
        - `DONE` — 下发成功
        - `FAIL` — 下发失败
    withdrawSuborderList_channel_id:
      name: channel_id
      in: query
      required: false
      schema:
        type: string
      description: 商户渠道 ID 筛选。
    withdrawSuborderList_audit_status:
      name: audit_status
      in: query
      required: false
      schema:
        type: string
        enum:
          - AUDITING
          - AUDIT_SUCCESS
          - AUDIT_REJECT
          - AUDIT_TIMEOUT
      description: |-
        审批状态筛选。可用取值：

        - `AUDITING` — 审批中
        - `AUDIT_SUCCESS` — 审批通过
        - `AUDIT_REJECT` — 审批拒绝
        - `AUDIT_TIMEOUT` — 审批超时
  schemas:
    ReconciliationWithdrawSuborderListResponse:
      type: object
      properties:
        status:
          type: string
          description: 接口状态，`SUCCESS` 表示成功。
        code:
          type: string
          description: 业务响应码，`000000` 表示成功。
        label:
          type: string
          description: 响应标签。
        errorMessage:
          type: string
          description: 失败时的错误描述。
        data:
          $ref: '#/components/schemas/ReconciliationWithdrawSuborderListData'
    ReconciliationWithdrawSuborderListData:
      type: object
      properties:
        merchant_id:
          type: integer
          format: int64
          description: 商户 ID。
        total:
          type: integer
          format: int64
          description: 符合条件的子单总数。
        total_amount:
          type: string
          description: 查询结果集内提现金额合计。
        order_count:
          type: integer
          format: int64
          description: 结果集内订单笔数。
        user_count:
          type: integer
          format: int64
          description: 结果集内用户数。
        suborder_list:
          type: array
          description: 当前页下发子单列表。
          items:
            $ref: '#/components/schemas/ReconciliationWithdrawSuborderItem'
    ReconciliationWithdrawSuborderItem:
      type: object
      description: 下发子单列表项。
      properties:
        create_time:
          type: integer
          format: int64
          description: 创建时间（毫秒）。
        finish_time:
          type: integer
          format: int64
          description: 完成时间（毫秒）。
        batch_id:
          type: string
          description: 批次号。
        merchant_withdraw_id:
          type: string
          description: 商户提现单号。
        suborder_id:
          type: string
          description: GatePay 子单号。
        withdraw_id:
          type: string
          description: 提现流水号。
        currency:
          type: string
          description: 币种。
        amount:
          type: string
          description: 发起提现金额。
        fee:
          type: string
          description: 手续费。
        fee_type:
          type: integer
          description: 手续费类型：`0` — 金额为扣款金额；`1` — 金额为到账金额。
        chain:
          type: string
          description: 链。
        show_chain_name:
          type: string
          description: 链展示名称。
        address:
          type: string
          description: 提现地址。
        channel_id:
          type: string
          description: 商户渠道 ID。
        desc:
          type: string
          description: 渠道备注。
        status:
          type: string
          description: 子单状态。
        pay_status:
          type: string
          description: 支付/资金处理状态。
        pay_amount:
          type: string
          description: 扣减金额。
        pay_time:
          type: integer
          format: int64
          description: 支付时间（毫秒）。
        pay_account:
          type: string
          description: 支付账户标识。
        done_amount:
          type: string
          description: 实际到账金额。
        memo:
          type: string
          description: 转账备注。
        tx_id:
          type: string
          description: 链上交易哈希。
        err_msg:
          type: string
          description: 下发失败原因。
        from_address:
          type: string
          description: 出金源地址。
        settle_merchant_id:
          type: integer
          format: int64
          description: 结算商户 ID。

````