跳到主要内容

查询话费充值产品接口

接口说明

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

接口地址

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

方法: POST

描述: 查询话费产品

请求参数

参数位置参数名参数类型是否必须描述
BodyappKeystringY商户应用Appkey
BodyproductCodestringY产品类型(data_topup 流量充值)
BodyoperatorCodestringN运营商编码
BodycountryCodestringN国家码

响应参数

参数位置参数名参数类型描述
Bodycodeint请求处理的标识
Bodymsgstring请求处理信息
BodyresultJsonObj返回结果

result对象参数

参数位置参数名参数类型描述
resultproductCodestring产品类型
resultcountryCodestring国家
resultoperatorCodestring运营商编码
resultgoodsIdstring产品ID
resultrechargeAmountBigDecimal固定充值金额
resultrechargeMinAmountBigDecimal区间充值最小金额
resultrechargeMaxAmountBigDecimal区间充值最大金额
resultrechargeCurrencystring充值币种
resultbuyingTypestring购买方式(固定金额:FIXED, 区间金额:RANGE)

示例

Request

{
"appKey": "p3k0Y312LzX6Dv87lVa1",
"productCode":"m_topup",
"countryCode":"UG",
"operatorCode":""
}

Response

{
"code": 1200,
"msg": "success",
"result": [
{
"id": 36,
"productCode": "m_topup",
"countryCode": "UG",
"operatorCode": "UG_MTN",
"goodsId": "UG78341450565",
"rechargeAmount": 10.00,
"rechargeMinAmount": 0.00,
"rechargeMaxAmount": 0.00,
"rechargeCurrency": "UGX",
"buyingType": "FIXED"
}
]
}