查询流量充值产品接口
接口说明
查询paynicorn支持的流量充值产品
接口地址
post https://api.paynicorn.com/trade/topup/api/data/queryGoods
请求参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
appKey | string | M | 商户应用Appkey |
countryCode | string | O | 国家码,查询指定国家流量产品 |
productCode | string | M | 产品类型(冗余字段,固定data_topup 流量充值) |
operatorCode | string | O | 运营商编码,查询指定运营商流量产品 |
响应参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
code | int | M | 请求处理的标识 |
msg | string | M | 请求处理信息 |
result | JsonObj | O | 返回结果 |
result对象参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
productCode | string | M | 产品类型 |
countryCode | string | M | 国家 |
operatorCode | string | M | 运营商编码 |
goodsId | string | M | 产品ID |
goodsDesc | string | M | 产品描述 |
amount | string | M | 产品售价 |
示例
Request
{
"appKey": "p3k0Y312LzX6Dv87lVa1",
"countryCode": "NG",
"productCode": "data_topup",
"operatorCode": "NG_MTN"
}
Response
{
"code": 1200,
"msg": "success",
"result": {
"productCode": "data_topup",
"countryCode": "NG",
"operatorCode": "NG_MTN",
"goodsId": "NG72347153587",
"goodsDesc": "100MB/7Day",
"amount": 100.0
}
}