Current position: document > > Recharge result query

Functional description

Traffic recharge result query

URL

/v1/iotTradeQuery

Request method

GET POST

Request parameters

Parameter fields Field type Is it necessary Parameter description
agentid string Yes Merchant ID
tradeNo string Yes tradeNo.
ti string Yes Time stamp UTC/GMT+08:00, example: 2016-09-23 17:33:50 is 1474623230
format string No JSON or XML, the default is JSON

Invocation direction

Third party application server, HTT. server

Request examples

http://api.ht-telecom.com/v1/iotTradeQuery?agentid=**&tradeNo=**&format=json&ti=**&sign=**

Return to the example, JSON format

/**Successful return to an example**/
{
    "code": 0,
    "msg": "Error code description",
    "data": 
        {
            "status": "***",
            "remark": "***"
        }
}

/**Failure to return to the sample**/
{
    "code": -1,
    "msg": "Error code description",
    "data": "" 
} 

Return field description

Parameter fields Field type Is it necessary Parameter description
code int_32 Yes Error code, 0 for success, others fail
msg string Yes Error code description
data JSON Object Yes Returned data
--status string Yes The result of recharge, 0 is untreated, 1 is successful, 2 is failure, and 3 is in the process.
--remark string Yes Failure cause of recharge