Skip to content

接口修改

获取spu备注信息【新增】

接口名: /spu/remark/get
Method: GET
请求:
   station_id M str 站点id
   spu_id M str spu id
响应:
   code M int 0为成功,其它为失败
   msg M string 错误提示信息
   data M json

修改spu备注信息【新增】

接口名: /spu/remark/update
Method: GET
请求:
   station_id M str 站点id
   spu_id M str spu id
   remark M str 备注信息 
响应:
   code M int 0为成功,其它为失败
   msg M string 错误提示信息

提交订单【变动】

接口名:/order/submit
Method: POST
请求:
    orders M list 订单信息
    [{
        "salemenu_ids":["S0520"],
        "sku_ids": ["D805402", "D805402"],
        "spu_remark":{"C03830": "备注"}, # 新增字段:必须包含所有的sku,没有备注则设为空字符串
        "station_id": "T002",
    }]
响应:
   code M int 0为成功,其它为失败
   msg M string 错误提示信息

订单详情【变动】

接口名: /order/detail
Method: GET
请求:
    参数不变
响应:
   在details内容增加remark字段
   举例:
   {
    code: 0
    msg: "ok"
    data: {
        refunds: [ ]
        pay_method: 2
        supplier_name: "商品由小农女供应"
        abnormal_money: 0
        refund_money: 0
        real_price: 617
        status: 1
        id: "PL355624"
        order_price: 2617
        abnormals: [ ]
        total_pay: 2617
        freight: 2000
        details: [{
            remark: "新的备注" #新增字段
            std_unit_name: "斤"
            name: "菠菜|斤"
            purchase_quantity: 1
            sale_unit_name: "斤"
            real_item_price: 617
            sale_ratio: 1
            real_quantity: 1
        }]
        date_time: "2016-11-29"
        salemenu_ids: ["S0520"]
    }
    }