v1
latestOpenAPI 3.1.02026-07-21152963.1 KBGet OTC Off-ramp Quote
Get a fiat-to-crypto quote for the OTC off-ramp flow.
post/withdraw/open/otc/api/v1/quote
Headers
X-GatePay-Certificate-ClientIdstring required
Merchant application client ID used to identify the calling app.
X-GatePay-Signaturestring required
HMAC signature generated from the request according to GatePay signing rules.
X-GatePay-Timestampstring required
Unix timestamp used for replay protection and signature verification.
X-GatePay-Noncestring required
Random nonce used together with the timestamp to prevent replay attacks.
X-GatePay-On-Behalf-Ofstring
Institutional sub-account UID. Only required when an institution submits a request on behalf of a sub-account; not required for direct merchant requests.
Request body
Example request
{
"cryptoCurrency": "USDT",
"fiatCurrency": "USD",
"fiatAmount": "1000",
"side": "FIAT",
"type": "BUY"
}Response
Success
Example response
{
"code": "0",
"status": "success",
"errorMessage": "",
"data": {
"quoteToken": "qt_01JXYZABCDEF",
"validPeriod": 60,
"cryptoAmount": "1088.42",
"fiatAmount": "1000",
"fiatRate": "0.918762",
"cryptoRate": "1.088420"
}
}