Current position: document > > Traffic card recharge result callback

Functional description

Account balance of the merchant account

URL

/v1/agentBalance

Request method

GET POST

Request parameters

Parameter fields Field type Is it necessary Parameter description
agentid string Yes Merchant ID
type string Yes The type of transaction, the type of traffic card recharge is IOT
tradeNo string Yes tradeNo.
status string Yes Order status, 1 for success, 2 for failure
ti string Yes Time Stamp UTC/GMT+08:00,Example:2016-09-23 17:33:50 is 1474623230
sign string Yes Server-side signature

Invocation direction

Third party application server, HTT. server

Return to the example, JSON format

/**Successful return to an example**/
{
    "code": "0",
    "msg": ""
}

/**Failure to return to the sample**/
{
    "code": "1",
    "msg": ""
} 

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