获取授权的产品列表
POST
接口地址,见第二章:接口配置及参数说明
请求参数
Body 参数application/json
appid
string
商户id
method
string
接口方法
timestamp
number
时间戳
content
string
业务参数
sign
string
签名
示例
{
"appid": "9733732",
"method": "product.list",
"timestamp": "1698719128",
"content": "{}",
"sign": "daa5151eb652231b5c035c77f9a9274c"
}
返回响应
🟢200成功
application/json
Body
code
integer
错误码
msg
string
错误说明
data
array [object {8}]
响应结果
product_id
integer
产品编码
product_name
string
产品名称
product_type
string
产品充值类型
price
number
授权商户的价格
status
integer
状态
face_price
number
面值
is_multiple
boolean
是否支持倍充
stock
integer
剩余库存数量
示例
{
"code": 0,
"msg": null,
"data": [
{
"product_id": 100000,
"product_name": "权益、话费等直充-成功测试",
"product_type": "直充",
"price": 1,
"face_price": 5,
"status": 1,
"is_multiple": true
},
{
"product_id": 100001,
"product_name": "权益、话费等直充-失败测试",
"product_type": "直充",
"price": 1,
"face_price": 5,
"status": 1,
"is_multiple": true
},
{
"product_id": 100002,
"product_name": "卡密产品-成功测试",
"product_type": "卡密",
"price": 2,
"face_price": 5,
"status": 1,
"is_multiple": true
},
{
"product_id": 100003,
"product_name": "卡密产品-失败测试",
"product_type": "卡密",
"price": 2,
"face_price": 5,
"status": 1,
"is_multiple": true
},
{
"product_id": 100004,
"product_name": "游戏产品-成功测试",
"product_type": "直充",
"price": 3,
"face_price": 5,
"status": 1,
"is_multiple": true
},
{
"product_id": 100005,
"product_name": "游戏产品-失败测试",
"product_type": "直充",
"price": 3,
"face_price": 5,
"status": 1,
"is_multiple": true
}
]
}
修改于 2025-01-16 13:59:37