跳到主要内容

Withdraw Query

API URL: /merchant/order/withdraw

HeaderContentDescription
Content-Typetext/plain
Authorization{token_type} {access_token}Concat token_type and access_token with whitespace.
ParamData typeRequiredSignDescription
user_idStringMerchant identification
order_idStringYour order id. The order id should be unique.
return_hashBooleanWhether to return the transaction hash.
signStringSignature string

Response

ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringWithdraw order Id of merchant system. The order id should be unique.
transaction_idStringPTS transaction id
channelStringPlease refer to Currencies & Channels
submit_currencyStringSubmit currency
submit_amountFloatSubmit amount (Support up to 6 decimal places)
accept_currencyStringThe currency real paid
accept_amountFloatPaid amount of accept currency (Support up to 6 decimal places)
exchange_rateFloatExchange rate
statusInteger0000 = Waiting
1000 = Processing
2000 = Success
3000 = Failed
4000 = Order error
timestampIntegerTransaction last update timestamp (10 digits)
hashStringTransaction hash.(Provided when return_hash=true)
signStringSignature string
// Example
{
"code": "1000",
"message": "Order Success",
"data": {
"user_id": 1,
"order_id": "20210521181858",
"transaction_id": "W12021052118190115910",
"channel": "CNY2ERC",
"submit_currency": "CNY",
"submit_amount": "40000.0000000000",
"accept_currency": "USDT-ERC",
"accept_amount": "6644.0000000000",
"exchange_rate": "0.1661000000",
"status": "1000",
"timestamp": 1621592342,
"sign": "OKmzL8zt5w10YLu4scOmQ6R0yOXKo+/XLdAo7ZbAyz..."
}
}