跳到主要内容

Payment Query

Request

API URL: /merchant/order/payment

HeaderContentDescription
Content-Typetext/plain
Authorization{token_type} {access_token}Concat token_type and access_token with whitespace.
ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringPayment order Id of merchant system. The order id should be unique.
return_hashBooleanWhether to return the transaction hash.
signStringSignature string

Response

ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringPayment 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
statusString0000 = Waiting
1000 = Processing
2000 = Success
3000 = Failed
4000 = Order error
timestampIntegerTransaction last update timestamp (10 digits)
submit_promoFloatSubmit amount promo(Support up to 6 decimal places)
accept_promoFloatPaid amount promo of accept currency (Support up to 6 decimal places)
hashStringTransaction hash. (Provides when return_hash=true)
payment_addressStringCrypto exclusive, if need, please inform customer service staff
receiving_addressStringCrypto exclusive, if need, please inform customer service staff
signStringSignature string
// Example
{
"code": "1000",
"message": "Order Success",
"data": {
"user_id": 1,
"order_id": "20210521184906",
"transaction_id": "P12021052118495503889",
"channel": "CNY2TRC",
"submit_currency": "CNY",
"submit_amount": "1000.0000000000",
"accept_currency": "USDT-TRC",
"accept_amount": "165.9181999999",
"exchange_rate": "0.1659182000",
"status": "1000",
"timestamp": 1621594195,
"sign": "mG6FFzJvVh8DpQJpMUPWH619CelyDZgkgnty2HW..."
}
}