Exchange + Withdrawal
Last updated
Last updated
Every request listed on this page requires authorization to be successfully completed.
GET
https://public.api.0xpay.app/merchants/exchange/withdrawals/crypto/estimate
You can use this endpoint to estimate your withdrawal with exchange for later
ticker*
string
Ticker for withdrawal.
Example: You want to spend (exchange) USDT and make a withdrawal in BTC (ticker value).
spendTicker*
string
Ticker you want to spend (exchange) from your balance.
amount*
string
Amount you want to spend or withdraw. For more details look at side field in this request.
side*
string
"spend" or "withdraw". Impacts amount field. When you want to withdraw the exact amount – specify the "withdraw" side. When you want to spend (exchange) an exact amount specify "exchange"
blockchain*
string
In response, you'll get details for your upcoming exchange:
POST
https://public.api.0xpay.app/merchants/exchange/withdrawals/crypto
ticker*
string
Ticker for withdrawal.
Example: You want to spend (exchange) USDT and make a withdrawal in BTC (ticker value).
amount*
string
Amount you want to spend or withdraw. For more details look at side field in this request.
side*
string
"spend" or "withdraw". Impacts amount field. When you want to withdraw the exact amount – specify the "withdraw" side. When you want to spend (exchange) an exact amount specify "exchange"
fee*
string
withdrawal fee
price*
string
actual price of the pairs
localId
string
meta
string
metadata that you can define and catch it back later with notification
blockchain*
string
to*
string
destination of withdrawal
spendTicker*
String
Ticker you want to spend (exchange) from your balance.
exchangeFee*
string
fee for exchange operation
GET
https://public.api.0xpay.app/merchants/exchange/withdrawals/fiat/estimate
ticker*
string
Ticker for withdrawal.
Example: You want to spend (exchange) USDT and make a withdrawal in BTC (ticker value).
spendTicker*
string
Ticker you want to spend (exchange) from your balance.
amount*
string
Amount you want to spend or withdraw. For more details look at side field in this request.
side*
string
"spend" or "withdraw". Impacts amount field. When you want to withdraw the exact amount – specify the "withdraw" side. When you want to spend (exchange) an exact amount specify "exchange"
blockchain*
string
In response, you'll get details for your upcoming exchange:
POST
https://public.api.0xpay.app/merchants/exchange/withdrawals/fiat
ticker*
string
Ticker for withdrawal.
Example: You want to spend (exchange) USDT and make a withdrawal in UAH (ticker value).
amount*
string
Amount you want to spend or withdraw. For more details look at side field in this request.
side*
string
"spend" or "withdraw". Impacts amount field. When you want to withdraw the exact amount – specify the "withdraw" side. When you want to spend (exchange) an exact amount specify "exchange"
fee*
string
withdrawal fee
price*
string
actual price of the pairs
localId
string
meta
string
metadata that you can define and catch it back later with notification
to*
string
credit card number (destination of withdrawal)
spendTicker*
String
Ticker you want to spend (exchange) from your balance.
exchangeFee*
string
fee for exchange operation
Find values using
Find values using or
available values you can find ("API value" column)
This endpoint is used to create exchange withdrawal. Before sending this request, you should first .
Status Notifications: After the Success response, 0xpay API will produce according to status updates on your exchange.
Find values using
if was specified error will be thrown if not unique, can be useful on your side to avoid the issue
available values you can find ("API value" column)
Find values using or
You can use this endpoint to estimate your withdrawal with exchange for later
Find values using
Find values using or
available values you can find ("API value" column)
This endpoint is used to create exchange withdrawal. Before sending this request, you should first .
Status Notifications: After the Success response, 0xpay API will produce according to status updates on your exchange.
Find values using request
if was specified error will be thrown if not unique, can be useful on your side to avoid the issue
Find values using or