1. 订单列表

接口

POST https://open.jisuapp.cn/business/Order/OrderList

请求参数说明

Content-Type: application/x-www-form-urlencoded

参数 类型 必填 说明
access_token string Y 用户授权的唯一票据
page int N 页码
page_size int N 每页条数
goods_type int N 订单商品类型 0电商 默认0
idx_arr obj N 旧筛选条件
filter_dis_group_order int N 过滤分销团购订单 默认0
screening_cond obj N 筛选

参数goods_type示例

goods_type:
0;    // 普通商品类型
1;    // 预约商品
2;    // 外卖商品
3;    // 到店商品
4;    // 储值商品
5;    // 当面付
6;    // 排号
8;    // 付费会员卡
9;    // 可兑换优惠券
10;   // 新版预约
11;   // 社区资讯版块收费
14;   // 新版预约次卡

参数idx_arr Json示例

 'idx_arr':{
    "idx":'status',
    'idx_value':1   // 分类状态值
}

参数screening_condJson示例

screening_cond:{
    pick_up_type:4, //取货方式 1快递订单 2同城配送 4餐饮
    date:{      //订单时间段
        start_data:"2019-07-22 10:20:52",   //开始时间
        end_date:"2019-07-22 10:20:52"      //结束时间
    },
    //订单状态:
    //pick_up_type = 1:  0待付款 1待发货 2待收货 3待评价 4退款审核中 5退款中 6已完成 7已关闭
    //pick_up_type = 2:  0待付款 8待接单 1待发货 2待收货 3待评价 4退款审核中 5退款中 6已完成 7已关闭
    //pick_up_type = 4:  0待付款 8先付后吃待接单 3待评价 4退款审核中 5退款中 6已完成 7已关闭 16先吃后付待接单 17先吃后付已下单
    //先付后吃订单状态流程: 0->8->3->6
    //先吃后付订单状态流程: 16->17->0->3->6
    status:[    
        0,
        3       
    ],
    order_id:"5cfe19c36565b339782329"   //订单号
}

返回参数

参数 类型 说明
status int 状态码 0成功 1失败
data string
count int 订单总数
current_page int 当前页数
total_page int 总页数

data返回参数示例

data:{
  "status": 0,
  "data": [
    {
      "form_data": {
        "app_info": {                           //店铺信息
          "app_name": "餐饮2.0",                 //店铺名
          "app_logo": "http://cdn.jisuapp.cn/zhichi_frontend/static/invitation/images/logo.png",    //店铺Logo
          "app_user_token": "648f995c1ca51dea34170ac21a7ef4f7"
        },
        "goods_info": [                         //订单商品
          {
            "id": "27784",                      //商品id
            "price": "1.00",                    //商品价格
            "goods_name": "😂唱跳rap-点餐(2元餐盒费全能)",    //商品名
            "is_integral": "1",                 //是否是积分商品 1积分商品
            "cover": "https://img.zhichiwangluo.com/zcimgdir/thumb/t_15524425225c88649a27472.jpg",  //商品主图
            "model": "33,45",                   //规格名id
            "model_name": [                     //规格名
              "鞋码",
              "颜色分类"
            ],
            "model_id": "499910",               //规格值id
            "model_value": [                    //规格值
              "40",
              "111白/白"
            ],
            "max_can_use_integral": "100",      //此商品可使用积分数
            "num": 1,                           //商品数量
            "buyer_id": "6eb2d97aece8a00ce579edbf766a6b95",     //用户id
            "is_seckill": 2,                    //是否是秒杀 1秒杀 2不是秒杀
            "mass": "1.000",                    //商品重量
            "volume": "0.000",                  //商品体积
            "express_rule_id": "0",             //运费模板id
            "box_fee": 2,                       //单个商品餐盒费(pick_up_type == 4)
            "original_price": "1.00",           //商品原价
            "is_presell": 0,                    //是否是预售商品 0不是 1是
            "is_vip_goods": 0,                  //是否是会员价商品 0不是 1是   
            "use_integral": 0,                  //是否使用了积分   0没有 1有
            "code": ""                          //商品码
          },
        ],
        "location_id": 20,                      //多人点餐桌位吗(pick_up_type == 4)
        "buyer_info": {                         //用户信息
          "nickname": "iCons",                  //用户名
          "phone": null,                        //用户绑定手机号                   
        },
        "original_price": "2.00",               //订单商品活动后总原价(未享受优惠: 优惠券 积分 会员卡)
        "selected_benefit_info": {              //优惠信息
          "is_free_postage": "0",               //是否免运费 0不是 1是  
          "discount_type": "vip",               //优惠类型 vip会员卡 coupon优惠券 integral积分
          "vip_id": "321210",                   //会员卡id
          "benefit_type": 1,                    //优惠方式 1打折  0减扣
          "name": "超级大会员",                   //优惠名
          "title": "超级大会员(打0.50折)",       //优惠详情
          "value": "0.50",                      //优惠力度  benefit_type == 1 : 打0.5折 benefit_type == 0 : 减扣
          "discount_price": "1.90",             //减扣金额
          "logo": "https://develop.zhichiwangluo.com/zhichi_frontend/static/webapp/images/vip-card/received-group-1.png",                     //优惠方式Logo
        },
​
        "original_express_fee": "0.00",         //原运费
        "ecommerce_info": {                     //电商数据
        },
        "total_integral": 0,                    //总积分
        "address_id": 0,                        //地址Id
        "box_fee": "0.00",                      //订单餐盒费
        "people_num": "1",                      //就餐人数(pick_up_type == 4)
        "tissue_fee": "0.00",                   //纸巾费(pick_up_type == 4)
        "server_fee": "0.00",                   //服务费(pick_up_type == 4)
        "offline_payment_id": 0,                //线下支付方式(pick_up_type == 4)
        "order_amount_price": "2.00",           //该笔订单应付总额
        "total_original_price": "2.00",         //订单总原价
        "address_info": {                       //用户地址信息
          "name": "雕刻",
          "contact": "15623986754",
          "country": {
            "text": "中国",
            "id": "1"
          },
          "province": {
            "text": "广东省",
            "id": "19"
          },
          "city": {
            "text": "深圳市",
            "id": "233"
          },
          "district": {
            "text": "南山区",
            "id": "2150"
          },
          "detailAddress": "芒果网大厦",
          "sex": "1",
          "label": "3",
          "regionInfoText": "广东省深圳市南山区",
          "address": "广东省深圳市南山区学府路5号",
          "address_id": "1210"
        },
        "id": "33322",
        "order_id": "5d356fd6bdb86304136588",           //订单号
        "buyer_id": "6eb2d97aece8a00ce579edbf766a6b95", //用户id
        "app_id": "OXI7ORBjri",
        "transaction_id": "consume_benefit",
        "payment_id": "3",                              //支付方式
        "pay_mode_id": "0",             
        "status": "3",                                  //订单状态,查看筛选条件
        "total_price": "0.00",                          //订单实际支付金额
        "add_time": "2019-07-22 16:12:07",              //订单添加时间
        "payment_time": "2019-07-22 16:12:07",          //订单支付时间
        "dispatch_time": "0",                           //发货时间
        "refund_time": "0",                             //退款时间
        "goods_type": "0",                              //订单类型
        "use_balance": "0.10",                          //订单使用储值金
        "express_fee": "0.00",                          //运费
        "discount_cut_price": "1.90",                   //优惠金额
        "pick_up_type": "4",                            //商品取货方式
        "goods_num": 2,                                 //订单商品总数
        "goods_refunded_nums": 0,                       //退款商品数量
        "goods_reduced_nums": 0,                        //退菜商品数量(pick_up_type == 4)
        "refunded_info": []
      }
    }
  ],
  "is_more": 0,
  "current_page": 1,
  "count": "1",
  "total_page": 1,
  "refund_order_count": 8
}

餐饮订单接口返回ecommerce_info Json示例

餐饮(pick_up_type == 4)
"ecommerce_info": {
  "ec_dining_data": {                           //餐饮订单配置数据
    "ordering_food_type": "1",                  //点餐类型 1堂食点餐
    "dining_mode": "1",                         //就餐方式 1堂食 2打包
    "people_num": "1",                          //就餐人数
    "take_meal_type": "1",                      //取餐方式 1送餐到桌 2前台自取
    "account_type": "1",                        //结账方式 1先付后吃 2先吃后付
    "location_name": "位置A",                    //位置名
    "appointed_time": "2019-07-22 16:12:00",    //预计就餐时间
    "duration_time": 0,                         //预计等待时间 单位分钟
    "formatted_queue_num": "B0001",             //排队号
    "has_reduce_dishes": 0                      //订单是否有退菜 0没有 1有
  },
  "ecommerce_dining_child_order": [             //餐饮子订单详情(加菜)
    {
      "id": "1559",
      "app_id": "OXI7ORBjri",
      "child_order_id": "5d356fd722d3b914435742",   //子订单id
      "order_id": "5d356fd6bdb86304136588",         //总订单id
      "account_type": "1",                          //结账方式
      "location_id": "50",                          //位置id
      "status": "20",                               //子订单状态 0待接单 10拒绝接单 20接单成功 30订单完成 40取消订单
      "child_form_data": [                          //每个子订单 下的 每个用户 添加的 商品数据和用户数据,这里是个数组!!!
        {
          "goods_list": [                           //每笔子订单的商品数据,字段意思跟总订单商品字段相同
            {
              "id": "27784",
              "goods_id": "27784",
              "price": "1.00",
              "goods_name": "😂唱跳rap-点餐(2元餐盒费全能)",
              "is_integral": "1",
              "cover": "https://img.zhichiwangluo.com/zcimgdir/thumb/t_15524425225c88649a27472.jpg",
              "model": "",
              "model_name": null,
              "model_value": null,
              "max_can_use_integral": "100",
              "model_id": "0",
              "num": 1,
              "buyer_id": "6eb2d97aece8a00ce579edbf766a6b95",
              "mass": "1.000",
              "volume": "0.000",
              "express_rule_id": "0",
              "box_fee": 2,
              "original_price": "1.00",
              "use_integral": 0
            },
          ],
          "buyer_info": {                                   //用户数据
            "buyer_id": "6eb2d97aece8a00ce579edbf766a6b95", //用户Id
            "nickname": "iCons",                            //昵称
            "phone": "",
            "cover_thumb": "https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqNeoF9JmdR2Az2Ymkl5rI3Chv3ribbJc4O0XS74ZrJT1BJHMRiatXUDEPdf6iaYGgFW0RxlzOXXCqNw/132",
            "from_admin": 0                                 //是否是管理员添加 0不是 1是
          }
        }
      ],
      "add_time": "2019-07-22 16:12:07",
      "update_time": "2019-07-22 16:12:33",
      "is_deleted": "0",
      "from_admin": "0",                                    //该子订单是否是管理员添加 0不是 1是
      "refuse_reason": ""                                   //拒绝接单理由
    }
  ]
},
​

同城配送订单接口返回ecommerce_info Json示例

"ecommerce_info": {
  "intra_city_data": {                                          //同城配送信息
    "deliver_time": "10",                                       //预计配送时间 单位分钟
    "deliver_type": "0",                                        //配送方式 0商家自配送
    "intra_city_appointment_arrive_time": "2019-06-29 19:46:42",//同城配送预约预计到达时间
    "accept_time": 1561808220,                                  //接单时间
    "transport_shop_id": "32"                                   //三方配送门店id
  }
}

订单内套餐商品结构(attributes) Json示例

{
    "4": {
        "id": "4",
        "name": "默认分组",
        "min_sales_num": "1",
        "max_sales_num": "5",
        "sku_id_list": [
            "28799_513935",
            "29117_514684"
        ],
        "goods_list": {
            "28799_513935": {
                "_attributes": [
                    {
                        "name": "配料",
                        "id": "2704",
                        "selected_type": "0",
                        "elem": [
                            {
                                "id": "11",
                                "name": "番茄酱",
                                "attributes_id": "2704",
                                "category_id": "4",
                                "symbol": "0",
                                "price": "3.00",
                                "selected_num": "1",
                                "category_name": ""
                            },
                            {
                                "id": "10",
                                "name": "辣椒",
                                "attributes_id": "2704",
                                "category_id": "4",
                                "symbol": "0",
                                "price": "3.00",
                                "selected_num": "3",
                                "category_name": ""
                            }
                        ]
                    }
                ],
                "_attributes_flow_price": "12.00",
                "goods_id": "28799",
                "model_id": "513935",
                "added_price": "0.00",
                "min_sales_nums": "0",
                "is_require": "1",
                "is_multi_select": "1",
                "price": "33.00",
                "stock": "219",
                "title": "单商品起卖4444",
                "model_name": "X|red",
                "cover": "https:/img.zhichiwangluo.com/zcimgdir/thumb/t_15512627845c76644034534.jpg",
                "goods_status": "0",
                "goods_sell_time": "0",
                "selected_num": "4"
            },
            "29117_514684": {
                "_attributes": [
                    {
                        "name": "配料",
                        "id": "2704",
                        "selected_type": "0",
                        "elem": [
                            {
                                "id": "11",
                                "name": "番茄酱",
                                "attributes_id": "2704",
                                "category_id": "4",
                                "symbol": "0",
                                "price": "3.00",
                                "selected_num": "2",
                                "category_name": ""
                            },
                            {
                                "id": "10",
                                "name": "辣椒",
                                "attributes_id": "2704",
                                "category_id": "4",
                                "symbol": "0",
                                "price": "3.00",
                                "selected_num": "5",
                                "category_name": ""
                            }
                        ]
                    }
                ],
                "_attributes_flow_price": "21.00",
                "goods_id": "29117",
                "model_id": "514684",
                "added_price": "0.00",
                "min_sales_nums": "3",
                "is_require": "0",
                "is_multi_select": "0",
                "price": "33.00",
                "stock": "382",
                "title": "单商品起卖33",
                "model_name": "X|red",
                "cover": "https:/img.zhichiwangluo.com/zcimgdir/thumb/t_15512627845c76644034534.jpg",
                "goods_status": "0",
                "goods_sell_time": "0",
                "selected_num": "1"
            }
        }
    }
},

订单内单商品属性结构(attributes) Json示例

[{
    "name": "配料",
    "id": "2704",
    "selected_type": "0",
    "elem": [
        {
        "id": "11",
        "name": "番茄酱",
        "attributes_id": "2704",
        "category_id": "4",
        "symbol": "1",
        "price": "3.00",
        "selected_num": "1",
        "category_name": ""
        },
    ]
}]

results matching ""

    No results matching ""