Withdrawal Order Information Interface
When the transaction is completed, the system will push the transaction result to the Webhook URL. You can also call this interface to obtain the order information.
Return order information
POST
https://admin.ccpayment.com/ccpayment/v1/bill/info
Headers
Request Body
API withdrawal order response
Header
Body
{
"code":10000,
"msg":"success",
"data":[
{
"order_detail":{
"merchant_order_id":"1698735528116569",
"chain":"TRX",
"contract":"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"crypto":"USDT",
"order_amount":"1",
"token_rate":"1",
"status":"Successful",
"created":1698735530,
"order_id":"202310310658501719247540351442944"
},
"trade_list":[
{
"amount":"1",
"chain":"TRX",
"contract":"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"crypto":"USDT",
"service_fee":"0",
"network_fee":"0",
"network_coin_id":"217d4c3b-4f84-4416-bf1a-a1d15d7d2f50",
"network_fee_crypto":"TRX",
"network_fee_value":"0.85",
"txid":"",//No txid for internal transfers
"pay_time":1698735530,
"token_rate":"1",
"status":"Successful"
}
]
},
{
"order_detail":{
"merchant_order_id":"po_2Y0Xr931AUUskX4azBtIzE6qHPX",
"chain":"POLYGON",
"contract":"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
"crypto":"USDT",
"order_amount":"0.001",
"token_rate":"1",
"status":"Successful",
"created":1699663749,
"order_id":"CP202311110049091723140772755197952"
},
"trade_list":[
{
"amount":"0.001",
"chain":"POLYGON",
"contract":"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
"crypto":"USDT",
"service_fee":"0",
"network_fee":"0.046957",
"network_fee_crypto":"USDT",
"network_coin_id":"8e5741cf-6e51-4892-9d04-3d40e1dd0128",
"network_fee_value":"1.00",
"txid":"0xfdcb291148cf201a40afffcfd56fab4061ec90bdc54b7e1121405336003b2c29",
"pay_time":1699663875,
"token_rate":"1",
"status":"Successful"
}
]
}
]
}
Parameters
{
"code": 224066,
"msg": "service err, please try again"
}
As a security measure, we will sign the returned data (and according to this only { code: 10000 } should be signed, but it's signing all the returned body.). Additionally, it will return Appid, Sign, Timestamp in the header of the response. The signature method SHA-256 (appid+appSecret+Timestamp+body).
Please use the data with caution if the signature verification fails. It indicates that the data has been tampered with.
Request Body Example
{
"merchant_order_ids":["12345","23456"]
//DO NOT pass both deposit and withdrawal order ids in one request
//Max order limit: 100
}
Last updated