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

# Withdrawal Detail

> Query the detail of an OTC withdrawal order.

## Overview

This page documents the `GET /withdraw/open/institution/otc/api/order/detail` endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.

## Notes

* Authentication uses the standard GatePay signed headers.
* This page documents the standard merchant endpoint.
* For shared signing rules, see [/api-reference/version/100/en/common/securityAndSignature](/api-reference/version/100/en/common/securityAndSignature).


## OpenAPI

````yaml /api-reference/version/100/en/openapi/institution/otc-fiat-openapi.json GET /withdraw/open/institution/otc/api/order/detail
openapi: 3.1.0
info:
  title: GatePay OTC Fiat API
  description: Reference for OTC fiat withdrawal and deposit APIs.
  version: 2.1.0
servers:
  - url: https://openplatform.gateapi.io
security: []
paths:
  /withdraw/open/institution/otc/api/order/detail:
    get:
      summary: Query OTC Withdrawal Order Detail
      description: Query the detail of an OTC withdrawal order.
      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 order ID.
        - $ref: '#/components/parameters/X-GatePay-On-Behalf-Of'
      responses:
        '200':
          description: Success
          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: Merchant application client ID used to identify the calling app.
    X-GatePay-Signature:
      name: X-GatePay-Signature
      in: header
      required: true
      schema:
        type: string
      description: >-
        HMAC signature generated from the request according to GatePay signing
        rules.
    X-GatePay-Timestamp:
      name: X-GatePay-Timestamp
      in: header
      required: true
      schema:
        type: string
      description: Unix timestamp used for replay protection and signature verification.
    X-GatePay-Nonce:
      name: X-GatePay-Nonce
      in: header
      required: true
      schema:
        type: string
      description: Random nonce used together with the timestamp to prevent replay attacks.
    X-GatePay-On-Behalf-Of:
      name: X-GatePay-On-Behalf-Of
      in: header
      required: true
      schema:
        type: string
      description: >-
        Required delegated-subject header. Provide the initiating account ID for
        this request. For institution merchant APIs, this is typically the
        target sub-account ID; for institution charge and transfer APIs, it can
        be either an institution account ID or a sub-account ID.
  schemas:
    OrderResponse:
      type: object
      properties:
        code:
          type: string
          description: Business response code.
        status:
          type: string
          description: Top-level request status.
        errorMessage:
          type: string
          description: Error message when the request fails.
        data:
          $ref: '#/components/schemas/OrderRecord'
          description: Order detail payload.
    OrderRecord:
      type: object
      properties:
        orderId:
          type: string
          description: Gate OTC order ID.
        status:
          type: string
          description: Current order status.
        cryptoCurrency:
          type: string
          description: Cryptocurrency code.
        fiatCurrency:
          type: string
          description: Fiat currency code.
        cryptoAmount:
          type: string
          description: Cryptocurrency amount.
        fiatAmount:
          type: string
          description: Fiat amount.
        fiatRate:
          type: string
          description: Settlement fiat rate.
        bankAccountId:
          type: string
          description: Bank account ID associated with the order.
        clientOrderId:
          type: string
          description: Merchant-defined order ID.
        type:
          type: string
          description: OTC order type such as BUY or SELL.
        createTime:
          type: integer
          description: Order creation timestamp.
        updateTime:
          type: integer
          description: Last update timestamp.
        errMsg:
          type: string
          description: Failure reason.
        tradeFee:
          type: string
          description: Fee amount.
        finalFiatAmount:
          type: string
          description: Final settled fiat amount.
        bankSlipInfo:
          type: string
          description: Bank slip information.
        promCode:
          type: string
          description: Promotion code passed when creating the order.

````