Check the Validity of Cwallet ID
Return network fee of target token
POST https://admin.ccpayment.com/ccpayment/v1/check/user
Return the balance of the target token
Headers
Timestamp*
String
Timestamp in seconds (10-digit) expires in 2 minutes.
Request Body
c_id*
String
Cwallet ID
Response
Header
Appid
202302010636261620672405236006912
Y
string
Merchant's unique credential. Find it on the Developer page.
Timestamp
1677152490
Y
string
Timestamp in seconds (10-digit) expires in 2 minutes.
Sign
871f0223c66ea72435208d03603a0cb00b90f6ac4a4ba725d00164d967e291f6
Y
string
SHA-256 (appId + appSecret + timestamp+body (json string))
Body
{
"code": 10000,
"msg": "success",
"data": {
"c_id": "9454818",
"nikename": "alvin"
}
}Parameter
code
10000
Integer
msg
Success
String
data
Object
data.c_id
9454818
String
Cwallet ID
data.nikename
alvin
String
Cwallet desensitized nickname
{
"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
{
"c_id": "9454818"
}The body of HTTP is a json string .
Add the content in body of HTTP to the signature. Ensure the body content matches the signature content. As soon as CCPayment receives the request, the body content will be read and the signature will be verified
Last updated