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.
Overview
GatePay OTC provides two closely related settlement flows under one business domain:- On-ramp: use fiat to buy crypto and credit assets to the merchant account
- Off-ramp: sell crypto and settle fiat to an approved bank account
- signed server-side API calls
- quote retrieval before order creation
- bank account governance
- status tracking through active queries and callback notifications
Shared Integration Requirements
Before using OTC APIs, make sure that:- The merchant account has completed the required KYC or compliance review.
- API credentials and signing logic are already available in the merchant backend.
- At least one bank account has been created and approved for OTC settlement.
- The merchant operates in a supported country or region.
- define how bank account onboarding is managed
- define how quote expiry and order retry are handled
- define how callback events are persisted and replayed
- define how OTC settlements are reconciled
Shared Quote API
OTC on-ramp and off-ramp both depend on quote retrieval. Use the following page to understand quote meaning, validity, and usage: Usetype to distinguish the business direction:
BUY: OTC on-rampSELL: OTC off-ramp
- request a quote immediately before the user or operator is ready to proceed
- persist the quote token and validity period
- create the order within the validity window
- discard and refresh the quote if timing or amount changes
OTC / On-ramp
Business Goal
OTC on-ramp allows a merchant to remit fiat by bank transfer and receive cryptocurrency in the GatePay merchant account. Typical use cases include treasury top-up, institutional inventory purchase, and merchant-side fiat funding before using assets for further payment or settlement activities.Typical Flow
Core APIs
- OTC Quote
- Create Deposit Order
- Confirm Deposit Payment
- Cancel Deposit Order
- Deposit Detail
- Deposit List
- OTC Callback Webhook
Minimum Integration Path
For a first OTC on-ramp integration, it is best to validate quote retrieval, order creation, payment confirmation, and settlement tracking through the smallest possible flow:- request a
BUYquote - create the on-ramp order
- complete the offline bank remittance with the returned bank details
- call the payment-confirmation endpoint after remittance is completed
- track the final settlement result through callbacks and queries
Integration Notes
- The quote must be used within its validity period.
- The deposit order must carry a unique
clientOrderId. - The merchant must transfer funds according to the returned Gate collection bank information.
- The remittance reference must be preserved exactly.
- Payment confirmation should be sent only after remittance is actually completed.
Common Callback States
RECHARGE_SUCCESSRECHARGE_FAIL
- callback ingestion
- business status confirmation
- accounting or ledger posting
OTC / Off-ramp
Business Goal
OTC off-ramp allows a merchant to sell crypto and settle fiat to an approved bank account. Typical use cases include treasury withdrawal, merchant-side fiat liquidation, and operational settlement to external banking rails.Typical Flow
Minimum Integration Path
For a first OTC off-ramp integration, validate oneSELL flow from end to end:
- request a
SELLquote - choose an approved bank account
- create the off-ramp order
- process callbacks and query as fallback
- reconcile the platform result against the bank payout outcome
Core APIs
Integration Notes
- Use a fresh quote token before creating the withdrawal order.
- Keep
clientOrderIdglobally unique. - Reconcile against both expected fiat amount and final settled fiat amount when provided.
- Use callback plus detail query together as the reliable source of truth.
Common Callback States
WITHDRAW_DISPATCHEDWITHDRAW_SUCCESSWITHDRAW_FAIL
WITHDRAW_DISPATCHED, it is helpful to treat it as a dispatch milestone rather than as the final settlement result. This makes it easier to distinguish “bank payout initiated” from “business fully completed”.
Bank Account Management
Operation flow
- Submit the bank account holder name, account number, bank name, SWIFT code, and other account details required for registration.
- Submit supporting documents such as the company operating certificate, shareholder proof, and shareholding structure chart (include whatever materials your onboarding case requires).
- Allow about two days for manual review. During this period, poll the Bank Account List API on a schedule; once verification succeeds, the account can be used for settlement.
- Bank Countries
- Create Bank Account
- Submit Bank Account Material Supplement
- Bank Account List
- Delete Bank Account
Callbacks and Reconciliation
OTC integrations should not rely on a single confirmation mechanism. Recommended pattern:- Create and persist the quote and order on the backend.
- Store
clientOrderId,orderId, and settlement metadata. - Process callback notifications first.
- Use detail queries as the fallback source of truth.
- Reconcile bank settlement records with OTC order results.
- quote acquired
- order created
- callback received
- detail verified
- finance reconciled
Recommended Reading Order
If this is your first OTC integration, the most practical reading order is:- Read this OTC guide for the business model.
- Read Merchant Access and Authentication.
- Read the shared OTC Quote page.
- Read the order creation and query pages for the specific flow you are implementing.
- Finish with callback and reconciliation pages before launch.

