购物车概览OPENAPI



  • 获得购物车当前数量

    base_url/openapi/cart/count

    {
        "result": "success",
        "data": {
            "count": 1, //数据条数
            "quantity": 1 //购买数量
        }
    }
    

    迷你购物车预览

    base_url/openapi/cart/preview

    {
        "result": "success",
        "data": [{
            "product_id": "31",//规格货品ID
            "goods_id": "3",//商品ID
            "barcode": "nb2015-1",//条码
            "bn": "nb2015-0",//SUK货号
            "price": "699.00",//销售价
            "mktprice": "0.000",//市场价
            "name": "New Balance\/NB \u7537\u978b\u5973\u978b \u590d\u53e4\u978b \u8dd1\u6b65\u8fd0\u52a8\u4f11\u95f2\u978b",//名称
            "weight": "0.000",//重量
            "unit": "\u53cc",
            "spec_info": "37\/\u590f\u5a01\u5937\u98ce\u60c5",//规格
            "cat_id": "10",//分类ID
            "brand_id": "6",//品牌ID
            "member_lv_price": "699.00",//会员价
            "buy_price": "349.50",//预计成交价(会员价基础上,扣除促销优惠后的价格)
            "item_url": "\/item-31.html",//商品详情页URL
            "remove_url": "\/cart-remove-goods_31.html",//删除购物车该项API
            "image_url": "\/\/statics.vmcshop.com\/ca\/a8\/aaa3c4766c74.jpg@470w_556h_100Q.jpg?27369_H1200_W1200"//商品缩略图
        }]
    }
    

登录后回复