Skip to main content
POST
Create OTC Recharge Order

Overview

This page documents the POST /payment/open/otc/api/recharge endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.

Notes

Usage Guidance

  • Call this endpoint only after a valid OTC quote has been obtained.
  • Persist orderId for later reconciliation.
  • The returned bank information should be treated as settlement instructions and stored together with the order snapshot.
  • Do not treat order creation itself as payment completion. The actual fiat remittance and confirmation step still need to happen.
  • Institutional Sub-accounts: To implement OTC deposits for institutional sub-accounts, institutional sub-account KYB certification must be completed first. For details, see: Get Certification URL.

Headers

X-GatePay-Certificate-ClientId
string
required

Merchant application client ID used to identify the calling app.

X-GatePay-Signature
string
required

HMAC signature generated from the request according to GatePay signing rules.

X-GatePay-Timestamp
string
required

Millisecond timestamp; the difference from server time must not exceed 30 seconds.

X-GatePay-Nonce
string
required

Random nonce used together with the timestamp to prevent replay attacks.

X-GatePay-On-Behalf-Of
string

Institutional sub-account UID. Only required when an institution submits a request on behalf of a sub-account; not required for direct merchant requests.

Body

application/json
quoteToken
string
required

Quote token returned by the quote API.

bankId
string
required

Merchant bank ID used for remittance.

currency
string
required

Cryptocurrency to receive. Currently supported: USDT, USDC.

amount
string
required

Cryptocurrency amount to be credited.

fiatCurrency
string
required

Fiat currency to remit. Currently supported: USD.

fiatAmount
string
required

Fiat amount to be paid.

promoCode
string

Optional promotion code.

Response

200 - application/json

Success

code
string

Business response code.

status
string

Top-level request status.

errorMessage
string

Error message when the request fails.

data
object