> ## 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 [/global/api-reference/version/100/en/common/securityAndSignature](/global/api-reference/version/100/en/common/securityAndSignature).


## OpenAPI

````yaml global/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: >-
        Millisecond timestamp; the difference from server time must not exceed
        30 seconds.
    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. Available values: PROCESSING (in processing),
            DISPATCHED (payout dispatched), DONE (completed), FAIL (failed),
            REFUND (refunded after successful off-ramp).
        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.
        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.
        refundAmount:
          type: string
          description: Cryptocurrency amount refunded when the order is returned.
        tradeFee:
          type: string
          description: Total amount of all fee items.
        feeCurrency:
          type: string
          description: Currency in which each fee item is denominated.
        feeDetail:
          type: array
          description: Fee breakdown.
          items:
            $ref: '#/components/schemas/OtcQuoteFeeDetail'
    OtcQuoteFeeDetail:
      type: object
      properties:
        feeType:
          type: string
          description: >-
            Fee type: `BANK` fee charged by the bank channel, `GATE_PAY` Gate
            Pay service fee amount, `SUBSIDY` promotional amount deducted from
            charged fees.
        amount:
          type: string
          description: Amount for this fee item.

````

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