文档
测试

2.5.4 Query

POST
API Wallet

接口描述

Check whether a money record exists

Header

参数名
类型
描述
必填
Content-Type
string
application/json
必填

Body

参数名
类型
描述
必填
Action
string
Fixed value:Query
必填
Timestamp
number
Timestamp
必填
Sign
string
MD5 signature field
必填
UserName
string
Username of operating money request
必填
ID
string
Serial number of money
必填
Type
string
Operation type (seeing "Type Description" in this chapter for more details.)
必填

Response

参数名
类型
描述
必填
success
number
returns 1 if the query was successful (despite the exsistence of money record), or 0 if any other exceptions occurred.
必填
msg
string
Return message if any query exception occurs
必填
info
object
Search result
必填
Exists
number
1 for the money exists, 0 for the the money does not exist
必填

Description / Example

Our request ``curl http://APIWallet -X POST-H "Content-Type:application/json" -d "{"Action":"Query","Sign":"03F937A9AC034EDF74DF9954B86399B0","Timestamp":"1585763775757","UserName":"ceshi01_7f","Type":"Bet","ID":"1000"}"`` Return when a money record exists ``` { "success":1, "msg":"", "info":{ "Exists":1 } } ``` Return when a money record does not exist ``` { "success":1, "msg":"", "info":{ "Exists":0 } } ``` Return when any exception occurs ``` { "success":0, "msg":"An exception occurred in the system and the query failed" } ``` Please recognize whether a money record exists or not according to the combination of UserName + Type + ID, and return the corresponding content.