Appearance
4.7 获取商品价格
接口说明:返回协议优惠价格price,和商城售价mall_price。
Method | URL | ContentType |
---|---|---|
GET | /api/restful/products/prices | application/json |
URL参数说明:
参数 | 类型说明 | 是否必须 | 长度 | 描述 |
---|---|---|---|---|
skus | string | 必须 | 50 | 多个商品编号; 支持批量,以英文逗号分隔 |
customer_code | string | 非必须 | 50 | 客户编码 ,不填的情况,默认返回全部 |
返回结果说明:
参数 | 类型说明 | 描述 |
---|---|---|
price | double | 协议优惠价(双方签订的协议价格) |
mall_price | double | 商城售价(商品在我司商城的售价) |
market_price | double | 市场售价(商品市面上的价格) |
sku | string | 商品编号 |
tax_rate | float | 商品税率 |
naked_price | double | 商品裸价 |
tax_amount | double | 发票税额 |
customer_code | string | 客户编码,*代表全部 |
请求参数示例:
/api/restful/products/prices?skus=1049204,105019&customer_code=106253
返回数据示例:
json
{
"result": [{
"sku": "1049204",
"market_price": 1.9,
"mall_price": 1.6,
"price": 1.18,
"tax_rate":0.13,
"naked_price":1.04,
"tax_amount":0.14,
"customer_code": "106253"
}, {
"sku": "105019",
"market_price": 10.9,
"mall_price": 9.9,
"price": 7.1,
"tax_rate":0.13,
"naked_price":6.28,
"tax_amount":0.82,
"customer_code": "106253"
}],
"success": true,
"errormsg": "",
"errorcode": "0",
"requestId": "3071c687f2b74caf893f9f27caa05dbc"
}