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

# 入金订单详情

> 查询法币入金订单详情。`orderId` 和 `clientOrderId` 至少传一个。

## 概述

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

## 说明

* 认证方式使用 GatePay 标准签名请求头。
* 本页展示普通商户接口。
* 通用签名规则请参见 [/api-reference/version/100/cn/common/securityAndSignature](/api-reference/version/100/cn/common/securityAndSignature)。


## OpenAPI

````yaml api-reference/version/100/cn/openapi/otc-fiat-openapi.json GET /open/otc/api/recharge/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:
  /open/otc/api/recharge/detail:
    get:
      summary: 查询 OTC 入金订单详情
      description: 查询法币入金订单详情。`orderId` 和 `clientOrderId` 至少传一个。
      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: X-GatePay-MerchantId
          in: header
          required: true
          schema:
            type: integer
            format: int64
          description: 商户 ID。
        - name: orderId
          in: query
          required: false
          schema:
            type: string
          description: Gate OTC 订单 ID。与 clientOrderId 至少传一个。
        - name: clientOrderId
          in: query
          required: false
          schema:
            type: string
          description: 商户自定义订单号。与 orderId 至少传一个。
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OtcRechargeDetailResponse'
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: 用于防重放和验签的 Unix 时间戳。
    X-GatePay-Nonce:
      name: X-GatePay-Nonce
      in: header
      required: true
      schema:
        type: string
      description: 与时间戳配合使用的随机串，用于防止重放攻击。
  schemas:
    OtcRechargeDetailResponse:
      type: object
      properties:
        code:
          type: string
          description: 业务响应码。
        status:
          type: string
          description: 请求顶层状态。
        errorMessage:
          type: string
          description: 请求失败时的错误信息。
        data:
          $ref: '#/components/schemas/OtcRechargeOrder'
          description: 订单详情数据。
    OtcRechargeOrder:
      type: object
      properties:
        orderId:
          type: string
          description: Gate OTC 订单 ID。
        otcOrderId:
          type: string
          description: OTC 订单 ID。
        currency:
          type: string
          description: 数字货币币种。
        amount:
          type: string
          description: 数字货币数量。
        fiatCurrency:
          type: string
          description: 法币币种。
        fiatAmount:
          type: string
          description: 法币金额。
        cfRate:
          type: string
          description: 汇率。
        bankId:
          type: string
          description: 银行 ID。
        bankNumber:
          type: string
          description: 银行编号。
        paid:
          type: boolean
          description: 订单是否已付款。
        status:
          type: string
          description: 当前订单状态。
        card_info:
          $ref: '#/components/schemas/OtcCardInfo'
          description: Gate OTC 收款银行信息。
        createTime:
          type: integer
          format: int64
          description: 订单创建时间戳（毫秒）。
        promoCode:
          type: string
          description: 优惠码。
        transferRemark:
          type: string
          description: 必须在汇款时原样填写的附言。
        paymentReceiptFileUrl:
          type: string
          description: 付款凭证文件 URL。
    OtcCardInfo:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: 卡信息记录 ID。
        uid:
          type: integer
          format: int64
          description: 商户 UID。
        entity:
          type: string
          description: 实体名称。
        bank_account_name:
          type: string
          description: 收款银行账户持有人名称。
        bank_name:
          type: string
          description: 收款银行名称。
        bank_country:
          type: string
          description: 收款银行所属国家。
        bank_address:
          type: string
          description: 收款银行地址。
        bank_code:
          type: string
          description: 银行代码。
        branch_code:
          type: string
          description: 支行代码。
        iban:
          type: string
          description: 收款 IBAN 或账号。
        swift:
          type: string
          description: 收款 SWIFT 或 BIC 代码。
        remittance_line_number:
          type: string
          description: 路由号或汇款线路号。
        agent_bank_name:
          type: string
          description: 如适用，代理银行名称。
        agent_bank_swift:
          type: string
          description: 如适用，代理银行 SWIFT。
        transferRemark:
          type: string
          description: 必须在汇款时原样填写的附言或付款备注。
        memo:
          type: string
          description: 备注。
        is_default:
          type: boolean
          description: 是否为默认卡。
        bank_id:
          type: string
          description: 银行 ID。

````