接口说明
获取单个商品。
接口方法
esales.product.get
传入参数
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| product_id | int | true | 商品编号 |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 商品编号 |
| name | string | 商品名称 |
| type | int | 商品类型(1:直充,2:卡密) |
| face_value | decimal | 面值 |
| price | decimal | 售价 |
| purchase_quantity_rule | string | 合法的购买数量 |
| status | int | 状态(1:销售中,2:停售) |
示例
{
"code": 0,
"message": "",
"data": {
"id": "27692",
"name": "黄金会员季卡",
"type": "2",
"face_value": "10.00",
"price": "37.5000",
"purchase_quantity_rule": "1-10000",
"status": "1"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13