> ## 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.

# 出金订单详情

> 查询 OTC 出金订单的详细信息。

## 概述

本页说明 `GET /withdraw/open/institution/otc/api/order/detail` 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。

## 说明

* 认证方式使用 GatePay 标准签名请求头。
* 本页展示同一接口的机构路径版本。
* 除创建子账户、查询子账户详情、分页查询子账户外，机构侧请求需携带 `X-GatePay-On-Behalf-Of`。
* 通用签名规则请参见 [/global/api-reference/version/100/cn/common/securityAndSignature](/global/api-reference/version/100/cn/common/securityAndSignature)。


## OpenAPI

````yaml global/api-reference/version/100/cn/openapi/institution/otc-fiat-openapi.json GET /withdraw/open/institution/otc/api/order/detail
openapi: 3.1.0
info:
  title: GatePay OTC 法币 API
  description: OTC 法币出金与入金 API 参考。
  version: 2.1.0
servers:
  - url: https://openplatform.gateapi.io
security: []
paths:
  /withdraw/open/institution/otc/api/order/detail:
    get:
      summary: 查询 OTC 出金订单详情
      description: 查询 OTC 出金订单的详细信息。
      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'
        - name: orderId
          in: query
          required: true
          schema:
            type: string
          description: Gate OTC 订单 ID。
        - $ref: '#/components/parameters/X-GatePay-On-Behalf-Of'
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponse'
components:
  parameters:
    X-GatePay-Certificate-ClientId:
      name: X-GatePay-Certificate-ClientId
      in: header
      required: true
      schema:
        type: string
      description: 用于标识调用应用的商户应用 ClientId。
    X-GatePay-Signature:
      name: X-GatePay-Signature
      in: header
      required: true
      schema:
        type: string
      description: 按 GatePay 签名规则生成的 HMAC 签名。
    X-GatePay-Timestamp:
      name: X-GatePay-Timestamp
      in: header
      required: true
      schema:
        type: string
      description: 毫秒级时间戳，与服务端时间偏差不得超过30秒
    X-GatePay-Nonce:
      name: X-GatePay-Nonce
      in: header
      required: true
      schema:
        type: string
      description: 与时间戳配合使用的随机串，用于防止重放攻击。
    X-GatePay-On-Behalf-Of:
      name: X-GatePay-On-Behalf-Of
      in: header
      required: true
      schema:
        type: string
      description: >-
        必填代理归属请求头。请填写本次请求的发起方账户 ID；在机构代理商户 API 中通常填写目标子账户 ID，在机构代扣与划转接口中可填写机构账户
        ID 或子账户 ID。
  schemas:
    OrderResponse:
      type: object
      properties:
        code:
          type: string
          description: 业务响应码。
        status:
          type: string
          description: 请求顶层状态。
        errorMessage:
          type: string
          description: 请求失败时的错误信息。
        data:
          $ref: '#/components/schemas/OrderRecord'
          description: 订单详情数据。
    OrderRecord:
      type: object
      properties:
        orderId:
          type: string
          description: Gate OTC 订单 ID。
        status:
          type: string
          description: >-
            当前订单状态。可用值：PROCESSING（处理中）、DISPATCHED（已出款）、DONE（完成）、FAIL（失败）、REFUND（提现成功后退票）。
        cryptoCurrency:
          type: string
          description: 数字货币币种代码。
        fiatCurrency:
          type: string
          description: 法币币种代码。
        cryptoAmount:
          type: string
          description: 数字货币数量。
        fiatAmount:
          type: string
          description: 法币金额。
        fiatRate:
          type: string
          description: 结算法币汇率。
        bankAccountId:
          type: string
          description: 订单关联的银行账户 ID。
        clientOrderId:
          type: string
          description: 商户自定义订单号。
        type:
          type: string
          description: OTC 订单类型，如 BUY 或 SELL。
        createTime:
          type: integer
          description: 订单创建时间戳。
        updateTime:
          type: integer
          description: 订单最后更新时间戳。
        errMsg:
          type: string
          description: 失败原因。
        finalFiatAmount:
          type: string
          description: 最终结算的法币金额。
        bankSlipInfo:
          type: string
          description: 银行回单或水单信息。
        promCode:
          type: string
          description: 创建订单时传入的优惠码。
        refundAmount:
          type: string
          description: 订单退票时退回的加密货币金额。
        tradeFee:
          type: string
          description: 各费用项的合计金额。
        feeCurrency:
          type: string
          description: 各费用项的计价币种。
        feeDetail:
          type: array
          description: 费用明细。
          items:
            $ref: '#/components/schemas/OtcQuoteFeeDetail'
    OtcQuoteFeeDetail:
      type: object
      properties:
        feeType:
          type: string
          description: >-
            费用类型：`BANK` 银行渠道收取的费用，`GATE_PAY` Gate Pay 手续费金额，`SUBSIDY`
            优惠金额，从收取的费用中减免
        amount:
          type: string
          description: 该项金额。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.