流量充值交易查询接口
接口说明
查询流量充值状态及交易详情信息
接口地址
post https://api.paynicorn.com/trade/topup/api/data/query
请求参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
appKey | string | M | 商户应用ID |
transId | string | M | 商户交易号 |
响应参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
code | int | M | 请求处理的标识 |
msg | string | M | 请求处理信息 |
result | JsonObj | O | 返回结果 |
result参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
transId | string | M | 交易ID |
statusCode | string | M | 交易状态 |
countryCode | string | M | 国家码 |
operatorCode | string | M | 运营商编码 |
benefitNo | string | M | 要充值的号码 |
goodsId | string | M | 流量套餐ID |
goodsDesc | string | M | 流量套餐描述 |
memo | string | M | 备注 |
示例
Request
{
"appKey": "p3k0Y312LzX6Dv87lVa1",
"transId": "1234567890"
}
Response
{
"code": 1200,
"msg": "success",
"result": {
"transId": "1234567890",
"statusCode":"1",
"countryCode": "NG",
"operatorCode": "9mobile",
"benefitNo": "08184123954",
"goodsId": "NG72347153587",
"goodsDesc": "100MB/7Day"
}
}