查询话费充值产品接口
接口说明
查询paynicorn支持的流量充值产品
接口地址
https://api.paynicorn.com/trade/topup/api/queryGoods
方法: POST
描述: 查询话费产品
请求参数
参数位置 | 参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|---|
Body | appKey | string | Y | 商户应用Appkey |
Body | productCode | string | Y | 产品类型(data_topup 流量充值) |
Body | operatorCode | string | N | 运营商编码 |
Body | countryCode | string | N | 国家码 |
响应参数
参数位置 | 参数名 | 参数类型 | 描述 |
---|---|---|---|
Body | code | int | 请求处理的标识 |
Body | msg | string | 请求处理信息 |
Body | result | JsonObj | 返回结果 |
result对象参数
参数位置 | 参数名 | 参数类型 | 描述 |
---|---|---|---|
result | productCode | string | 产品类型 |
result | countryCode | string | 国家 |
result | operatorCode | string | 运营商编码 |
result | goodsId | string | 产品ID |
result | rechargeAmount | BigDecimal | 固定充值金额 |
result | rechargeMinAmount | BigDecimal | 区间充值最小金额 |
result | rechargeMaxAmount | BigDecimal | 区间充值最大金额 |
result | rechargeCurrency | string | 充值币种 |
result | buyingType | string | 购买方式(固定金额: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"
}
]
}