Skip to content
On this page

4.7 获取商品价格

接口说明:返回协议优惠价格price,和商城售价mall_price。

MethodURLContentType
GET/api/restful/products/pricesapplication/json

URL参数说明:

参数类型说明是否必须长度描述
skusstring必须50多个商品编号; 支持批量,以英文逗号分隔
customer_codestring非必须50客户编码 ,不填的情况,默认返回全部

返回结果说明:

参数类型说明描述
pricedouble协议优惠价(双方签订的协议价格)
mall_pricedouble商城售价(商品在我司商城的售价)
market_pricedouble市场售价(商品市面上的价格)
skustring商品编号
tax_ratefloat商品税率
naked_pricedouble商品裸价
tax_amountdouble发票税额
customer_codestring客户编码,*代表全部

请求参数示例:

/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"
}