Skip to main content

查询流量充值产品接口

接口说明

查询paynicorn支持的流量充值产品

接口地址

post https://api.paynicorn.com/trade/topup/api/data/queryGoods

请求参数

参数名参数类型填写要求描述
appKeystringM商户应用Appkey
countryCodestringO国家码,查询指定国家流量产品
productCodestringM产品类型(冗余字段,固定data_topup 流量充值)
operatorCodestringO运营商编码,查询指定运营商流量产品

响应参数

参数名参数类型填写要求描述
codeintM请求处理的标识
msgstringM请求处理信息
resultJsonObjO返回结果

result对象参数

参数名参数类型填写要求描述
productCodestringM产品类型
countryCodestringM国家
operatorCodestringM运营商编码
goodsIdstringM产品ID
goodsDescstringM产品描述
amountstringM产品售价

示例

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
}
}