版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。

接口

1. 接口定义

1.1. 订单服务

1.1.1. 获取催单

GET /{tenant_id}/soms/orderremindservice/orderremind/{id}
1.1.1.1. 说明

获取催单

1.1.1.2. 参数
类型 名称 说明 类型

Path

id
必填

催单ID

string

Path

tenant_id
必填

租户Id

string

1.1.1.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.1.4. HTTP请求示例
请求 path
/string/soms/orderremindservice/orderremind/string
1.1.1.5. HTTP响应示例
响应 200
{
  "created" : "2020-06-17 10:00:00",
  "modified" : "2020-06-17 10:00:00",
  "creator" : "string",
  "modifier" : "string",
  "store" : {
    "id" : "string",
    "name" : "string"
  },
  "time" : "2020-12-02 00:00:00",
  "count" : 1,
  "remind_id" : "很好",
  "order_id" : "202012021621",
  "platform_id" : "jdo2o",
  "shop_id" : "jdo2o",
  "front_remind_id" : "很好",
  "reply_state" : "string",
  "reply_time" : "2020-06-17 10:00:00",
  "reply_content" : "string",
  "reply_operator" : "string"
}

1.1.2. 催单回复

POST /{tenant_id}/soms/orderremindservice/remind/{id}/reply
1.1.2.1. 说明

催单回复

1.1.2.2. 参数
类型 名称 说明 类型

Path

id
必填

催单ID

string

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

request
必填

催单

1.1.2.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.2.4. HTTP请求示例
请求 path
/string/soms/orderremindservice/remind/string/reply?operator=string
请求 body
{
  "reply_time" : "2020-06-17 10:00:00",
  "reply_content" : "string",
  "reply_operator" : "string"
}
1.1.2.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.3. 查询催单

POST /{tenant_id}/soms/orderremindservice/reminds/query
1.1.3.1. 说明

查询催单

1.1.3.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户ID

string

Query

desc
必填

倒序

boolean

Query

page
可选

页码,从0开始,必须>=0

integer (int32)

Query

page_size
可选

分页大小,范围是[1,100]

integer (int32)

Query

sort_key
可选

排序字段,取值范围:time(催单时间)、created(创建时间)、modified(最后修改时间)

string

Body

filter
必填

查询条件

1.1.3.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.3.4. HTTP请求示例
请求 path
/string/soms/orderremindservice/reminds/query?desc=true
请求 body
{
  "id_eq" : "123",
  "id_in" : [ "string" ],
  "platform_id_eq" : "meituan",
  "order_id_eq" : "123465",
  "order_id_in" : [ "string" ],
  "store_id_eq" : "0001",
  "reply_state_eq" : "none(未回复)、replied(已回复)、invalid(失效)"
}
1.1.3.5. HTTP响应示例
响应 200
{
  "total" : 100,
  "page" : 1,
  "reminds" : [ {
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "store" : {
      "id" : "string",
      "name" : "string"
    },
    "time" : "2020-12-02 00:00:00",
    "count" : 1,
    "remind_id" : "很好",
    "order_id" : "202012021621",
    "platform_id" : "jdo2o",
    "shop_id" : "jdo2o",
    "front_remind_id" : "很好",
    "reply_state" : "string",
    "reply_time" : "2020-06-17 10:00:00",
    "reply_content" : "string",
    "reply_operator" : "string"
  } ],
  "page_count" : 5,
  "page_size" : 20
}

1.1.4. 提交订单(旧版)

POST /{tenant_id}/soms/orderservice/order
1.1.4.1. 说明

提交订单,只支持新增订单,不支持修改订单,状态:confirmed

1.1.4.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

order
必填

订单

1.1.4.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.4.4. HTTP请求示例
请求 path
/string/soms/orderservice/order?operator=string
请求 body
{
  "created" : "2020-06-17 10:00:00",
  "modified" : "2020-06-17 10:00:00",
  "creator" : "string",
  "modifier" : "string",
  "id" : "88822222222",
  "shop" : {
    "id" : "string",
    "name" : "string"
  },
  "source" : "小程序",
  "state" : "confirmed",
  "customer" : {
    "id" : "10001",
    "contact" : {
      "name" : "李飞",
      "telephone" : "189389928893",
      "mobile" : "189389928893",
      "email" : "55151@qq.com",
      "fax" : "123123",
      "private_name" : "张*红",
      "private_mobile" : "189****0000"
    }
  },
  "weight" : 500.0,
  "invoice" : {
    "required" : false,
    "result" : "开票成功",
    "details" : [ {
      "type" : "plain",
      "kind" : "paper",
      "title" : "XX公司",
      "content" : "上海股份有限公司",
      "amount" : 12.03,
      "tax" : 2.32,
      "account" : "0023415445",
      "telephone" : "12344545111",
      "bank" : "中国银行XXX",
      "address" : "福建厦门XX",
      "remark" : "plain",
      "email" : "chw@qq.com",
      "time" : "2019-07-15 16:56:23",
      "url" : "a.jpg",
      "title_type" : "person",
      "buyer_tax_code" : "1232000046600736XP",
      "taxer_id" : "1212345046600736XP",
      "print_number" : "123456",
      "securaty_code" : "2114445",
      "check_code" : "201622",
      "serial_no" : "454557884564545"
    } ],
    "error_reason" : "string",
    "apply_qrcode" : "string"
  },
  "payment" : {
    "type" : "online",
    "state" : "paid",
    "payee" : {
      "id" : "string",
      "name" : "string"
    },
    "amount" : 14.02,
    "freight" : 14.02,
    "details" : [ {
      "code" : "支付方式代码",
      "name" : "支付宝",
      "type" : "5",
      "amount" : 12.33,
      "cashier" : true,
      "score" : 100.0,
      "flowno" : "3223232323",
      "account_no" : "002002",
      "account_name" : "工行",
      "discount_amount" : 100.0,
      "pay_id" : "3223232323",
      "out_pay_id" : "3223232323",
      "extra_info" : "{\"session\", \"123\"}"
    } ],
    "extra" : [ {
      "id" : "distance_freight",
      "name" : "远距离运费",
      "value" : "0.01"
    } ],
    "pay_time" : "2019-03-02 12:00:01",
    "pay_bill_id" : "0122333333",
    "cod_amount" : 0.0,
    "earnest_amount" : 0.0,
    "package_total" : 14.02,
    "other_fee" : 0.0
  },
  "delivery" : {
    "type" : "deliver",
    "state" : "none",
    "receiver" : {
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      },
      "address" : {
        "country" : "中国",
        "province" : "福建省",
        "city" : "厦门市",
        "district" : "思明区",
        "street" : "前埔",
        "postcode" : "363423",
        "latitude" : "45.3,范围0-90",
        "longtitude" : "121.2,范围0-180",
        "coordinate_type" : "GCJ02",
        "private_street" : "脱敏地址**"
      }
    },
    "station" : {
      "id" : "string",
      "name" : "string"
    },
    "vendor" : {
      "code" : "string",
      "name" : "string"
    },
    "wrh" : {
      "code" : "string",
      "name" : "string"
    },
    "waybills" : [ {
      "carrier" : {
        "id" : "string",
        "name" : "string"
      },
      "weight" : {
        "unit" : "g",
        "value" : 1.0
      },
      "products" : [ {
        "quantity" : 123.0,
        "sku_id" : "123",
        "item_title" : "123"
      } ],
      "waybill_id" : "123",
      "carrier_proxy_platform" : "承运代理平台",
      "carrier_proxy_merchant" : "承运代理商家",
      "expected_logistics_type" : "crowdsourcing",
      "freight" : 1.11,
      "deliveryman_id" : "zhangsan",
      "deliveryman" : "张三",
      "deliveryman_mobile" : "13333333333",
      "merchant_id" : "111",
      "merchant_name" : "222"
    } ],
    "carrier" : {
      "state" : "initial",
      "type" : "self",
      "carrier" : {
        "id" : "string",
        "name" : "string"
      },
      "merchant" : {
        "id" : "string",
        "name" : "string"
      },
      "deliveryman" : {
        "id" : "string",
        "name" : "string"
      },
      "expected_logistics_type" : "crowdsourcing",
      "deliveryman_mobile" : "18859658865",
      "exception_reason" : "异常原因",
      "delivery_id" : "8548418",
      "delivery_name" : "8548418"
    },
    "remark" : "定时达",
    "operation_state" : "none",
    "ship_mode" : "wrhShip",
    "ship_delivery_mode" : "wrhShipCarrierDeli",
    "wrh_order_id" : "32323",
    "ship_id" : "23232323",
    "waybill_id" : "123",
    "carrier_proxy_platform" : "string",
    "carrier_proxy_merchant" : "string",
    "carrier_note" : "加快",
    "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
    "pre_start_delivery_time" : "2016-03-02 12:00:01",
    "pre_end_delivery_time" : "2016-03-02 14:00:01",
    "pickup_code" : "123456",
    "city_token" : "123456",
    "selftake_code" : "123456",
    "pre_selftake_time" : "03月05日 晚上",
    "selftake_confirmed" : true,
    "waybill_print_info" : {
      "datas" : [ {
        "type" : "string",
        "data" : "string"
      } ]
    }
  },
  "front" : {
    "platform" : {
      "id" : "string",
      "name" : "string"
    },
    "app" : {
      "id" : "string",
      "name" : "string"
    },
    "created" : "2016-03-02 12:00:01",
    "modified" : "2016-03-02 12:00:01",
    "state" : "已付款",
    "attribute" : "string",
    "order_id" : "1223654",
    "main_order_id" : "1223432",
    "third_order_id" : "1223432",
    "inner_order_id" : "1223432",
    "dpt_station_time" : "2016-03-02 12:00:01",
    "station_id" : "254145",
    "station_name" : "254145",
    "station_order_no" : "1",
    "finished_time" : "2016-03-02 12:00:01",
    "order_type" : {
      "id" : "string",
      "name" : "string"
    },
    "wrh_id" : "string"
  },
  "items" : [ {
    "uuid" : "string",
    "spec" : "1*1",
    "unit" : "瓶",
    "barcode" : "123456",
    "quantity" : 1.0,
    "total" : 2.0,
    "front" : {
      "spec" : "蓝色;微甜  少冰/多糖",
      "spec2" : "500g",
      "unit" : "string",
      "attributes" : [ {
        "group" : "口味",
        "values" : [ "string" ],
        "price" : 0.0,
        "qty" : 0.0
      } ],
      "tags" : [ {
        "id" : "string",
        "name" : "string"
      } ],
      "sku_id" : "052700601",
      "spu_id" : "052700601",
      "item_id" : "052700601"
    },
    "details" : [ {
      "id" : "121212",
      "title" : "矿泉水",
      "quantity" : 4.0,
      "ratio" : 3.0,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "front_spec" : "辣",
      "real_quantity" : 0.0,
      "fault_tolerant_info" : "string",
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ]
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ],
      "discount_amount" : 0.1,
      "apported_discount_amount" : 0.1
    },
    "item_no" : "1",
    "sku_id" : "00321",
    "product_id" : "2123",
    "item_title" : "葡萄",
    "unit_price" : 2.0,
    "purchase_price" : 2.0,
    "weight" : 1.0,
    "pay_amount" : 2.0,
    "discount_amount" : 12.02,
    "apported_discount_amount" : 12.02,
    "package_qty" : 125.0,
    "package_total" : 205.44,
    "package_info" : {
      "thermosphere" : "string",
      "quantity" : 125.0,
      "total" : 205.44,
      "packageName" : "保温袋"
    },
    "price" : 122.34,
    "cost_price" : 122.34,
    "shop_price" : 122.22,
    "shop_total" : 122.22,
    "settle_price" : 122.2222,
    "settle_total" : 122.22,
    "settle_discountAmount" : 122.22,
    "consume_scores" : 12.2,
    "image_url" : "http://aaa/bbb.png",
    "item_id" : "1",
    "is_collocation" : false,
    "relation_item_id" : "2123",
    "relation_sku_id" : "2123",
    "orig_mas_sku_id" : "string",
    "orig_sku_id" : "121212",
    "orig_item_title" : "【组合】洗护套装",
    "orig_price" : 122.22,
    "orig_qty" : 2.0,
    "orig_barcode" : "1212",
    "orig_image_url" : "string",
    "orig_weight" : 1.0,
    "orig_item" : {
      "type" : "multi",
      "barcode" : "121221",
      "price" : 33.22,
      "quantity" : 3.0,
      "weight" : 0.0,
      "sku_id" : "121221",
      "item_title" : "【组合】洗护套装",
      "image_url" : "string",
      "combined_id" : "121221"
    },
    "orig_extra_info" : {
      "spec" : "1*1",
      "unit" : "个"
    },
    "fault_tolerant_info" : "string",
    "salesman" : {
      "id" : "string",
      "name" : "string"
    },
    "trace_codes" : [ "string" ],
    "trace_code_details" : [ {
      "type" : "normal(普通),expDate(效期)",
      "barcode" : "123",
      "batch_no" : "string",
      "code" : "string",
      "valid_date" : "2020-06-17 10:00:00",
      "production_date" : "2020-06-17 10:00:00",
      "qty" : 0.0,
      "qpc_str" : "string"
    } ],
    "extra_info" : "{\"inv_mgr\": false}",
    "tags" : "标签",
    "real_weight" : 0.0,
    "real_quantity" : 0.0,
    "service_options" : "清洁/杀菌",
    "is_gift" : true
  } ],
  "logs" : [ {
    "action" : "modify",
    "message" : "修改订单商品明细",
    "time" : "2017-12-26 16:40:19",
    "operator" : "zuhu",
    "tenant_id" : "zuhu",
    "order_id" : "321212222",
    "rtn_id" : "212123333",
    "action_caption" : "修改订单"
  } ],
  "exceptions" : [ {
    "code" : "sku",
    "caption" : "商品异常",
    "remark" : "商品异常",
    "time" : "2017-12-26 16:40:19",
    "operator" : "zuhu",
    "order_id" : "123456"
  } ],
  "promotion" : {
    "favs" : [ {
      "id" : "1111",
      "name" : "满减",
      "type" : "string",
      "amount" : 10.5,
      "remark" : "测试优惠",
      "factor" : {
        "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
        "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
        "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
      },
      "sku_act_id" : "1111",
      "merchant_act_id" : "1111",
      "batch_act_id" : "1111",
      "child_type" : "string",
      "prom_cls" : "string",
      "voucher_code" : "111111111",
      "settle_details" : [ {
        "role" : "shop(商家)、platform(平台)、agent(代理商)",
        "discount" : 1.0
      } ],
      "share_details" : "[]",
      "extra_info" : "{\"thirdType\": \"42\"}"
    } ]
  },
  "order_store" : {
    "id" : "string",
    "name" : "string"
  },
  "approve_state" : "none",
  "wrh_state" : "initial",
  "customer_note" : "note",
  "seller_note" : "note",
  "salesman" : {
    "id" : "string",
    "name" : "string",
    "type" : "saleman",
    "org" : {
      "id" : "string",
      "name" : "string"
    },
    "org_type" : "门店",
    "inviter_mobile" : "18859226552",
    "inviter_name" : "王x",
    "inviter_wid" : "7567645",
    "personal_guider_name" : "王x",
    "personal_guider_no" : "3242323",
    "personal_guider_wid" : "3242323",
    "trade_guider_name" : "王x",
    "trade_guider_no" : "65756",
    "trade_guider_wid" : "45345",
    "weike_mobile" : "18859226552",
    "weike_name" : "张三",
    "weike_wid" : "765765756"
  },
  "cancel_type" : "customerCancel",
  "cancel_reason" : "我不想要了",
  "source_order_id" : "5346567534545645",
  "has_exception" : true,
  "exception_codes" : "sku",
  "exception_remark" : "商品不存在",
  "is_private" : true,
  "item_count" : 1,
  "sku_quantity" : 1.0,
  "real_total" : 120.01,
  "orig_total" : 120.01,
  "user_number" : 2,
  "settle_amount" : 120.01,
  "settle_commission" : 120.01,
  "selttle_commission" : 120.01,
  "settle_freight" : 120.01,
  "performance_service_fee" : 120.01,
  "shop_amount" : 120.01,
  "freight_discount" : 33.33,
  "package_discount" : 33.33,
  "invoice_take_code" : "string",
  "item_change_records" : [ {
    "reason" : "string",
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "change_items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ]
  } ],
  "print_bills" : [ {
    "name" : "外卖订单",
    "title" : "外卖订单",
    "content" : "内容",
    "created" : "2020-06-17 10:00:00",
    "printer" : "string",
    "outerId" : "string",
    "deleted" : true,
    "type" : "string",
    "ticket_type" : "小票",
    "deleted_time" : "2020-06-17 10:00:00",
    "sku_id" : "string"
  } ],
  "suspend_info" : {
    "suspended" : true,
    "code" : "string",
    "caption" : "string",
    "time" : "2017-12-26 16:40:19"
  },
  "member_info" : {
    "member_id" : "12253",
    "card_no" : "22323",
    "member_gid" : "12253",
    "outer_member_id" : "12253",
    "mobile" : "12253",
    "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
  },
  "fault_tolerant_info" : "string",
  "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
  "crm_info" : {
    "coupon_info" : {
      "details" : "[]",
      "use_total" : 1.0
    },
    "score_info" : {
      "total" : 1.0,
      "balance" : 100.0
    }
  },
  "settle_info" : {
    "settlable" : true,
    "discounts" : "[{}]",
    "settle_date" : "2022-08-25 00:00:00",
    "station_settle_mode" : "online"
  },
  "settle_unit" : {
    "type" : "store",
    "code" : "0001",
    "name" : "门店1"
  },
  "package_info" : {
    "required" : false,
    "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
    "details" : "[]",
    "package_type" : "保温袋"
  },
  "pick_info" : {
    "time" : "2020-06-17 10:00:00",
    "source" : "string",
    "operator_id" : "string",
    "operator_name" : "string",
    "auto_picked_finish" : true,
    "allow_pick_start_time" : "2020-06-17 10:00:00"
  },
  "item_logistics" : [ {
    "qty" : 0.0,
    "sku_id" : "string",
    "logistics_code" : "string"
  } ],
  "calc_data" : true,
  "wrh_id" : "4184",
  "encrypt_detail" : {
    "secretKey" : "string",
    "encrypt_street" : "string",
    "encrypt_name" : "string",
    "encrypt_mobile" : "string"
  },
  "tags" : [ {
    "name" : "首单"
  } ],
  "quotas" : [ {
    "action" : "expect_shipping",
    "time" : "2021-09-26 16:40:19",
    "remark" : "无",
    "action_name" : "期望拣货完成时间"
  } ],
  "reissue_reason" : "string",
  "responsible_party" : "string",
  "mock_info" : {
    "persist" : true
  },
  "adjust_details" : [ {
    "field" : "amount,pay_amount,quantity",
    "before" : "10",
    "after" : "12"
  } ],
  "sale_order_id" : "string",
  "waybill_id" : "32332",
  "address_change_fee" : 0.0,
  "reason" : "黑子",
  "shipping_voucher_urls" : [ "string" ],
  "wish_info" : {
    "wish" : "string",
    "type" : "string"
  }
}

1.1.5. 自提检查

POST /{tenant_id}/soms/orderservice/order/action/selftake/check
1.1.5.1. 说明

自提检查

1.1.5.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

请求对象

1.1.5.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.5.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/action/selftake/check?operator=string
请求 body
{
  "store_id" : "232434",
  "platform_id" : "youzan",
  "selftake_code" : "123456",
  "selftake_qrcode" : "123456",
  "front_order_id" : "5745323545453"
}
1.1.5.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "order_id" : "5745323545453"
}

1.1.6. 确认自提(新接口)

POST /{tenant_id}/soms/orderservice/order/action/v2/selftake
1.1.6.1. 说明

确认自提(新接口)

1.1.6.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

请求对象

1.1.6.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.6.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/action/v2/selftake?operator=string
请求 body
{
  "store_id" : "454534",
  "selftake_qrcode" : "222222",
  "order_id" : "12345",
  "platform_id" : "be.eleme"
}
1.1.6.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "order_id" : "5745323545453"
}

1.1.7. 订单检测

POST /{tenant_id}/soms/orderservice/order/check
1.1.7.1. 说明

地址检测:支持检测美团、蜂鸟、顺丰大网,用于检测地址是否在配送范围内;配送检测:用于检测配送平台是否可送;配送计算:用于计算使用哪个配送平台进行配送

1.1.7.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

request
必填

订单检测

1.1.7.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.7.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/check?operator=string
请求 body
{
  "type" : "deliverycheck",
  "station" : {
    "id" : "string",
    "name" : "string"
  },
  "weight" : 10.0,
  "amount" : 10.0,
  "items" : "[]",
  "platform_id" : "jdo2o",
  "order_id" : "121212",
  "receiver_address" : {
    "country" : "中国",
    "province" : "福建省",
    "city" : "厦门市",
    "district" : "思明区",
    "street" : "前埔",
    "postcode" : "363423",
    "latitude" : "45.3,范围0-90",
    "longtitude" : "121.2,范围0-180",
    "coordinate_type" : "GCJ02",
    "private_street" : "脱敏地址**"
  },
  "receiver_contact" : {
    "name" : "李飞",
    "telephone" : "189389928893",
    "mobile" : "189389928893",
    "email" : "55151@qq.com",
    "fax" : "123123",
    "private_name" : "张*红",
    "private_mobile" : "189****0000"
  },
  "pre_type" : "normal",
  "expect_delivery_time" : "2022-03-02 14:00:01",
  "sku_quantity" : 10.0,
  "carrier_id" : "meituan",
  "ship_mode" : "stationShip"
}
1.1.7.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "distance" : 1000.0,
  "freight" : 10.0,
  "suggest_carrier" : {
    "id" : "string",
    "name" : "string"
  },
  "pre_delivery_time" : "2022-06-30 12:00:00 或者 2022-06-30",
  "pre_delivery_slots" : [ {
    "pre_date" : "今天(周三)",
    "pre_ends" : "[\"立即送出\",\"12:00\",\"13:00\"]"
  } ],
  "delivery_mins" : 10.0
}

1.1.8. 批量修改订单下单门店

POST /{tenant_id}/soms/orderservice/order/mod/store
1.1.8.1. 说明

批量修改订单下单门店

1.1.8.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

request
必填

修改内容

1.1.8.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.8.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/mod/store?operator=string
请求 body
{
  "mods" : [ {
    "order_id" : "1212",
    "order_store" : {
      "id" : "string",
      "name" : "string"
    }
  } ]
}
1.1.8.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "errors" : [ {
    "id" : "1212",
    "message" : "订单不存在"
  } ]
}

1.1.9. 批量取指定订单

GET /{tenant_id}/soms/orderservice/order/orders
1.1.9.1. 说明

批量取订单,级联信息可以通过parts获取

1.1.9.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户ID

string

Query

id
必填

订单号集合,建议20,最多100个

< string > array(multi)

Query

parts
可选

需要返回的部分,取值范围:items(商品详情)、item.details(商品组合详情),paymentDetails(支付详情)、invoiceDetails(发票详情)、printBills(打印信息)、prom(优惠信息)、exceptions(订单异常信息)、waybill.printinfo(运单打印信息)

string

1.1.9.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.9.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/orders?id=string
1.1.9.5. HTTP响应示例
响应 200
{
  "orders" : [ {
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "id" : "88822222222",
    "shop" : {
      "id" : "string",
      "name" : "string"
    },
    "source" : "小程序",
    "state" : "confirmed",
    "customer" : {
      "id" : "10001",
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      }
    },
    "weight" : 500.0,
    "invoice" : {
      "required" : false,
      "result" : "开票成功",
      "details" : [ {
        "type" : "plain",
        "kind" : "paper",
        "title" : "XX公司",
        "content" : "上海股份有限公司",
        "amount" : 12.03,
        "tax" : 2.32,
        "account" : "0023415445",
        "telephone" : "12344545111",
        "bank" : "中国银行XXX",
        "address" : "福建厦门XX",
        "remark" : "plain",
        "email" : "chw@qq.com",
        "time" : "2019-07-15 16:56:23",
        "url" : "a.jpg",
        "title_type" : "person",
        "buyer_tax_code" : "1232000046600736XP",
        "taxer_id" : "1212345046600736XP",
        "print_number" : "123456",
        "securaty_code" : "2114445",
        "check_code" : "201622",
        "serial_no" : "454557884564545"
      } ],
      "error_reason" : "string",
      "apply_qrcode" : "string"
    },
    "payment" : {
      "type" : "online",
      "state" : "paid",
      "payee" : {
        "id" : "string",
        "name" : "string"
      },
      "amount" : 14.02,
      "freight" : 14.02,
      "details" : [ {
        "code" : "支付方式代码",
        "name" : "支付宝",
        "type" : "5",
        "amount" : 12.33,
        "cashier" : true,
        "score" : 100.0,
        "flowno" : "3223232323",
        "account_no" : "002002",
        "account_name" : "工行",
        "discount_amount" : 100.0,
        "pay_id" : "3223232323",
        "out_pay_id" : "3223232323",
        "extra_info" : "{\"session\", \"123\"}"
      } ],
      "extra" : [ {
        "id" : "distance_freight",
        "name" : "远距离运费",
        "value" : "0.01"
      } ],
      "pay_time" : "2019-03-02 12:00:01",
      "pay_bill_id" : "0122333333",
      "cod_amount" : 0.0,
      "earnest_amount" : 0.0,
      "package_total" : 14.02,
      "other_fee" : 0.0
    },
    "delivery" : {
      "type" : "deliver",
      "state" : "none",
      "receiver" : {
        "contact" : {
          "name" : "李飞",
          "telephone" : "189389928893",
          "mobile" : "189389928893",
          "email" : "55151@qq.com",
          "fax" : "123123",
          "private_name" : "张*红",
          "private_mobile" : "189****0000"
        },
        "address" : {
          "country" : "中国",
          "province" : "福建省",
          "city" : "厦门市",
          "district" : "思明区",
          "street" : "前埔",
          "postcode" : "363423",
          "latitude" : "45.3,范围0-90",
          "longtitude" : "121.2,范围0-180",
          "coordinate_type" : "GCJ02",
          "private_street" : "脱敏地址**"
        }
      },
      "station" : {
        "id" : "string",
        "name" : "string"
      },
      "vendor" : {
        "code" : "string",
        "name" : "string"
      },
      "wrh" : {
        "code" : "string",
        "name" : "string"
      },
      "waybills" : [ {
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "weight" : {
          "unit" : "g",
          "value" : 1.0
        },
        "products" : [ {
          "quantity" : 123.0,
          "sku_id" : "123",
          "item_title" : "123"
        } ],
        "waybill_id" : "123",
        "carrier_proxy_platform" : "承运代理平台",
        "carrier_proxy_merchant" : "承运代理商家",
        "expected_logistics_type" : "crowdsourcing",
        "freight" : 1.11,
        "deliveryman_id" : "zhangsan",
        "deliveryman" : "张三",
        "deliveryman_mobile" : "13333333333",
        "merchant_id" : "111",
        "merchant_name" : "222"
      } ],
      "carrier" : {
        "state" : "initial",
        "type" : "self",
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "merchant" : {
          "id" : "string",
          "name" : "string"
        },
        "deliveryman" : {
          "id" : "string",
          "name" : "string"
        },
        "expected_logistics_type" : "crowdsourcing",
        "deliveryman_mobile" : "18859658865",
        "exception_reason" : "异常原因",
        "delivery_id" : "8548418",
        "delivery_name" : "8548418"
      },
      "remark" : "定时达",
      "operation_state" : "none",
      "ship_mode" : "wrhShip",
      "ship_delivery_mode" : "wrhShipCarrierDeli",
      "wrh_order_id" : "32323",
      "ship_id" : "23232323",
      "waybill_id" : "123",
      "carrier_proxy_platform" : "string",
      "carrier_proxy_merchant" : "string",
      "carrier_note" : "加快",
      "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
      "pre_start_delivery_time" : "2016-03-02 12:00:01",
      "pre_end_delivery_time" : "2016-03-02 14:00:01",
      "pickup_code" : "123456",
      "city_token" : "123456",
      "selftake_code" : "123456",
      "pre_selftake_time" : "03月05日 晚上",
      "selftake_confirmed" : true,
      "waybill_print_info" : {
        "datas" : [ {
          "type" : "string",
          "data" : "string"
        } ]
      }
    },
    "front" : {
      "platform" : {
        "id" : "string",
        "name" : "string"
      },
      "app" : {
        "id" : "string",
        "name" : "string"
      },
      "created" : "2016-03-02 12:00:01",
      "modified" : "2016-03-02 12:00:01",
      "state" : "已付款",
      "attribute" : "string",
      "order_id" : "1223654",
      "main_order_id" : "1223432",
      "third_order_id" : "1223432",
      "inner_order_id" : "1223432",
      "dpt_station_time" : "2016-03-02 12:00:01",
      "station_id" : "254145",
      "station_name" : "254145",
      "station_order_no" : "1",
      "finished_time" : "2016-03-02 12:00:01",
      "order_type" : {
        "id" : "string",
        "name" : "string"
      },
      "wrh_id" : "string"
    },
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "logs" : [ {
      "action" : "modify",
      "message" : "修改订单商品明细",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "tenant_id" : "zuhu",
      "order_id" : "321212222",
      "rtn_id" : "212123333",
      "action_caption" : "修改订单"
    } ],
    "exceptions" : [ {
      "code" : "sku",
      "caption" : "商品异常",
      "remark" : "商品异常",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "order_id" : "123456"
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ]
    },
    "order_store" : {
      "id" : "string",
      "name" : "string"
    },
    "approve_state" : "none",
    "wrh_state" : "initial",
    "customer_note" : "note",
    "seller_note" : "note",
    "salesman" : {
      "id" : "string",
      "name" : "string",
      "type" : "saleman",
      "org" : {
        "id" : "string",
        "name" : "string"
      },
      "org_type" : "门店",
      "inviter_mobile" : "18859226552",
      "inviter_name" : "王x",
      "inviter_wid" : "7567645",
      "personal_guider_name" : "王x",
      "personal_guider_no" : "3242323",
      "personal_guider_wid" : "3242323",
      "trade_guider_name" : "王x",
      "trade_guider_no" : "65756",
      "trade_guider_wid" : "45345",
      "weike_mobile" : "18859226552",
      "weike_name" : "张三",
      "weike_wid" : "765765756"
    },
    "cancel_type" : "customerCancel",
    "cancel_reason" : "我不想要了",
    "source_order_id" : "5346567534545645",
    "has_exception" : true,
    "exception_codes" : "sku",
    "exception_remark" : "商品不存在",
    "is_private" : true,
    "item_count" : 1,
    "sku_quantity" : 1.0,
    "real_total" : 120.01,
    "orig_total" : 120.01,
    "user_number" : 2,
    "settle_amount" : 120.01,
    "settle_commission" : 120.01,
    "selttle_commission" : 120.01,
    "settle_freight" : 120.01,
    "performance_service_fee" : 120.01,
    "shop_amount" : 120.01,
    "freight_discount" : 33.33,
    "package_discount" : 33.33,
    "invoice_take_code" : "string",
    "item_change_records" : [ {
      "reason" : "string",
      "created" : "2020-06-17 10:00:00",
      "modified" : "2020-06-17 10:00:00",
      "creator" : "string",
      "modifier" : "string",
      "items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ],
      "change_items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ]
    } ],
    "print_bills" : [ {
      "name" : "外卖订单",
      "title" : "外卖订单",
      "content" : "内容",
      "created" : "2020-06-17 10:00:00",
      "printer" : "string",
      "outerId" : "string",
      "deleted" : true,
      "type" : "string",
      "ticket_type" : "小票",
      "deleted_time" : "2020-06-17 10:00:00",
      "sku_id" : "string"
    } ],
    "suspend_info" : {
      "suspended" : true,
      "code" : "string",
      "caption" : "string",
      "time" : "2017-12-26 16:40:19"
    },
    "member_info" : {
      "member_id" : "12253",
      "card_no" : "22323",
      "member_gid" : "12253",
      "outer_member_id" : "12253",
      "mobile" : "12253",
      "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
    },
    "fault_tolerant_info" : "string",
    "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
    "crm_info" : {
      "coupon_info" : {
        "details" : "[]",
        "use_total" : 1.0
      },
      "score_info" : {
        "total" : 1.0,
        "balance" : 100.0
      }
    },
    "settle_info" : {
      "settlable" : true,
      "discounts" : "[{}]",
      "settle_date" : "2022-08-25 00:00:00",
      "station_settle_mode" : "online"
    },
    "settle_unit" : {
      "type" : "store",
      "code" : "0001",
      "name" : "门店1"
    },
    "package_info" : {
      "required" : false,
      "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
      "details" : "[]",
      "package_type" : "保温袋"
    },
    "pick_info" : {
      "time" : "2020-06-17 10:00:00",
      "source" : "string",
      "operator_id" : "string",
      "operator_name" : "string",
      "auto_picked_finish" : true,
      "allow_pick_start_time" : "2020-06-17 10:00:00"
    },
    "item_logistics" : [ {
      "qty" : 0.0,
      "sku_id" : "string",
      "logistics_code" : "string"
    } ],
    "calc_data" : true,
    "wrh_id" : "4184",
    "encrypt_detail" : {
      "secretKey" : "string",
      "encrypt_street" : "string",
      "encrypt_name" : "string",
      "encrypt_mobile" : "string"
    },
    "tags" : [ {
      "name" : "首单"
    } ],
    "quotas" : [ {
      "action" : "expect_shipping",
      "time" : "2021-09-26 16:40:19",
      "remark" : "无",
      "action_name" : "期望拣货完成时间"
    } ],
    "reissue_reason" : "string",
    "responsible_party" : "string",
    "mock_info" : {
      "persist" : true
    },
    "adjust_details" : [ {
      "field" : "amount,pay_amount,quantity",
      "before" : "10",
      "after" : "12"
    } ],
    "sale_order_id" : "string",
    "waybill_id" : "32332",
    "address_change_fee" : 0.0,
    "reason" : "黑子",
    "shipping_voucher_urls" : [ "string" ],
    "wish_info" : {
      "wish" : "string",
      "type" : "string"
    }
  } ],
  "empty" : true
}

1.1.10. 补发订单

POST /{tenant_id}/soms/orderservice/order/reissue
1.1.10.1. 说明

补发订单

1.1.10.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

request
必填

订单补发请求

1.1.10.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.10.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/reissue?operator=string
请求 body
{
  "receiver" : {
    "contact" : {
      "name" : "李飞",
      "telephone" : "189389928893",
      "mobile" : "189389928893",
      "email" : "55151@qq.com",
      "fax" : "123123",
      "private_name" : "张*红",
      "private_mobile" : "189****0000"
    },
    "address" : {
      "country" : "中国",
      "province" : "福建省",
      "city" : "厦门市",
      "district" : "思明区",
      "street" : "前埔",
      "postcode" : "363423",
      "latitude" : "45.3,范围0-90",
      "longtitude" : "121.2,范围0-180",
      "coordinate_type" : "GCJ02",
      "private_street" : "脱敏地址**"
    }
  },
  "source_order_id" : "121212",
  "responsible_party" : "carrier",
  "reissue_reason" : "弄丢了",
  "reissue_order_items" : [ {
    "quantity" : 13.0,
    "item_no" : "1",
    "sku_id" : "132323"
  } ],
  "seller_note" : "商家备注"
}
1.1.10.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "order_id" : "string"
}

1.1.11. 根据销售订单号取订单

GET /{tenant_id}/soms/orderservice/order/saleorder/{sale_order_id}
1.1.11.1. 说明

根据销售订单号取订单

1.1.11.2. 参数
类型 名称 说明 类型

Path

sale_order_id
必填

销售订单号

string

Path

tenant_id
必填

租户ID

string

Query

parts
可选

需要返回的部分,取值范围:items(商品详情)、paym entDetails(支付详情)、invoiceDetails(发票详情)

string

1.1.11.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.11.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/saleorder/string
1.1.11.5. HTTP响应示例
响应 200
{
  "orders" : [ {
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "id" : "88822222222",
    "shop" : {
      "id" : "string",
      "name" : "string"
    },
    "source" : "小程序",
    "state" : "confirmed",
    "customer" : {
      "id" : "10001",
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      }
    },
    "weight" : 500.0,
    "invoice" : {
      "required" : false,
      "result" : "开票成功",
      "details" : [ {
        "type" : "plain",
        "kind" : "paper",
        "title" : "XX公司",
        "content" : "上海股份有限公司",
        "amount" : 12.03,
        "tax" : 2.32,
        "account" : "0023415445",
        "telephone" : "12344545111",
        "bank" : "中国银行XXX",
        "address" : "福建厦门XX",
        "remark" : "plain",
        "email" : "chw@qq.com",
        "time" : "2019-07-15 16:56:23",
        "url" : "a.jpg",
        "title_type" : "person",
        "buyer_tax_code" : "1232000046600736XP",
        "taxer_id" : "1212345046600736XP",
        "print_number" : "123456",
        "securaty_code" : "2114445",
        "check_code" : "201622",
        "serial_no" : "454557884564545"
      } ],
      "error_reason" : "string",
      "apply_qrcode" : "string"
    },
    "payment" : {
      "type" : "online",
      "state" : "paid",
      "payee" : {
        "id" : "string",
        "name" : "string"
      },
      "amount" : 14.02,
      "freight" : 14.02,
      "details" : [ {
        "code" : "支付方式代码",
        "name" : "支付宝",
        "type" : "5",
        "amount" : 12.33,
        "cashier" : true,
        "score" : 100.0,
        "flowno" : "3223232323",
        "account_no" : "002002",
        "account_name" : "工行",
        "discount_amount" : 100.0,
        "pay_id" : "3223232323",
        "out_pay_id" : "3223232323",
        "extra_info" : "{\"session\", \"123\"}"
      } ],
      "extra" : [ {
        "id" : "distance_freight",
        "name" : "远距离运费",
        "value" : "0.01"
      } ],
      "pay_time" : "2019-03-02 12:00:01",
      "pay_bill_id" : "0122333333",
      "cod_amount" : 0.0,
      "earnest_amount" : 0.0,
      "package_total" : 14.02,
      "other_fee" : 0.0
    },
    "delivery" : {
      "type" : "deliver",
      "state" : "none",
      "receiver" : {
        "contact" : {
          "name" : "李飞",
          "telephone" : "189389928893",
          "mobile" : "189389928893",
          "email" : "55151@qq.com",
          "fax" : "123123",
          "private_name" : "张*红",
          "private_mobile" : "189****0000"
        },
        "address" : {
          "country" : "中国",
          "province" : "福建省",
          "city" : "厦门市",
          "district" : "思明区",
          "street" : "前埔",
          "postcode" : "363423",
          "latitude" : "45.3,范围0-90",
          "longtitude" : "121.2,范围0-180",
          "coordinate_type" : "GCJ02",
          "private_street" : "脱敏地址**"
        }
      },
      "station" : {
        "id" : "string",
        "name" : "string"
      },
      "vendor" : {
        "code" : "string",
        "name" : "string"
      },
      "wrh" : {
        "code" : "string",
        "name" : "string"
      },
      "waybills" : [ {
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "weight" : {
          "unit" : "g",
          "value" : 1.0
        },
        "products" : [ {
          "quantity" : 123.0,
          "sku_id" : "123",
          "item_title" : "123"
        } ],
        "waybill_id" : "123",
        "carrier_proxy_platform" : "承运代理平台",
        "carrier_proxy_merchant" : "承运代理商家",
        "expected_logistics_type" : "crowdsourcing",
        "freight" : 1.11,
        "deliveryman_id" : "zhangsan",
        "deliveryman" : "张三",
        "deliveryman_mobile" : "13333333333",
        "merchant_id" : "111",
        "merchant_name" : "222"
      } ],
      "carrier" : {
        "state" : "initial",
        "type" : "self",
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "merchant" : {
          "id" : "string",
          "name" : "string"
        },
        "deliveryman" : {
          "id" : "string",
          "name" : "string"
        },
        "expected_logistics_type" : "crowdsourcing",
        "deliveryman_mobile" : "18859658865",
        "exception_reason" : "异常原因",
        "delivery_id" : "8548418",
        "delivery_name" : "8548418"
      },
      "remark" : "定时达",
      "operation_state" : "none",
      "ship_mode" : "wrhShip",
      "ship_delivery_mode" : "wrhShipCarrierDeli",
      "wrh_order_id" : "32323",
      "ship_id" : "23232323",
      "waybill_id" : "123",
      "carrier_proxy_platform" : "string",
      "carrier_proxy_merchant" : "string",
      "carrier_note" : "加快",
      "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
      "pre_start_delivery_time" : "2016-03-02 12:00:01",
      "pre_end_delivery_time" : "2016-03-02 14:00:01",
      "pickup_code" : "123456",
      "city_token" : "123456",
      "selftake_code" : "123456",
      "pre_selftake_time" : "03月05日 晚上",
      "selftake_confirmed" : true,
      "waybill_print_info" : {
        "datas" : [ {
          "type" : "string",
          "data" : "string"
        } ]
      }
    },
    "front" : {
      "platform" : {
        "id" : "string",
        "name" : "string"
      },
      "app" : {
        "id" : "string",
        "name" : "string"
      },
      "created" : "2016-03-02 12:00:01",
      "modified" : "2016-03-02 12:00:01",
      "state" : "已付款",
      "attribute" : "string",
      "order_id" : "1223654",
      "main_order_id" : "1223432",
      "third_order_id" : "1223432",
      "inner_order_id" : "1223432",
      "dpt_station_time" : "2016-03-02 12:00:01",
      "station_id" : "254145",
      "station_name" : "254145",
      "station_order_no" : "1",
      "finished_time" : "2016-03-02 12:00:01",
      "order_type" : {
        "id" : "string",
        "name" : "string"
      },
      "wrh_id" : "string"
    },
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "logs" : [ {
      "action" : "modify",
      "message" : "修改订单商品明细",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "tenant_id" : "zuhu",
      "order_id" : "321212222",
      "rtn_id" : "212123333",
      "action_caption" : "修改订单"
    } ],
    "exceptions" : [ {
      "code" : "sku",
      "caption" : "商品异常",
      "remark" : "商品异常",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "order_id" : "123456"
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ]
    },
    "order_store" : {
      "id" : "string",
      "name" : "string"
    },
    "approve_state" : "none",
    "wrh_state" : "initial",
    "customer_note" : "note",
    "seller_note" : "note",
    "salesman" : {
      "id" : "string",
      "name" : "string",
      "type" : "saleman",
      "org" : {
        "id" : "string",
        "name" : "string"
      },
      "org_type" : "门店",
      "inviter_mobile" : "18859226552",
      "inviter_name" : "王x",
      "inviter_wid" : "7567645",
      "personal_guider_name" : "王x",
      "personal_guider_no" : "3242323",
      "personal_guider_wid" : "3242323",
      "trade_guider_name" : "王x",
      "trade_guider_no" : "65756",
      "trade_guider_wid" : "45345",
      "weike_mobile" : "18859226552",
      "weike_name" : "张三",
      "weike_wid" : "765765756"
    },
    "cancel_type" : "customerCancel",
    "cancel_reason" : "我不想要了",
    "source_order_id" : "5346567534545645",
    "has_exception" : true,
    "exception_codes" : "sku",
    "exception_remark" : "商品不存在",
    "is_private" : true,
    "item_count" : 1,
    "sku_quantity" : 1.0,
    "real_total" : 120.01,
    "orig_total" : 120.01,
    "user_number" : 2,
    "settle_amount" : 120.01,
    "settle_commission" : 120.01,
    "selttle_commission" : 120.01,
    "settle_freight" : 120.01,
    "performance_service_fee" : 120.01,
    "shop_amount" : 120.01,
    "freight_discount" : 33.33,
    "package_discount" : 33.33,
    "invoice_take_code" : "string",
    "item_change_records" : [ {
      "reason" : "string",
      "created" : "2020-06-17 10:00:00",
      "modified" : "2020-06-17 10:00:00",
      "creator" : "string",
      "modifier" : "string",
      "items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ],
      "change_items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ]
    } ],
    "print_bills" : [ {
      "name" : "外卖订单",
      "title" : "外卖订单",
      "content" : "内容",
      "created" : "2020-06-17 10:00:00",
      "printer" : "string",
      "outerId" : "string",
      "deleted" : true,
      "type" : "string",
      "ticket_type" : "小票",
      "deleted_time" : "2020-06-17 10:00:00",
      "sku_id" : "string"
    } ],
    "suspend_info" : {
      "suspended" : true,
      "code" : "string",
      "caption" : "string",
      "time" : "2017-12-26 16:40:19"
    },
    "member_info" : {
      "member_id" : "12253",
      "card_no" : "22323",
      "member_gid" : "12253",
      "outer_member_id" : "12253",
      "mobile" : "12253",
      "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
    },
    "fault_tolerant_info" : "string",
    "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
    "crm_info" : {
      "coupon_info" : {
        "details" : "[]",
        "use_total" : 1.0
      },
      "score_info" : {
        "total" : 1.0,
        "balance" : 100.0
      }
    },
    "settle_info" : {
      "settlable" : true,
      "discounts" : "[{}]",
      "settle_date" : "2022-08-25 00:00:00",
      "station_settle_mode" : "online"
    },
    "settle_unit" : {
      "type" : "store",
      "code" : "0001",
      "name" : "门店1"
    },
    "package_info" : {
      "required" : false,
      "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
      "details" : "[]",
      "package_type" : "保温袋"
    },
    "pick_info" : {
      "time" : "2020-06-17 10:00:00",
      "source" : "string",
      "operator_id" : "string",
      "operator_name" : "string",
      "auto_picked_finish" : true,
      "allow_pick_start_time" : "2020-06-17 10:00:00"
    },
    "item_logistics" : [ {
      "qty" : 0.0,
      "sku_id" : "string",
      "logistics_code" : "string"
    } ],
    "calc_data" : true,
    "wrh_id" : "4184",
    "encrypt_detail" : {
      "secretKey" : "string",
      "encrypt_street" : "string",
      "encrypt_name" : "string",
      "encrypt_mobile" : "string"
    },
    "tags" : [ {
      "name" : "首单"
    } ],
    "quotas" : [ {
      "action" : "expect_shipping",
      "time" : "2021-09-26 16:40:19",
      "remark" : "无",
      "action_name" : "期望拣货完成时间"
    } ],
    "reissue_reason" : "string",
    "responsible_party" : "string",
    "mock_info" : {
      "persist" : true
    },
    "adjust_details" : [ {
      "field" : "amount,pay_amount,quantity",
      "before" : "10",
      "after" : "12"
    } ],
    "sale_order_id" : "string",
    "waybill_id" : "32332",
    "address_change_fee" : 0.0,
    "reason" : "黑子",
    "shipping_voucher_urls" : [ "string" ],
    "wish_info" : {
      "wish" : "string",
      "type" : "string"
    }
  } ],
  "empty" : true
}

1.1.12. 提交订单(新版)

POST /{tenant_id}/soms/orderservice/order/submit
1.1.12.1. 说明

提交订单,只支持新增订单,不支持修改订单,订单状态:confirmed

1.1.12.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

order
必填

订单

1.1.12.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.12.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/submit?operator=string
请求 body
{
  "created" : "2020-06-17 10:00:00",
  "modified" : "2020-06-17 10:00:00",
  "creator" : "string",
  "modifier" : "string",
  "id" : "88822222222",
  "shop" : {
    "id" : "string",
    "name" : "string"
  },
  "source" : "小程序",
  "state" : "confirmed",
  "customer" : {
    "id" : "10001",
    "contact" : {
      "name" : "李飞",
      "telephone" : "189389928893",
      "mobile" : "189389928893",
      "email" : "55151@qq.com",
      "fax" : "123123",
      "private_name" : "张*红",
      "private_mobile" : "189****0000"
    }
  },
  "weight" : 500.0,
  "invoice" : {
    "required" : false,
    "result" : "开票成功",
    "details" : [ {
      "type" : "plain",
      "kind" : "paper",
      "title" : "XX公司",
      "content" : "上海股份有限公司",
      "amount" : 12.03,
      "tax" : 2.32,
      "account" : "0023415445",
      "telephone" : "12344545111",
      "bank" : "中国银行XXX",
      "address" : "福建厦门XX",
      "remark" : "plain",
      "email" : "chw@qq.com",
      "time" : "2019-07-15 16:56:23",
      "url" : "a.jpg",
      "title_type" : "person",
      "buyer_tax_code" : "1232000046600736XP",
      "taxer_id" : "1212345046600736XP",
      "print_number" : "123456",
      "securaty_code" : "2114445",
      "check_code" : "201622",
      "serial_no" : "454557884564545"
    } ],
    "error_reason" : "string",
    "apply_qrcode" : "string"
  },
  "payment" : {
    "type" : "online",
    "state" : "paid",
    "payee" : {
      "id" : "string",
      "name" : "string"
    },
    "amount" : 14.02,
    "freight" : 14.02,
    "details" : [ {
      "code" : "支付方式代码",
      "name" : "支付宝",
      "type" : "5",
      "amount" : 12.33,
      "cashier" : true,
      "score" : 100.0,
      "flowno" : "3223232323",
      "account_no" : "002002",
      "account_name" : "工行",
      "discount_amount" : 100.0,
      "pay_id" : "3223232323",
      "out_pay_id" : "3223232323",
      "extra_info" : "{\"session\", \"123\"}"
    } ],
    "extra" : [ {
      "id" : "distance_freight",
      "name" : "远距离运费",
      "value" : "0.01"
    } ],
    "pay_time" : "2019-03-02 12:00:01",
    "pay_bill_id" : "0122333333",
    "cod_amount" : 0.0,
    "earnest_amount" : 0.0,
    "package_total" : 14.02,
    "other_fee" : 0.0
  },
  "delivery" : {
    "type" : "deliver",
    "state" : "none",
    "receiver" : {
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      },
      "address" : {
        "country" : "中国",
        "province" : "福建省",
        "city" : "厦门市",
        "district" : "思明区",
        "street" : "前埔",
        "postcode" : "363423",
        "latitude" : "45.3,范围0-90",
        "longtitude" : "121.2,范围0-180",
        "coordinate_type" : "GCJ02",
        "private_street" : "脱敏地址**"
      }
    },
    "station" : {
      "id" : "string",
      "name" : "string"
    },
    "vendor" : {
      "code" : "string",
      "name" : "string"
    },
    "wrh" : {
      "code" : "string",
      "name" : "string"
    },
    "waybills" : [ {
      "carrier" : {
        "id" : "string",
        "name" : "string"
      },
      "weight" : {
        "unit" : "g",
        "value" : 1.0
      },
      "products" : [ {
        "quantity" : 123.0,
        "sku_id" : "123",
        "item_title" : "123"
      } ],
      "waybill_id" : "123",
      "carrier_proxy_platform" : "承运代理平台",
      "carrier_proxy_merchant" : "承运代理商家",
      "expected_logistics_type" : "crowdsourcing",
      "freight" : 1.11,
      "deliveryman_id" : "zhangsan",
      "deliveryman" : "张三",
      "deliveryman_mobile" : "13333333333",
      "merchant_id" : "111",
      "merchant_name" : "222"
    } ],
    "carrier" : {
      "state" : "initial",
      "type" : "self",
      "carrier" : {
        "id" : "string",
        "name" : "string"
      },
      "merchant" : {
        "id" : "string",
        "name" : "string"
      },
      "deliveryman" : {
        "id" : "string",
        "name" : "string"
      },
      "expected_logistics_type" : "crowdsourcing",
      "deliveryman_mobile" : "18859658865",
      "exception_reason" : "异常原因",
      "delivery_id" : "8548418",
      "delivery_name" : "8548418"
    },
    "remark" : "定时达",
    "operation_state" : "none",
    "ship_mode" : "wrhShip",
    "ship_delivery_mode" : "wrhShipCarrierDeli",
    "wrh_order_id" : "32323",
    "ship_id" : "23232323",
    "waybill_id" : "123",
    "carrier_proxy_platform" : "string",
    "carrier_proxy_merchant" : "string",
    "carrier_note" : "加快",
    "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
    "pre_start_delivery_time" : "2016-03-02 12:00:01",
    "pre_end_delivery_time" : "2016-03-02 14:00:01",
    "pickup_code" : "123456",
    "city_token" : "123456",
    "selftake_code" : "123456",
    "pre_selftake_time" : "03月05日 晚上",
    "selftake_confirmed" : true,
    "waybill_print_info" : {
      "datas" : [ {
        "type" : "string",
        "data" : "string"
      } ]
    }
  },
  "front" : {
    "platform" : {
      "id" : "string",
      "name" : "string"
    },
    "app" : {
      "id" : "string",
      "name" : "string"
    },
    "created" : "2016-03-02 12:00:01",
    "modified" : "2016-03-02 12:00:01",
    "state" : "已付款",
    "attribute" : "string",
    "order_id" : "1223654",
    "main_order_id" : "1223432",
    "third_order_id" : "1223432",
    "inner_order_id" : "1223432",
    "dpt_station_time" : "2016-03-02 12:00:01",
    "station_id" : "254145",
    "station_name" : "254145",
    "station_order_no" : "1",
    "finished_time" : "2016-03-02 12:00:01",
    "order_type" : {
      "id" : "string",
      "name" : "string"
    },
    "wrh_id" : "string"
  },
  "items" : [ {
    "uuid" : "string",
    "spec" : "1*1",
    "unit" : "瓶",
    "barcode" : "123456",
    "quantity" : 1.0,
    "total" : 2.0,
    "front" : {
      "spec" : "蓝色;微甜  少冰/多糖",
      "spec2" : "500g",
      "unit" : "string",
      "attributes" : [ {
        "group" : "口味",
        "values" : [ "string" ],
        "price" : 0.0,
        "qty" : 0.0
      } ],
      "tags" : [ {
        "id" : "string",
        "name" : "string"
      } ],
      "sku_id" : "052700601",
      "spu_id" : "052700601",
      "item_id" : "052700601"
    },
    "details" : [ {
      "id" : "121212",
      "title" : "矿泉水",
      "quantity" : 4.0,
      "ratio" : 3.0,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "front_spec" : "辣",
      "real_quantity" : 0.0,
      "fault_tolerant_info" : "string",
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ]
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ],
      "discount_amount" : 0.1,
      "apported_discount_amount" : 0.1
    },
    "item_no" : "1",
    "sku_id" : "00321",
    "product_id" : "2123",
    "item_title" : "葡萄",
    "unit_price" : 2.0,
    "purchase_price" : 2.0,
    "weight" : 1.0,
    "pay_amount" : 2.0,
    "discount_amount" : 12.02,
    "apported_discount_amount" : 12.02,
    "package_qty" : 125.0,
    "package_total" : 205.44,
    "package_info" : {
      "thermosphere" : "string",
      "quantity" : 125.0,
      "total" : 205.44,
      "packageName" : "保温袋"
    },
    "price" : 122.34,
    "cost_price" : 122.34,
    "shop_price" : 122.22,
    "shop_total" : 122.22,
    "settle_price" : 122.2222,
    "settle_total" : 122.22,
    "settle_discountAmount" : 122.22,
    "consume_scores" : 12.2,
    "image_url" : "http://aaa/bbb.png",
    "item_id" : "1",
    "is_collocation" : false,
    "relation_item_id" : "2123",
    "relation_sku_id" : "2123",
    "orig_mas_sku_id" : "string",
    "orig_sku_id" : "121212",
    "orig_item_title" : "【组合】洗护套装",
    "orig_price" : 122.22,
    "orig_qty" : 2.0,
    "orig_barcode" : "1212",
    "orig_image_url" : "string",
    "orig_weight" : 1.0,
    "orig_item" : {
      "type" : "multi",
      "barcode" : "121221",
      "price" : 33.22,
      "quantity" : 3.0,
      "weight" : 0.0,
      "sku_id" : "121221",
      "item_title" : "【组合】洗护套装",
      "image_url" : "string",
      "combined_id" : "121221"
    },
    "orig_extra_info" : {
      "spec" : "1*1",
      "unit" : "个"
    },
    "fault_tolerant_info" : "string",
    "salesman" : {
      "id" : "string",
      "name" : "string"
    },
    "trace_codes" : [ "string" ],
    "trace_code_details" : [ {
      "type" : "normal(普通),expDate(效期)",
      "barcode" : "123",
      "batch_no" : "string",
      "code" : "string",
      "valid_date" : "2020-06-17 10:00:00",
      "production_date" : "2020-06-17 10:00:00",
      "qty" : 0.0,
      "qpc_str" : "string"
    } ],
    "extra_info" : "{\"inv_mgr\": false}",
    "tags" : "标签",
    "real_weight" : 0.0,
    "real_quantity" : 0.0,
    "service_options" : "清洁/杀菌",
    "is_gift" : true
  } ],
  "logs" : [ {
    "action" : "modify",
    "message" : "修改订单商品明细",
    "time" : "2017-12-26 16:40:19",
    "operator" : "zuhu",
    "tenant_id" : "zuhu",
    "order_id" : "321212222",
    "rtn_id" : "212123333",
    "action_caption" : "修改订单"
  } ],
  "exceptions" : [ {
    "code" : "sku",
    "caption" : "商品异常",
    "remark" : "商品异常",
    "time" : "2017-12-26 16:40:19",
    "operator" : "zuhu",
    "order_id" : "123456"
  } ],
  "promotion" : {
    "favs" : [ {
      "id" : "1111",
      "name" : "满减",
      "type" : "string",
      "amount" : 10.5,
      "remark" : "测试优惠",
      "factor" : {
        "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
        "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
        "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
      },
      "sku_act_id" : "1111",
      "merchant_act_id" : "1111",
      "batch_act_id" : "1111",
      "child_type" : "string",
      "prom_cls" : "string",
      "voucher_code" : "111111111",
      "settle_details" : [ {
        "role" : "shop(商家)、platform(平台)、agent(代理商)",
        "discount" : 1.0
      } ],
      "share_details" : "[]",
      "extra_info" : "{\"thirdType\": \"42\"}"
    } ]
  },
  "order_store" : {
    "id" : "string",
    "name" : "string"
  },
  "approve_state" : "none",
  "wrh_state" : "initial",
  "customer_note" : "note",
  "seller_note" : "note",
  "salesman" : {
    "id" : "string",
    "name" : "string",
    "type" : "saleman",
    "org" : {
      "id" : "string",
      "name" : "string"
    },
    "org_type" : "门店",
    "inviter_mobile" : "18859226552",
    "inviter_name" : "王x",
    "inviter_wid" : "7567645",
    "personal_guider_name" : "王x",
    "personal_guider_no" : "3242323",
    "personal_guider_wid" : "3242323",
    "trade_guider_name" : "王x",
    "trade_guider_no" : "65756",
    "trade_guider_wid" : "45345",
    "weike_mobile" : "18859226552",
    "weike_name" : "张三",
    "weike_wid" : "765765756"
  },
  "cancel_type" : "customerCancel",
  "cancel_reason" : "我不想要了",
  "source_order_id" : "5346567534545645",
  "has_exception" : true,
  "exception_codes" : "sku",
  "exception_remark" : "商品不存在",
  "is_private" : true,
  "item_count" : 1,
  "sku_quantity" : 1.0,
  "real_total" : 120.01,
  "orig_total" : 120.01,
  "user_number" : 2,
  "settle_amount" : 120.01,
  "settle_commission" : 120.01,
  "selttle_commission" : 120.01,
  "settle_freight" : 120.01,
  "performance_service_fee" : 120.01,
  "shop_amount" : 120.01,
  "freight_discount" : 33.33,
  "package_discount" : 33.33,
  "invoice_take_code" : "string",
  "item_change_records" : [ {
    "reason" : "string",
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "change_items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ]
  } ],
  "print_bills" : [ {
    "name" : "外卖订单",
    "title" : "外卖订单",
    "content" : "内容",
    "created" : "2020-06-17 10:00:00",
    "printer" : "string",
    "outerId" : "string",
    "deleted" : true,
    "type" : "string",
    "ticket_type" : "小票",
    "deleted_time" : "2020-06-17 10:00:00",
    "sku_id" : "string"
  } ],
  "suspend_info" : {
    "suspended" : true,
    "code" : "string",
    "caption" : "string",
    "time" : "2017-12-26 16:40:19"
  },
  "member_info" : {
    "member_id" : "12253",
    "card_no" : "22323",
    "member_gid" : "12253",
    "outer_member_id" : "12253",
    "mobile" : "12253",
    "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
  },
  "fault_tolerant_info" : "string",
  "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
  "crm_info" : {
    "coupon_info" : {
      "details" : "[]",
      "use_total" : 1.0
    },
    "score_info" : {
      "total" : 1.0,
      "balance" : 100.0
    }
  },
  "settle_info" : {
    "settlable" : true,
    "discounts" : "[{}]",
    "settle_date" : "2022-08-25 00:00:00",
    "station_settle_mode" : "online"
  },
  "settle_unit" : {
    "type" : "store",
    "code" : "0001",
    "name" : "门店1"
  },
  "package_info" : {
    "required" : false,
    "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
    "details" : "[]",
    "package_type" : "保温袋"
  },
  "pick_info" : {
    "time" : "2020-06-17 10:00:00",
    "source" : "string",
    "operator_id" : "string",
    "operator_name" : "string",
    "auto_picked_finish" : true,
    "allow_pick_start_time" : "2020-06-17 10:00:00"
  },
  "item_logistics" : [ {
    "qty" : 0.0,
    "sku_id" : "string",
    "logistics_code" : "string"
  } ],
  "calc_data" : true,
  "wrh_id" : "4184",
  "encrypt_detail" : {
    "secretKey" : "string",
    "encrypt_street" : "string",
    "encrypt_name" : "string",
    "encrypt_mobile" : "string"
  },
  "tags" : [ {
    "name" : "首单"
  } ],
  "quotas" : [ {
    "action" : "expect_shipping",
    "time" : "2021-09-26 16:40:19",
    "remark" : "无",
    "action_name" : "期望拣货完成时间"
  } ],
  "reissue_reason" : "string",
  "responsible_party" : "string",
  "mock_info" : {
    "persist" : true
  },
  "adjust_details" : [ {
    "field" : "amount,pay_amount,quantity",
    "before" : "10",
    "after" : "12"
  } ],
  "sale_order_id" : "string",
  "waybill_id" : "32332",
  "address_change_fee" : 0.0,
  "reason" : "黑子",
  "shipping_voucher_urls" : [ "string" ],
  "wish_info" : {
    "wish" : "string",
    "type" : "string"
  }
}
1.1.12.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "order_id" : "string"
}

1.1.13. 批量取指定订单_v2

POST /{tenant_id}/soms/orderservice/order/v2/orders
1.1.13.1. 说明

批量取订单,级联信息可以通过parts获取

1.1.13.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户ID

string

Query

parts
可选

需要返回的部分,取值范围:items(商品详情)、item.details(商品组合详情),paymentDetails(支付详情)、invoiceDetails(发票详情)、printBills(打印信息)、prom(优惠信息)、exceptions(订单异常信息)、waybill.printinfo(运单打印信息)

string

Body

ids
必填

订单号集合

1.1.13.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.13.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/v2/orders
请求 body
{
  "ids" : [ "string" ]
}
1.1.13.5. HTTP响应示例
响应 200
{
  "orders" : [ {
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "id" : "88822222222",
    "shop" : {
      "id" : "string",
      "name" : "string"
    },
    "source" : "小程序",
    "state" : "confirmed",
    "customer" : {
      "id" : "10001",
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      }
    },
    "weight" : 500.0,
    "invoice" : {
      "required" : false,
      "result" : "开票成功",
      "details" : [ {
        "type" : "plain",
        "kind" : "paper",
        "title" : "XX公司",
        "content" : "上海股份有限公司",
        "amount" : 12.03,
        "tax" : 2.32,
        "account" : "0023415445",
        "telephone" : "12344545111",
        "bank" : "中国银行XXX",
        "address" : "福建厦门XX",
        "remark" : "plain",
        "email" : "chw@qq.com",
        "time" : "2019-07-15 16:56:23",
        "url" : "a.jpg",
        "title_type" : "person",
        "buyer_tax_code" : "1232000046600736XP",
        "taxer_id" : "1212345046600736XP",
        "print_number" : "123456",
        "securaty_code" : "2114445",
        "check_code" : "201622",
        "serial_no" : "454557884564545"
      } ],
      "error_reason" : "string",
      "apply_qrcode" : "string"
    },
    "payment" : {
      "type" : "online",
      "state" : "paid",
      "payee" : {
        "id" : "string",
        "name" : "string"
      },
      "amount" : 14.02,
      "freight" : 14.02,
      "details" : [ {
        "code" : "支付方式代码",
        "name" : "支付宝",
        "type" : "5",
        "amount" : 12.33,
        "cashier" : true,
        "score" : 100.0,
        "flowno" : "3223232323",
        "account_no" : "002002",
        "account_name" : "工行",
        "discount_amount" : 100.0,
        "pay_id" : "3223232323",
        "out_pay_id" : "3223232323",
        "extra_info" : "{\"session\", \"123\"}"
      } ],
      "extra" : [ {
        "id" : "distance_freight",
        "name" : "远距离运费",
        "value" : "0.01"
      } ],
      "pay_time" : "2019-03-02 12:00:01",
      "pay_bill_id" : "0122333333",
      "cod_amount" : 0.0,
      "earnest_amount" : 0.0,
      "package_total" : 14.02,
      "other_fee" : 0.0
    },
    "delivery" : {
      "type" : "deliver",
      "state" : "none",
      "receiver" : {
        "contact" : {
          "name" : "李飞",
          "telephone" : "189389928893",
          "mobile" : "189389928893",
          "email" : "55151@qq.com",
          "fax" : "123123",
          "private_name" : "张*红",
          "private_mobile" : "189****0000"
        },
        "address" : {
          "country" : "中国",
          "province" : "福建省",
          "city" : "厦门市",
          "district" : "思明区",
          "street" : "前埔",
          "postcode" : "363423",
          "latitude" : "45.3,范围0-90",
          "longtitude" : "121.2,范围0-180",
          "coordinate_type" : "GCJ02",
          "private_street" : "脱敏地址**"
        }
      },
      "station" : {
        "id" : "string",
        "name" : "string"
      },
      "vendor" : {
        "code" : "string",
        "name" : "string"
      },
      "wrh" : {
        "code" : "string",
        "name" : "string"
      },
      "waybills" : [ {
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "weight" : {
          "unit" : "g",
          "value" : 1.0
        },
        "products" : [ {
          "quantity" : 123.0,
          "sku_id" : "123",
          "item_title" : "123"
        } ],
        "waybill_id" : "123",
        "carrier_proxy_platform" : "承运代理平台",
        "carrier_proxy_merchant" : "承运代理商家",
        "expected_logistics_type" : "crowdsourcing",
        "freight" : 1.11,
        "deliveryman_id" : "zhangsan",
        "deliveryman" : "张三",
        "deliveryman_mobile" : "13333333333",
        "merchant_id" : "111",
        "merchant_name" : "222"
      } ],
      "carrier" : {
        "state" : "initial",
        "type" : "self",
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "merchant" : {
          "id" : "string",
          "name" : "string"
        },
        "deliveryman" : {
          "id" : "string",
          "name" : "string"
        },
        "expected_logistics_type" : "crowdsourcing",
        "deliveryman_mobile" : "18859658865",
        "exception_reason" : "异常原因",
        "delivery_id" : "8548418",
        "delivery_name" : "8548418"
      },
      "remark" : "定时达",
      "operation_state" : "none",
      "ship_mode" : "wrhShip",
      "ship_delivery_mode" : "wrhShipCarrierDeli",
      "wrh_order_id" : "32323",
      "ship_id" : "23232323",
      "waybill_id" : "123",
      "carrier_proxy_platform" : "string",
      "carrier_proxy_merchant" : "string",
      "carrier_note" : "加快",
      "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
      "pre_start_delivery_time" : "2016-03-02 12:00:01",
      "pre_end_delivery_time" : "2016-03-02 14:00:01",
      "pickup_code" : "123456",
      "city_token" : "123456",
      "selftake_code" : "123456",
      "pre_selftake_time" : "03月05日 晚上",
      "selftake_confirmed" : true,
      "waybill_print_info" : {
        "datas" : [ {
          "type" : "string",
          "data" : "string"
        } ]
      }
    },
    "front" : {
      "platform" : {
        "id" : "string",
        "name" : "string"
      },
      "app" : {
        "id" : "string",
        "name" : "string"
      },
      "created" : "2016-03-02 12:00:01",
      "modified" : "2016-03-02 12:00:01",
      "state" : "已付款",
      "attribute" : "string",
      "order_id" : "1223654",
      "main_order_id" : "1223432",
      "third_order_id" : "1223432",
      "inner_order_id" : "1223432",
      "dpt_station_time" : "2016-03-02 12:00:01",
      "station_id" : "254145",
      "station_name" : "254145",
      "station_order_no" : "1",
      "finished_time" : "2016-03-02 12:00:01",
      "order_type" : {
        "id" : "string",
        "name" : "string"
      },
      "wrh_id" : "string"
    },
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "logs" : [ {
      "action" : "modify",
      "message" : "修改订单商品明细",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "tenant_id" : "zuhu",
      "order_id" : "321212222",
      "rtn_id" : "212123333",
      "action_caption" : "修改订单"
    } ],
    "exceptions" : [ {
      "code" : "sku",
      "caption" : "商品异常",
      "remark" : "商品异常",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "order_id" : "123456"
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ]
    },
    "order_store" : {
      "id" : "string",
      "name" : "string"
    },
    "approve_state" : "none",
    "wrh_state" : "initial",
    "customer_note" : "note",
    "seller_note" : "note",
    "salesman" : {
      "id" : "string",
      "name" : "string",
      "type" : "saleman",
      "org" : {
        "id" : "string",
        "name" : "string"
      },
      "org_type" : "门店",
      "inviter_mobile" : "18859226552",
      "inviter_name" : "王x",
      "inviter_wid" : "7567645",
      "personal_guider_name" : "王x",
      "personal_guider_no" : "3242323",
      "personal_guider_wid" : "3242323",
      "trade_guider_name" : "王x",
      "trade_guider_no" : "65756",
      "trade_guider_wid" : "45345",
      "weike_mobile" : "18859226552",
      "weike_name" : "张三",
      "weike_wid" : "765765756"
    },
    "cancel_type" : "customerCancel",
    "cancel_reason" : "我不想要了",
    "source_order_id" : "5346567534545645",
    "has_exception" : true,
    "exception_codes" : "sku",
    "exception_remark" : "商品不存在",
    "is_private" : true,
    "item_count" : 1,
    "sku_quantity" : 1.0,
    "real_total" : 120.01,
    "orig_total" : 120.01,
    "user_number" : 2,
    "settle_amount" : 120.01,
    "settle_commission" : 120.01,
    "selttle_commission" : 120.01,
    "settle_freight" : 120.01,
    "performance_service_fee" : 120.01,
    "shop_amount" : 120.01,
    "freight_discount" : 33.33,
    "package_discount" : 33.33,
    "invoice_take_code" : "string",
    "item_change_records" : [ {
      "reason" : "string",
      "created" : "2020-06-17 10:00:00",
      "modified" : "2020-06-17 10:00:00",
      "creator" : "string",
      "modifier" : "string",
      "items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ],
      "change_items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ]
    } ],
    "print_bills" : [ {
      "name" : "外卖订单",
      "title" : "外卖订单",
      "content" : "内容",
      "created" : "2020-06-17 10:00:00",
      "printer" : "string",
      "outerId" : "string",
      "deleted" : true,
      "type" : "string",
      "ticket_type" : "小票",
      "deleted_time" : "2020-06-17 10:00:00",
      "sku_id" : "string"
    } ],
    "suspend_info" : {
      "suspended" : true,
      "code" : "string",
      "caption" : "string",
      "time" : "2017-12-26 16:40:19"
    },
    "member_info" : {
      "member_id" : "12253",
      "card_no" : "22323",
      "member_gid" : "12253",
      "outer_member_id" : "12253",
      "mobile" : "12253",
      "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
    },
    "fault_tolerant_info" : "string",
    "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
    "crm_info" : {
      "coupon_info" : {
        "details" : "[]",
        "use_total" : 1.0
      },
      "score_info" : {
        "total" : 1.0,
        "balance" : 100.0
      }
    },
    "settle_info" : {
      "settlable" : true,
      "discounts" : "[{}]",
      "settle_date" : "2022-08-25 00:00:00",
      "station_settle_mode" : "online"
    },
    "settle_unit" : {
      "type" : "store",
      "code" : "0001",
      "name" : "门店1"
    },
    "package_info" : {
      "required" : false,
      "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
      "details" : "[]",
      "package_type" : "保温袋"
    },
    "pick_info" : {
      "time" : "2020-06-17 10:00:00",
      "source" : "string",
      "operator_id" : "string",
      "operator_name" : "string",
      "auto_picked_finish" : true,
      "allow_pick_start_time" : "2020-06-17 10:00:00"
    },
    "item_logistics" : [ {
      "qty" : 0.0,
      "sku_id" : "string",
      "logistics_code" : "string"
    } ],
    "calc_data" : true,
    "wrh_id" : "4184",
    "encrypt_detail" : {
      "secretKey" : "string",
      "encrypt_street" : "string",
      "encrypt_name" : "string",
      "encrypt_mobile" : "string"
    },
    "tags" : [ {
      "name" : "首单"
    } ],
    "quotas" : [ {
      "action" : "expect_shipping",
      "time" : "2021-09-26 16:40:19",
      "remark" : "无",
      "action_name" : "期望拣货完成时间"
    } ],
    "reissue_reason" : "string",
    "responsible_party" : "string",
    "mock_info" : {
      "persist" : true
    },
    "adjust_details" : [ {
      "field" : "amount,pay_amount,quantity",
      "before" : "10",
      "after" : "12"
    } ],
    "sale_order_id" : "string",
    "waybill_id" : "32332",
    "address_change_fee" : 0.0,
    "reason" : "黑子",
    "shipping_voucher_urls" : [ "string" ],
    "wish_info" : {
      "wish" : "string",
      "type" : "string"
    }
  } ],
  "empty" : true
}

1.1.14. 取指定订单

GET /{tenant_id}/soms/orderservice/order/{id}
1.1.14.1. 说明

取指定订单,如果需要获取订单商品明细等其他信息,URL需要传parts参数

1.1.14.2. 参数
类型 名称 说明 类型

Path

id
必填

订单id

string

Path

tenant_id
必填

租户ID

string

Query

parts
可选

返回多个部分用英文,隔开。需要返回的部分,items(商品详情)、item.details(商品组合详情),、item.details(商品组合详情)、item.change.records(换货记录)、paymentDetails(支付详情)、invoiceDetails(发票详情)、printBills(打印数据)、prom(促销详情)、crm(营销详情)、logs(日志详情)、waybill.printinfo(运单打印信息)

string

1.1.14.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.14.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string
1.1.14.5. HTTP响应示例
响应 200
{
  "created" : "2020-06-17 10:00:00",
  "modified" : "2020-06-17 10:00:00",
  "creator" : "string",
  "modifier" : "string",
  "id" : "88822222222",
  "shop" : {
    "id" : "string",
    "name" : "string"
  },
  "source" : "小程序",
  "state" : "confirmed",
  "customer" : {
    "id" : "10001",
    "contact" : {
      "name" : "李飞",
      "telephone" : "189389928893",
      "mobile" : "189389928893",
      "email" : "55151@qq.com",
      "fax" : "123123",
      "private_name" : "张*红",
      "private_mobile" : "189****0000"
    }
  },
  "weight" : 500.0,
  "invoice" : {
    "required" : false,
    "result" : "开票成功",
    "details" : [ {
      "type" : "plain",
      "kind" : "paper",
      "title" : "XX公司",
      "content" : "上海股份有限公司",
      "amount" : 12.03,
      "tax" : 2.32,
      "account" : "0023415445",
      "telephone" : "12344545111",
      "bank" : "中国银行XXX",
      "address" : "福建厦门XX",
      "remark" : "plain",
      "email" : "chw@qq.com",
      "time" : "2019-07-15 16:56:23",
      "url" : "a.jpg",
      "title_type" : "person",
      "buyer_tax_code" : "1232000046600736XP",
      "taxer_id" : "1212345046600736XP",
      "print_number" : "123456",
      "securaty_code" : "2114445",
      "check_code" : "201622",
      "serial_no" : "454557884564545"
    } ],
    "error_reason" : "string",
    "apply_qrcode" : "string"
  },
  "payment" : {
    "type" : "online",
    "state" : "paid",
    "payee" : {
      "id" : "string",
      "name" : "string"
    },
    "amount" : 14.02,
    "freight" : 14.02,
    "details" : [ {
      "code" : "支付方式代码",
      "name" : "支付宝",
      "type" : "5",
      "amount" : 12.33,
      "cashier" : true,
      "score" : 100.0,
      "flowno" : "3223232323",
      "account_no" : "002002",
      "account_name" : "工行",
      "discount_amount" : 100.0,
      "pay_id" : "3223232323",
      "out_pay_id" : "3223232323",
      "extra_info" : "{\"session\", \"123\"}"
    } ],
    "extra" : [ {
      "id" : "distance_freight",
      "name" : "远距离运费",
      "value" : "0.01"
    } ],
    "pay_time" : "2019-03-02 12:00:01",
    "pay_bill_id" : "0122333333",
    "cod_amount" : 0.0,
    "earnest_amount" : 0.0,
    "package_total" : 14.02,
    "other_fee" : 0.0
  },
  "delivery" : {
    "type" : "deliver",
    "state" : "none",
    "receiver" : {
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      },
      "address" : {
        "country" : "中国",
        "province" : "福建省",
        "city" : "厦门市",
        "district" : "思明区",
        "street" : "前埔",
        "postcode" : "363423",
        "latitude" : "45.3,范围0-90",
        "longtitude" : "121.2,范围0-180",
        "coordinate_type" : "GCJ02",
        "private_street" : "脱敏地址**"
      }
    },
    "station" : {
      "id" : "string",
      "name" : "string"
    },
    "vendor" : {
      "code" : "string",
      "name" : "string"
    },
    "wrh" : {
      "code" : "string",
      "name" : "string"
    },
    "waybills" : [ {
      "carrier" : {
        "id" : "string",
        "name" : "string"
      },
      "weight" : {
        "unit" : "g",
        "value" : 1.0
      },
      "products" : [ {
        "quantity" : 123.0,
        "sku_id" : "123",
        "item_title" : "123"
      } ],
      "waybill_id" : "123",
      "carrier_proxy_platform" : "承运代理平台",
      "carrier_proxy_merchant" : "承运代理商家",
      "expected_logistics_type" : "crowdsourcing",
      "freight" : 1.11,
      "deliveryman_id" : "zhangsan",
      "deliveryman" : "张三",
      "deliveryman_mobile" : "13333333333",
      "merchant_id" : "111",
      "merchant_name" : "222"
    } ],
    "carrier" : {
      "state" : "initial",
      "type" : "self",
      "carrier" : {
        "id" : "string",
        "name" : "string"
      },
      "merchant" : {
        "id" : "string",
        "name" : "string"
      },
      "deliveryman" : {
        "id" : "string",
        "name" : "string"
      },
      "expected_logistics_type" : "crowdsourcing",
      "deliveryman_mobile" : "18859658865",
      "exception_reason" : "异常原因",
      "delivery_id" : "8548418",
      "delivery_name" : "8548418"
    },
    "remark" : "定时达",
    "operation_state" : "none",
    "ship_mode" : "wrhShip",
    "ship_delivery_mode" : "wrhShipCarrierDeli",
    "wrh_order_id" : "32323",
    "ship_id" : "23232323",
    "waybill_id" : "123",
    "carrier_proxy_platform" : "string",
    "carrier_proxy_merchant" : "string",
    "carrier_note" : "加快",
    "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
    "pre_start_delivery_time" : "2016-03-02 12:00:01",
    "pre_end_delivery_time" : "2016-03-02 14:00:01",
    "pickup_code" : "123456",
    "city_token" : "123456",
    "selftake_code" : "123456",
    "pre_selftake_time" : "03月05日 晚上",
    "selftake_confirmed" : true,
    "waybill_print_info" : {
      "datas" : [ {
        "type" : "string",
        "data" : "string"
      } ]
    }
  },
  "front" : {
    "platform" : {
      "id" : "string",
      "name" : "string"
    },
    "app" : {
      "id" : "string",
      "name" : "string"
    },
    "created" : "2016-03-02 12:00:01",
    "modified" : "2016-03-02 12:00:01",
    "state" : "已付款",
    "attribute" : "string",
    "order_id" : "1223654",
    "main_order_id" : "1223432",
    "third_order_id" : "1223432",
    "inner_order_id" : "1223432",
    "dpt_station_time" : "2016-03-02 12:00:01",
    "station_id" : "254145",
    "station_name" : "254145",
    "station_order_no" : "1",
    "finished_time" : "2016-03-02 12:00:01",
    "order_type" : {
      "id" : "string",
      "name" : "string"
    },
    "wrh_id" : "string"
  },
  "items" : [ {
    "uuid" : "string",
    "spec" : "1*1",
    "unit" : "瓶",
    "barcode" : "123456",
    "quantity" : 1.0,
    "total" : 2.0,
    "front" : {
      "spec" : "蓝色;微甜  少冰/多糖",
      "spec2" : "500g",
      "unit" : "string",
      "attributes" : [ {
        "group" : "口味",
        "values" : [ "string" ],
        "price" : 0.0,
        "qty" : 0.0
      } ],
      "tags" : [ {
        "id" : "string",
        "name" : "string"
      } ],
      "sku_id" : "052700601",
      "spu_id" : "052700601",
      "item_id" : "052700601"
    },
    "details" : [ {
      "id" : "121212",
      "title" : "矿泉水",
      "quantity" : 4.0,
      "ratio" : 3.0,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "front_spec" : "辣",
      "real_quantity" : 0.0,
      "fault_tolerant_info" : "string",
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ]
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ],
      "discount_amount" : 0.1,
      "apported_discount_amount" : 0.1
    },
    "item_no" : "1",
    "sku_id" : "00321",
    "product_id" : "2123",
    "item_title" : "葡萄",
    "unit_price" : 2.0,
    "purchase_price" : 2.0,
    "weight" : 1.0,
    "pay_amount" : 2.0,
    "discount_amount" : 12.02,
    "apported_discount_amount" : 12.02,
    "package_qty" : 125.0,
    "package_total" : 205.44,
    "package_info" : {
      "thermosphere" : "string",
      "quantity" : 125.0,
      "total" : 205.44,
      "packageName" : "保温袋"
    },
    "price" : 122.34,
    "cost_price" : 122.34,
    "shop_price" : 122.22,
    "shop_total" : 122.22,
    "settle_price" : 122.2222,
    "settle_total" : 122.22,
    "settle_discountAmount" : 122.22,
    "consume_scores" : 12.2,
    "image_url" : "http://aaa/bbb.png",
    "item_id" : "1",
    "is_collocation" : false,
    "relation_item_id" : "2123",
    "relation_sku_id" : "2123",
    "orig_mas_sku_id" : "string",
    "orig_sku_id" : "121212",
    "orig_item_title" : "【组合】洗护套装",
    "orig_price" : 122.22,
    "orig_qty" : 2.0,
    "orig_barcode" : "1212",
    "orig_image_url" : "string",
    "orig_weight" : 1.0,
    "orig_item" : {
      "type" : "multi",
      "barcode" : "121221",
      "price" : 33.22,
      "quantity" : 3.0,
      "weight" : 0.0,
      "sku_id" : "121221",
      "item_title" : "【组合】洗护套装",
      "image_url" : "string",
      "combined_id" : "121221"
    },
    "orig_extra_info" : {
      "spec" : "1*1",
      "unit" : "个"
    },
    "fault_tolerant_info" : "string",
    "salesman" : {
      "id" : "string",
      "name" : "string"
    },
    "trace_codes" : [ "string" ],
    "trace_code_details" : [ {
      "type" : "normal(普通),expDate(效期)",
      "barcode" : "123",
      "batch_no" : "string",
      "code" : "string",
      "valid_date" : "2020-06-17 10:00:00",
      "production_date" : "2020-06-17 10:00:00",
      "qty" : 0.0,
      "qpc_str" : "string"
    } ],
    "extra_info" : "{\"inv_mgr\": false}",
    "tags" : "标签",
    "real_weight" : 0.0,
    "real_quantity" : 0.0,
    "service_options" : "清洁/杀菌",
    "is_gift" : true
  } ],
  "logs" : [ {
    "action" : "modify",
    "message" : "修改订单商品明细",
    "time" : "2017-12-26 16:40:19",
    "operator" : "zuhu",
    "tenant_id" : "zuhu",
    "order_id" : "321212222",
    "rtn_id" : "212123333",
    "action_caption" : "修改订单"
  } ],
  "exceptions" : [ {
    "code" : "sku",
    "caption" : "商品异常",
    "remark" : "商品异常",
    "time" : "2017-12-26 16:40:19",
    "operator" : "zuhu",
    "order_id" : "123456"
  } ],
  "promotion" : {
    "favs" : [ {
      "id" : "1111",
      "name" : "满减",
      "type" : "string",
      "amount" : 10.5,
      "remark" : "测试优惠",
      "factor" : {
        "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
        "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
        "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
      },
      "sku_act_id" : "1111",
      "merchant_act_id" : "1111",
      "batch_act_id" : "1111",
      "child_type" : "string",
      "prom_cls" : "string",
      "voucher_code" : "111111111",
      "settle_details" : [ {
        "role" : "shop(商家)、platform(平台)、agent(代理商)",
        "discount" : 1.0
      } ],
      "share_details" : "[]",
      "extra_info" : "{\"thirdType\": \"42\"}"
    } ]
  },
  "order_store" : {
    "id" : "string",
    "name" : "string"
  },
  "approve_state" : "none",
  "wrh_state" : "initial",
  "customer_note" : "note",
  "seller_note" : "note",
  "salesman" : {
    "id" : "string",
    "name" : "string",
    "type" : "saleman",
    "org" : {
      "id" : "string",
      "name" : "string"
    },
    "org_type" : "门店",
    "inviter_mobile" : "18859226552",
    "inviter_name" : "王x",
    "inviter_wid" : "7567645",
    "personal_guider_name" : "王x",
    "personal_guider_no" : "3242323",
    "personal_guider_wid" : "3242323",
    "trade_guider_name" : "王x",
    "trade_guider_no" : "65756",
    "trade_guider_wid" : "45345",
    "weike_mobile" : "18859226552",
    "weike_name" : "张三",
    "weike_wid" : "765765756"
  },
  "cancel_type" : "customerCancel",
  "cancel_reason" : "我不想要了",
  "source_order_id" : "5346567534545645",
  "has_exception" : true,
  "exception_codes" : "sku",
  "exception_remark" : "商品不存在",
  "is_private" : true,
  "item_count" : 1,
  "sku_quantity" : 1.0,
  "real_total" : 120.01,
  "orig_total" : 120.01,
  "user_number" : 2,
  "settle_amount" : 120.01,
  "settle_commission" : 120.01,
  "selttle_commission" : 120.01,
  "settle_freight" : 120.01,
  "performance_service_fee" : 120.01,
  "shop_amount" : 120.01,
  "freight_discount" : 33.33,
  "package_discount" : 33.33,
  "invoice_take_code" : "string",
  "item_change_records" : [ {
    "reason" : "string",
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "change_items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ]
  } ],
  "print_bills" : [ {
    "name" : "外卖订单",
    "title" : "外卖订单",
    "content" : "内容",
    "created" : "2020-06-17 10:00:00",
    "printer" : "string",
    "outerId" : "string",
    "deleted" : true,
    "type" : "string",
    "ticket_type" : "小票",
    "deleted_time" : "2020-06-17 10:00:00",
    "sku_id" : "string"
  } ],
  "suspend_info" : {
    "suspended" : true,
    "code" : "string",
    "caption" : "string",
    "time" : "2017-12-26 16:40:19"
  },
  "member_info" : {
    "member_id" : "12253",
    "card_no" : "22323",
    "member_gid" : "12253",
    "outer_member_id" : "12253",
    "mobile" : "12253",
    "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
  },
  "fault_tolerant_info" : "string",
  "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
  "crm_info" : {
    "coupon_info" : {
      "details" : "[]",
      "use_total" : 1.0
    },
    "score_info" : {
      "total" : 1.0,
      "balance" : 100.0
    }
  },
  "settle_info" : {
    "settlable" : true,
    "discounts" : "[{}]",
    "settle_date" : "2022-08-25 00:00:00",
    "station_settle_mode" : "online"
  },
  "settle_unit" : {
    "type" : "store",
    "code" : "0001",
    "name" : "门店1"
  },
  "package_info" : {
    "required" : false,
    "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
    "details" : "[]",
    "package_type" : "保温袋"
  },
  "pick_info" : {
    "time" : "2020-06-17 10:00:00",
    "source" : "string",
    "operator_id" : "string",
    "operator_name" : "string",
    "auto_picked_finish" : true,
    "allow_pick_start_time" : "2020-06-17 10:00:00"
  },
  "item_logistics" : [ {
    "qty" : 0.0,
    "sku_id" : "string",
    "logistics_code" : "string"
  } ],
  "calc_data" : true,
  "wrh_id" : "4184",
  "encrypt_detail" : {
    "secretKey" : "string",
    "encrypt_street" : "string",
    "encrypt_name" : "string",
    "encrypt_mobile" : "string"
  },
  "tags" : [ {
    "name" : "首单"
  } ],
  "quotas" : [ {
    "action" : "expect_shipping",
    "time" : "2021-09-26 16:40:19",
    "remark" : "无",
    "action_name" : "期望拣货完成时间"
  } ],
  "reissue_reason" : "string",
  "responsible_party" : "string",
  "mock_info" : {
    "persist" : true
  },
  "adjust_details" : [ {
    "field" : "amount,pay_amount,quantity",
    "before" : "10",
    "after" : "12"
  } ],
  "sale_order_id" : "string",
  "waybill_id" : "32332",
  "address_change_fee" : 0.0,
  "reason" : "黑子",
  "shipping_voucher_urls" : [ "string" ],
  "wish_info" : {
    "wish" : "string",
    "type" : "string"
  }
}

1.1.15. 取消订单

POST /{tenant_id}/soms/orderservice/order/{id}/action/cancel
1.1.15.1. 说明

发货前,用户申请取消订单会直接取消订单;发货后用户申请取消订单会自动生成退货订单,退货订单收货后,订单变成客户拒收。

1.1.15.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

取消订单请求对象

1.1.15.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.15.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/cancel?operator=string
请求 body
{
  "type" : "customerCancel",
  "reason" : "不想要了",
  "frontRtnId" : "599565656"
}
1.1.15.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.16. 更新订单承运信息

POST /{tenant_id}/soms/orderservice/order/{id}/action/carrier
1.1.16.1. 说明

更新订单承运信息

1.1.16.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

请求对象

1.1.16.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.16.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/carrier?operator=string
请求 body
{
  "carrier" : {
    "state" : "initial",
    "type" : "self",
    "carrier" : {
      "id" : "string",
      "name" : "string"
    },
    "merchant" : {
      "id" : "string",
      "name" : "string"
    },
    "deliveryman" : {
      "id" : "string",
      "name" : "string"
    },
    "expected_logistics_type" : "crowdsourcing",
    "deliveryman_mobile" : "18859658865",
    "exception_reason" : "异常原因",
    "delivery_id" : "8548418",
    "delivery_name" : "8548418"
  },
  "operator" : "user",
  "tags" : [ {
    "name" : "首单"
  } ],
  "waybill_id" : "123",
  "delivery_id" : "123",
  "carrier_note" : "加快",
  "exception_remark" : "第三方要求取消",
  "print_info" : {
    "datas" : [ {
      "type" : "string",
      "data" : "string"
    } ]
  },
  "re_calc_carrier" : true,
  "ignore_check_carrier_state" : true,
  "carrier_proxy_platform" : {
    "value" : "string"
  },
  "carrier_proxy_merchant" : {
    "value" : "string"
  },
  "freight" : 1.11,
  "shop_freight" : {
    "value" : 0.0
  },
  "ignore_auto_dispatch_carrier" : true
}
1.1.16.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.17. 更新订单配送状态(发货、签收)

POST /{tenant_id}/soms/orderservice/order/{id}/action/deliver
1.1.17.1. 说明

更新订单配送状态,更新发货:delivery_state=shipped;更新签收:delivery_state=signed

1.1.17.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

请求对象

1.1.17.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.17.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/deliver?operator=string
请求 body
{
  "operator" : "zhangsan",
  "operation" : "shipping",
  "carrier" : {
    "state" : "initial",
    "type" : "self",
    "carrier" : {
      "id" : "string",
      "name" : "string"
    },
    "merchant" : {
      "id" : "string",
      "name" : "string"
    },
    "deliveryman" : {
      "id" : "string",
      "name" : "string"
    },
    "expected_logistics_type" : "crowdsourcing",
    "deliveryman_mobile" : "18859658865",
    "exception_reason" : "异常原因",
    "delivery_id" : "8548418",
    "delivery_name" : "8548418"
  },
  "print" : true,
  "delivery_state" : "none",
  "operation_state" : "none(空)、accepted(已接单)、shipping( 已集货/已拣货)、rechecked(已复核)、handover(已交接)",
  "ship_id" : "122323232",
  "waybill_id" : "1243566215",
  "carrier_note" : "已经在发货的路上",
  "selftake_confirmed" : true,
  "front_modified" : "2016-03-02 12:00:01",
  "front_finished_time" : "2016-03-02 12:00:01",
  "ship_time" : "2022-07-18 20:34:00",
  "pick_info" : {
    "time" : "2020-06-17 10:00:00",
    "source" : "string",
    "operator_id" : "string",
    "operator_name" : "string",
    "auto_picked_finish" : true,
    "allow_pick_start_time" : "2020-06-17 10:00:00"
  }
}
1.1.17.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.18. 确认自提

POST /{tenant_id}/soms/orderservice/order/{id}/action/selftake
1.1.18.1. 说明

确认自提

1.1.18.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

请求对象

1.1.18.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.18.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/selftake?operator=string
请求 body
{
  "store_id" : "454534",
  "selftake_qrcode" : "222222"
}
1.1.18.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "order_id" : "5745323545453"
}

1.1.19. 更新订单订单门店作业状态

POST /{tenant_id}/soms/orderservice/order/{id}/action/storeoperation
1.1.19.1. 说明

更新订单门店作业状态

1.1.19.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

门店作业请求

1.1.19.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.19.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/storeoperation?operator=string
请求 body
{
  "operation" : "accept",
  "store_id" : "21213323",
  "operation_state" : "none(空)、accepted(已接单)、shipping( 已集货/已拣货)、rechecked(已复核)、handover(已交接)",
  "shipping_voucher_urls" : [ "string" ],
  "pick_info" : {
    "time" : "2020-06-17 10:00:00",
    "source" : "string",
    "operator_id" : "string",
    "operator_name" : "string",
    "auto_picked_finish" : true,
    "allow_pick_start_time" : "2020-06-17 10:00:00"
  }
}
1.1.19.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.20. 商家主动发起退款

POST /{tenant_id}/soms/orderservice/order/{id}/applyrtn
1.1.20.1. 说明

商家主动发起退款

1.1.20.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户Id

string

Query

operator
必填

操作人

string

Body

request
必填

申请请求对象

1.1.20.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.20.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/applyrtn?operator=string
请求 body
{
  "reason" : "不想要了",
  "type" : "refund",
  "policy" : "取值:orig_sku(原商品)、sku(现商品)",
  "freight" : 1.23,
  "items" : [ {
    "quantity" : 1.0,
    "weight" : 1.0,
    "weights" : "1",
    "item_no" : "1",
    "sku_id" : "2123",
    "real_total_weight" : 1.0,
    "refund_amount" : 12.03
  } ],
  "front_app" : {
    "id" : "string",
    "name" : "string"
  },
  "rtn_id" : "54132321623",
  "apply_type" : "weight_diff",
  "approve_state" : "none",
  "return_delivery" : {
    "carrier_id" : "sf",
    "carrier_name" : "顺丰",
    "waybill_id" : "111222333"
  }
}
1.1.20.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "apply_id" : "申请幂等ID",
  "apply_ids" : "多个申请幂等ID"
}

1.1.21. 取消承运商配送申请

POST /{tenant_id}/soms/orderservice/order/{id}/cancel/carrier
1.1.21.1. 说明

取消承运商配送申请

1.1.21.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

取消承运商调度请求

1.1.21.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.21.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/cancel/carrier?operator=string
请求 body
{
  "reason" : "客户不要了",
  "carrier_id" : "343434343",
  "auto_dispatch" : true
}
1.1.21.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.22. 商品调换

POST /{tenant_id}/soms/orderservice/order/{id}/changeitems
1.1.22.1. 说明

商品调换

1.1.22.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

商品换货请求对象

1.1.22.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.22.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/changeitems?operator=string
请求 body
{
  "items" : [ {
    "uuid" : "string",
    "spec" : "1*1",
    "barcode" : "3434",
    "quantity" : 3.0,
    "total" : 12.0,
    "price" : 0.0,
    "weight" : 0.0,
    "details" : [ {
      "id" : "121212",
      "title" : "矿泉水",
      "quantity" : 4.0,
      "ratio" : 3.0,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "front_spec" : "辣",
      "real_quantity" : 0.0,
      "fault_tolerant_info" : "string",
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ]
    } ],
    "item_no" : "1",
    "sku_id" : "3243",
    "product_id" : "3243",
    "item_title" : "矿泉水",
    "unit_price" : 4.0,
    "image_url" : "string",
    "clear_orig" : true,
    "is_change" : true
  } ],
  "changes" : [ {
    "reason" : "商品有误",
    "source_items" : [ {
      "quantity" : 13.0,
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "item_no" : "1",
      "sku_id" : "132323",
      "front_sku_id" : "1454543",
      "front_item_id" : "1323233"
    } ],
    "target_items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "barcode" : "3434",
      "quantity" : 3.0,
      "total" : 12.0,
      "price" : 0.0,
      "weight" : 0.0,
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "item_no" : "1",
      "sku_id" : "3243",
      "product_id" : "3243",
      "item_title" : "矿泉水",
      "unit_price" : 4.0,
      "image_url" : "string",
      "clear_orig" : true,
      "is_change" : true
    } ]
  } ],
  "need_apportion_amount" : true
}
1.1.22.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.23. 获取订单配送踪迹

GET /{tenant_id}/soms/orderservice/order/{id}/delivery/trace
1.1.23.1. 说明

获取承运商配送轨迹:顺丰快递、美团快递、蜂鸟快递、京东快递,快递100等

1.1.23.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

waybill_id
可选

运单号

string

1.1.23.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.23.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/delivery/trace
1.1.23.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "deliveryman" : "123434354",
  "longitude" : 111.5,
  "latitude" : 355.5,
  "traces" : [ {
    "time" : "2022-04-07 08:39:07",
    "address" : "福建,厦门市",
    "message" : "顺丰速运 已收取快件",
    "status" : "在途"
  } ],
  "order_id" : "123434354",
  "waybill_id" : "123434354",
  "deliveryman_phone" : "123434354",
  "trace_url" : "http://aaa/bbb",
  "pre_delivery_time" : "2022-04-05 11:11:11"
}

1.1.24. 更新开票结果

POST /{tenant_id}/soms/orderservice/order/{id}/invoice/result
1.1.24.1. 说明

更新开票结果

1.1.24.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

发票结果更新请求对象

1.1.24.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.24.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/invoice/result?operator=string
请求 body
{
  "time" : "2019-07-15 16:56:23",
  "url" : "a.jpg",
  "result" : "开票成功",
  "error_reason" : "系统异常",
  "serial_no" : "45546454454",
  "apply_qrcode" : "string"
}
1.1.24.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.25. 更新开票

POST /{tenant_id}/soms/orderservice/order/{id}/invoices
1.1.25.1. 说明

更新开票

1.1.25.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

发票更新请求对象

1.1.25.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.25.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/invoices?operator=string
请求 body
{
  "invoice" : {
    "required" : false,
    "result" : "开票成功",
    "details" : [ {
      "type" : "plain",
      "kind" : "paper",
      "title" : "XX公司",
      "content" : "上海股份有限公司",
      "amount" : 12.03,
      "tax" : 2.32,
      "account" : "0023415445",
      "telephone" : "12344545111",
      "bank" : "中国银行XXX",
      "address" : "福建厦门XX",
      "remark" : "plain",
      "email" : "chw@qq.com",
      "time" : "2019-07-15 16:56:23",
      "url" : "a.jpg",
      "title_type" : "person",
      "buyer_tax_code" : "1232000046600736XP",
      "taxer_id" : "1212345046600736XP",
      "print_number" : "123456",
      "securaty_code" : "2114445",
      "check_code" : "201622",
      "serial_no" : "454557884564545"
    } ],
    "error_reason" : "string",
    "apply_qrcode" : "string"
  }
}
1.1.25.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.26. 获取快递订单物流轨迹信息

GET /{tenant_id}/soms/orderservice/order/{id}/kd/trace
1.1.26.1. 说明

获取快递订单物流轨迹信息,支持快递100

1.1.26.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

1.1.26.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.26.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/kd/trace?operator=string
1.1.26.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string",
  "state" : "canceled",
  "carrier" : {
    "id" : "string",
    "name" : "string"
  },
  "details" : [ {
    "time" : "2022-04-07 08:39:07",
    "address" : "福建,厦门市",
    "message" : "顺丰速运 已收取快件",
    "status" : "在途"
  } ],
  "waybill_id" : "213232"
}

1.1.27. 更换承运商

POST /{tenant_id}/soms/orderservice/order/{id}/mod/carrier
1.1.27.1. 说明

更换承运商

1.1.27.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

承运商修改请求

1.1.27.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.27.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/mod/carrier?operator=string
请求 body
{
  "type" : "self",
  "carrier" : {
    "id" : "string",
    "name" : "string"
  },
  "merchant" : {
    "id" : "string",
    "name" : "string"
  },
  "deliveryman_id" : "32332",
  "deliveryman_name" : "李某",
  "deliveryman_mobile" : "1565586545",
  "carrier_proxy_platform" : {
    "value" : "string"
  },
  "carrier_proxy_merchant" : {
    "value" : "string"
  }
}
1.1.27.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.28. 订单付款

POST /{tenant_id}/soms/orderservice/order/{id}/pay
1.1.28.1. 说明

订单付款

1.1.28.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

支付请求对象

1.1.28.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.28.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/pay?operator=string
请求 body
{
  "payee" : {
    "id" : "string",
    "name" : "string"
  },
  "details" : [ {
    "code" : "支付方式代码",
    "name" : "支付宝",
    "type" : "5",
    "amount" : 12.33,
    "cashier" : true,
    "score" : 100.0,
    "flowno" : "3223232323",
    "account_no" : "002002",
    "account_name" : "工行",
    "discount_amount" : 100.0,
    "pay_id" : "3223232323",
    "out_pay_id" : "3223232323",
    "extra_info" : "{\"session\", \"123\"}"
  } ],
  "pay_state" : "paid",
  "pay_time" : "2019-12-12 12:12:00",
  "pay_bill_id" : "123434354"
}
1.1.28.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.29. 更新订单拣货信息

POST /{tenant_id}/soms/orderservice/order/{id}/pickInfo
1.1.29.1. 说明

更新订单拣货信息

1.1.29.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

拣货信息请求

1.1.29.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.29.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/pickInfo?operator=string
请求 body
{
  "pick_info" : {
    "time" : "2020-06-17 10:00:00",
    "source" : "string",
    "operator_id" : "string",
    "operator_name" : "string",
    "auto_picked_finish" : true,
    "allow_pick_start_time" : "2020-06-17 10:00:00"
  }
}
1.1.29.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.30. 更新订单标签

POST /{tenant_id}/soms/orderservice/order/{id}/tagging
1.1.30.1. 说明

更新订单标签

1.1.30.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

更新订单标签请求

1.1.30.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.30.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/tagging?operator=string
请求 body
{
  "add_tags" : [ "string" ],
  "remove_tags" : [ "string" ]
}
1.1.30.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.31. 修改订单的溯源码信息

POST /{tenant_id}/soms/orderservice/order/{id}/tracecode/update
1.1.31.1. 说明

修改订单的溯源码信息

1.1.31.2. 参数
类型 名称 说明 类型

Path

id
必填

订单id

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

请求对象

1.1.31.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.31.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/tracecode/update?operator=string
请求 body
{
  "items" : [ {
    "item_no" : "string",
    "sku_id" : "string",
    "trace_codes" : [ "string" ],
    "trace_code_details" : [ {
      "type" : "normal(普通),expDate(效期)",
      "barcode" : "123",
      "batch_no" : "string",
      "code" : "string",
      "valid_date" : "2020-06-17 10:00:00",
      "production_date" : "2020-06-17 10:00:00",
      "qty" : 0.0,
      "qpc_str" : "string"
    } ],
    "details" : [ {
      "id" : "string",
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ]
    } ]
  } ]
}
1.1.31.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.32. 更新订单客户备注

POST /{tenant_id}/soms/orderservice/order/{id}/updateCustomerNote
1.1.32.1. 说明

更新订单客户备注

1.1.32.2. 参数
类型 名称 说明 类型

Path

id
必填

订单号

string

Path

tenant_id
必填

租户ID

string

Query

operator
必填

操作人

string

Body

request
必填

更新客户备注请求

1.1.32.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.32.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/updateCustomerNote?operator=string
请求 body
{
  "customer_note" : "string"
}
1.1.32.5. HTTP响应示例
响应 200
{
  "success" : true,
  "code" : "string",
  "message" : "string"
}

1.1.33. 查询订单(ES查询)

POST /{tenant_id}/soms/orderservice/orders/query
1.1.33.1. 说明

查询订单(ES查询,推荐使用)

1.1.33.2. 参数
类型 名称 说明 类型

Path

tenant_id
必填

租户ID

string

Query

desc
必填

倒序

boolean

Query

page
必填

页码,从0开始,必须>=0

integer (int32)

Query

page_size
必填

分页大小,范围是[1,100]

integer (int32)

Query

sort_key
可选

排序字段,取值范围:front_created()、created(创建时间)、modified(最后修改时间)

string

Body

filter
必填

查询条件

1.1.33.3. 响应
HTTP代码 说明 类型

200

successful operation

1.1.33.4. HTTP请求示例
请求 path
/string/soms/orderservice/orders/query?desc=true&page=0&page_size=0
请求 body
{
  "states" : [ "confirmed" ],
  "suspended" : true,
  "source" : "小程序",
  "prePage" : 0,
  "hasInvoice" : false,
  "invalid" : false,
  "platform_id" : "jdo2o",
  "platform_ids" : [ "string" ],
  "shop_id" : "0002",
  "pre_type" : "normal",
  "station_ids" : [ "string" ],
  "approve_states" : [ "none" ],
  "delivery_states" : [ "none" ],
  "delivery_types" : [ "selftake" ],
  "carrier_states" : [ "initial" ],
  "carrier_types" : [ "self" ],
  "payment_states" : [ "notPay" ],
  "payment_types" : [ "cod" ],
  "payment_out_pay_id" : "string",
  "receiver_mobile" : "18857485554",
  "receiver_mobile_like" : "5554",
  "receiver_mobile_end_with" : "5554",
  "customer_mobile_end_with" : "5554",
  "receiver_name" : "张三",
  "carrier_id" : "0003",
  "waybill_id" : "0003",
  "front_order_id" : "32323232323323",
  "front_order_id_prefix" : "32323232323323",
  "front_order_ids" : "32323232323323",
  "front_created_start" : "2016-03-02 12:00:01",
  "front_created_end" : "2016-03-02 12:00:01",
  "created_start" : "2016-03-02 12:00:01",
  "created_end" : "2016-03-02 12:00:01",
  "modified_start" : "2016-03-02 12:00:01",
  "modified_end" : "2016-03-02 12:00:01",
  "cancel_type" : "customerCancel",
  "have_return" : true,
  "refund_state" : "none",
  "operation_state" : "none",
  "operation_states" : "[none,shipping]",
  "operation_shipping_time_start" : "2016-03-02 12:00:01",
  "operation_shipping_time_end" : "2016-03-02 12:00:01",
  "operation_handover_time_start" : "2016-03-02 12:00:01",
  "operation_handover_time_end" : "2016-03-02 12:00:01",
  "order_id" : "1000002111",
  "order_ids" : [ "string" ],
  "customer_name" : "张三",
  "customer_id" : "8568",
  "shipping_operator" : "张三",
  "handover_operator" : "张三",
  "address_contains" : "福建省",
  "delivered_time_start" : "2016-03-02 12:00:01",
  "delivered_time_end" : "2016-03-02 12:00:01",
  "delivering_time_start" : "2016-03-02 12:00:01",
  "delivering_time_end" : "2016-03-02 12:00:01",
  "deliveryman_name" : "张三",
  "delivery_id" : "111",
  "product_contains" : "sku1111",
  "sku_title" : "冰红茶",
  "has_exception" : false,
  "exception_code_contains" : "false",
  "selftake_code" : "123456",
  "index_modified_start" : "2016-03-02 12:00:01",
  "index_modified_end" : "2016-03-02 12:00:01",
  "has_billing" : true,
  "has_customer_note" : true,
  "bill_id_like" : "32323",
  "bill_id_eq" : "3232323",
  "customer_mobile" : "18896551546",
  "custom_order_state" : [ "string" ],
  "salesman_id_eq" : "3232323",
  "app_id_eq" : "3232323",
  "type_eq" : "拼团订单",
  "has_delivery_exception" : true,
  "front_main_order_id_eq" : "1223432",
  "front_main_order_id_start_with" : "1223432",
  "front_main_order_id_in" : "['123','456']",
  "front_sku_id" : "string",
  "sku_id" : "string",
  "sku_id_in" : "[\"sku1\", \"sku2\"]",
  "source_order_id_eq" : "213",
  "source_order_id_in" : [ "string" ],
  "wrh_id_start_with" : "3232323",
  "wrh_id_in" : "3232323",
  "vendor_code_eq" : "3232323",
  "vendor_code_start_with" : "3232323",
  "vendor_code_in" : "3232323",
  "ship_mode" : "string",
  "deliver_shipped_operator" : "rs",
  "prom_id" : "string",
  "prom_id_in" : [ "string" ],
  "prom_key" : "string",
  "prom_key_in" : [ "string" ],
  "prom_name_like" : "string",
  "pick_info_source_eq" : "string",
  "pick_info_operator_id_eq" : "string",
  "pick_info_operator_id_in" : [ "string" ],
  "pick_info_operator_name_like" : "string",
  "pick_info_time_start" : "2020-06-17 10:00:00",
  "pick_info_time_end" : "2020-06-17 10:00:00",
  "pick_info_is_auto_picked_finish" : true,
  "front_station_order_no_eq" : "string",
  "order_id_or_front_station_order_no_eq" : "string",
  "receiver_private_mobile_end_with" : "string",
  "pre_start_delivery_time_start" : "2020-06-17 10:00:00",
  "pre_start_delivery_time_end" : "2020-06-17 10:00:00",
  "pre_end_delivery_time_start" : "2020-06-17 10:00:00",
  "pre_end_delivery_time_end" : "2020-06-17 10:00:00",
  "front_station_id_in" : [ "string" ],
  "member_mobile_eq" : "string",
  "member_mobile_or_mobile_eq" : "string",
  "carrier_proxy_platform_eq" : "string",
  "fornt_order_type_id" : "string",
  "allow_pick_start_time_end" : "2020-06-17 10:00:00"
}
1.1.33.5. HTTP响应示例
响应 200
{
  "total" : 100,
  "page" : 1,
  "orders" : [ {
    "created" : "2020-06-17 10:00:00",
    "modified" : "2020-06-17 10:00:00",
    "creator" : "string",
    "modifier" : "string",
    "id" : "88822222222",
    "shop" : {
      "id" : "string",
      "name" : "string"
    },
    "source" : "小程序",
    "state" : "confirmed",
    "customer" : {
      "id" : "10001",
      "contact" : {
        "name" : "李飞",
        "telephone" : "189389928893",
        "mobile" : "189389928893",
        "email" : "55151@qq.com",
        "fax" : "123123",
        "private_name" : "张*红",
        "private_mobile" : "189****0000"
      }
    },
    "weight" : 500.0,
    "invoice" : {
      "required" : false,
      "result" : "开票成功",
      "details" : [ {
        "type" : "plain",
        "kind" : "paper",
        "title" : "XX公司",
        "content" : "上海股份有限公司",
        "amount" : 12.03,
        "tax" : 2.32,
        "account" : "0023415445",
        "telephone" : "12344545111",
        "bank" : "中国银行XXX",
        "address" : "福建厦门XX",
        "remark" : "plain",
        "email" : "chw@qq.com",
        "time" : "2019-07-15 16:56:23",
        "url" : "a.jpg",
        "title_type" : "person",
        "buyer_tax_code" : "1232000046600736XP",
        "taxer_id" : "1212345046600736XP",
        "print_number" : "123456",
        "securaty_code" : "2114445",
        "check_code" : "201622",
        "serial_no" : "454557884564545"
      } ],
      "error_reason" : "string",
      "apply_qrcode" : "string"
    },
    "payment" : {
      "type" : "online",
      "state" : "paid",
      "payee" : {
        "id" : "string",
        "name" : "string"
      },
      "amount" : 14.02,
      "freight" : 14.02,
      "details" : [ {
        "code" : "支付方式代码",
        "name" : "支付宝",
        "type" : "5",
        "amount" : 12.33,
        "cashier" : true,
        "score" : 100.0,
        "flowno" : "3223232323",
        "account_no" : "002002",
        "account_name" : "工行",
        "discount_amount" : 100.0,
        "pay_id" : "3223232323",
        "out_pay_id" : "3223232323",
        "extra_info" : "{\"session\", \"123\"}"
      } ],
      "extra" : [ {
        "id" : "distance_freight",
        "name" : "远距离运费",
        "value" : "0.01"
      } ],
      "pay_time" : "2019-03-02 12:00:01",
      "pay_bill_id" : "0122333333",
      "cod_amount" : 0.0,
      "earnest_amount" : 0.0,
      "package_total" : 14.02,
      "other_fee" : 0.0
    },
    "delivery" : {
      "type" : "deliver",
      "state" : "none",
      "receiver" : {
        "contact" : {
          "name" : "李飞",
          "telephone" : "189389928893",
          "mobile" : "189389928893",
          "email" : "55151@qq.com",
          "fax" : "123123",
          "private_name" : "张*红",
          "private_mobile" : "189****0000"
        },
        "address" : {
          "country" : "中国",
          "province" : "福建省",
          "city" : "厦门市",
          "district" : "思明区",
          "street" : "前埔",
          "postcode" : "363423",
          "latitude" : "45.3,范围0-90",
          "longtitude" : "121.2,范围0-180",
          "coordinate_type" : "GCJ02",
          "private_street" : "脱敏地址**"
        }
      },
      "station" : {
        "id" : "string",
        "name" : "string"
      },
      "vendor" : {
        "code" : "string",
        "name" : "string"
      },
      "wrh" : {
        "code" : "string",
        "name" : "string"
      },
      "waybills" : [ {
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "weight" : {
          "unit" : "g",
          "value" : 1.0
        },
        "products" : [ {
          "quantity" : 123.0,
          "sku_id" : "123",
          "item_title" : "123"
        } ],
        "waybill_id" : "123",
        "carrier_proxy_platform" : "承运代理平台",
        "carrier_proxy_merchant" : "承运代理商家",
        "expected_logistics_type" : "crowdsourcing",
        "freight" : 1.11,
        "deliveryman_id" : "zhangsan",
        "deliveryman" : "张三",
        "deliveryman_mobile" : "13333333333",
        "merchant_id" : "111",
        "merchant_name" : "222"
      } ],
      "carrier" : {
        "state" : "initial",
        "type" : "self",
        "carrier" : {
          "id" : "string",
          "name" : "string"
        },
        "merchant" : {
          "id" : "string",
          "name" : "string"
        },
        "deliveryman" : {
          "id" : "string",
          "name" : "string"
        },
        "expected_logistics_type" : "crowdsourcing",
        "deliveryman_mobile" : "18859658865",
        "exception_reason" : "异常原因",
        "delivery_id" : "8548418",
        "delivery_name" : "8548418"
      },
      "remark" : "定时达",
      "operation_state" : "none",
      "ship_mode" : "wrhShip",
      "ship_delivery_mode" : "wrhShipCarrierDeli",
      "wrh_order_id" : "32323",
      "ship_id" : "23232323",
      "waybill_id" : "123",
      "carrier_proxy_platform" : "string",
      "carrier_proxy_merchant" : "string",
      "carrier_note" : "加快",
      "pre_type" : "normal:正常,dsd:定时达,half_day:半日达",
      "pre_start_delivery_time" : "2016-03-02 12:00:01",
      "pre_end_delivery_time" : "2016-03-02 14:00:01",
      "pickup_code" : "123456",
      "city_token" : "123456",
      "selftake_code" : "123456",
      "pre_selftake_time" : "03月05日 晚上",
      "selftake_confirmed" : true,
      "waybill_print_info" : {
        "datas" : [ {
          "type" : "string",
          "data" : "string"
        } ]
      }
    },
    "front" : {
      "platform" : {
        "id" : "string",
        "name" : "string"
      },
      "app" : {
        "id" : "string",
        "name" : "string"
      },
      "created" : "2016-03-02 12:00:01",
      "modified" : "2016-03-02 12:00:01",
      "state" : "已付款",
      "attribute" : "string",
      "order_id" : "1223654",
      "main_order_id" : "1223432",
      "third_order_id" : "1223432",
      "inner_order_id" : "1223432",
      "dpt_station_time" : "2016-03-02 12:00:01",
      "station_id" : "254145",
      "station_name" : "254145",
      "station_order_no" : "1",
      "finished_time" : "2016-03-02 12:00:01",
      "order_type" : {
        "id" : "string",
        "name" : "string"
      },
      "wrh_id" : "string"
    },
    "items" : [ {
      "uuid" : "string",
      "spec" : "1*1",
      "unit" : "瓶",
      "barcode" : "123456",
      "quantity" : 1.0,
      "total" : 2.0,
      "front" : {
        "spec" : "蓝色;微甜  少冰/多糖",
        "spec2" : "500g",
        "unit" : "string",
        "attributes" : [ {
          "group" : "口味",
          "values" : [ "string" ],
          "price" : 0.0,
          "qty" : 0.0
        } ],
        "tags" : [ {
          "id" : "string",
          "name" : "string"
        } ],
        "sku_id" : "052700601",
        "spu_id" : "052700601",
        "item_id" : "052700601"
      },
      "details" : [ {
        "id" : "121212",
        "title" : "矿泉水",
        "quantity" : 4.0,
        "ratio" : 3.0,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "front_spec" : "辣",
        "real_quantity" : 0.0,
        "fault_tolerant_info" : "string",
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ]
      } ],
      "promotion" : {
        "favs" : [ {
          "id" : "1111",
          "name" : "满减",
          "type" : "string",
          "amount" : 10.5,
          "remark" : "测试优惠",
          "factor" : {
            "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
            "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
            "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
          },
          "sku_act_id" : "1111",
          "merchant_act_id" : "1111",
          "batch_act_id" : "1111",
          "child_type" : "string",
          "prom_cls" : "string",
          "voucher_code" : "111111111",
          "settle_details" : [ {
            "role" : "shop(商家)、platform(平台)、agent(代理商)",
            "discount" : 1.0
          } ],
          "share_details" : "[]",
          "extra_info" : "{\"thirdType\": \"42\"}"
        } ],
        "discount_amount" : 0.1,
        "apported_discount_amount" : 0.1
      },
      "item_no" : "1",
      "sku_id" : "00321",
      "product_id" : "2123",
      "item_title" : "葡萄",
      "unit_price" : 2.0,
      "purchase_price" : 2.0,
      "weight" : 1.0,
      "pay_amount" : 2.0,
      "discount_amount" : 12.02,
      "apported_discount_amount" : 12.02,
      "package_qty" : 125.0,
      "package_total" : 205.44,
      "package_info" : {
        "thermosphere" : "string",
        "quantity" : 125.0,
        "total" : 205.44,
        "packageName" : "保温袋"
      },
      "price" : 122.34,
      "cost_price" : 122.34,
      "shop_price" : 122.22,
      "shop_total" : 122.22,
      "settle_price" : 122.2222,
      "settle_total" : 122.22,
      "settle_discountAmount" : 122.22,
      "consume_scores" : 12.2,
      "image_url" : "http://aaa/bbb.png",
      "item_id" : "1",
      "is_collocation" : false,
      "relation_item_id" : "2123",
      "relation_sku_id" : "2123",
      "orig_mas_sku_id" : "string",
      "orig_sku_id" : "121212",
      "orig_item_title" : "【组合】洗护套装",
      "orig_price" : 122.22,
      "orig_qty" : 2.0,
      "orig_barcode" : "1212",
      "orig_image_url" : "string",
      "orig_weight" : 1.0,
      "orig_item" : {
        "type" : "multi",
        "barcode" : "121221",
        "price" : 33.22,
        "quantity" : 3.0,
        "weight" : 0.0,
        "sku_id" : "121221",
        "item_title" : "【组合】洗护套装",
        "image_url" : "string",
        "combined_id" : "121221"
      },
      "orig_extra_info" : {
        "spec" : "1*1",
        "unit" : "个"
      },
      "fault_tolerant_info" : "string",
      "salesman" : {
        "id" : "string",
        "name" : "string"
      },
      "trace_codes" : [ "string" ],
      "trace_code_details" : [ {
        "type" : "normal(普通),expDate(效期)",
        "barcode" : "123",
        "batch_no" : "string",
        "code" : "string",
        "valid_date" : "2020-06-17 10:00:00",
        "production_date" : "2020-06-17 10:00:00",
        "qty" : 0.0,
        "qpc_str" : "string"
      } ],
      "extra_info" : "{\"inv_mgr\": false}",
      "tags" : "标签",
      "real_weight" : 0.0,
      "real_quantity" : 0.0,
      "service_options" : "清洁/杀菌",
      "is_gift" : true
    } ],
    "logs" : [ {
      "action" : "modify",
      "message" : "修改订单商品明细",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "tenant_id" : "zuhu",
      "order_id" : "321212222",
      "rtn_id" : "212123333",
      "action_caption" : "修改订单"
    } ],
    "exceptions" : [ {
      "code" : "sku",
      "caption" : "商品异常",
      "remark" : "商品异常",
      "time" : "2017-12-26 16:40:19",
      "operator" : "zuhu",
      "order_id" : "123456"
    } ],
    "promotion" : {
      "favs" : [ {
        "id" : "1111",
        "name" : "满减",
        "type" : "string",
        "amount" : 10.5,
        "remark" : "测试优惠",
        "factor" : {
          "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
          "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
          "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
        },
        "sku_act_id" : "1111",
        "merchant_act_id" : "1111",
        "batch_act_id" : "1111",
        "child_type" : "string",
        "prom_cls" : "string",
        "voucher_code" : "111111111",
        "settle_details" : [ {
          "role" : "shop(商家)、platform(平台)、agent(代理商)",
          "discount" : 1.0
        } ],
        "share_details" : "[]",
        "extra_info" : "{\"thirdType\": \"42\"}"
      } ]
    },
    "order_store" : {
      "id" : "string",
      "name" : "string"
    },
    "approve_state" : "none",
    "wrh_state" : "initial",
    "customer_note" : "note",
    "seller_note" : "note",
    "salesman" : {
      "id" : "string",
      "name" : "string",
      "type" : "saleman",
      "org" : {
        "id" : "string",
        "name" : "string"
      },
      "org_type" : "门店",
      "inviter_mobile" : "18859226552",
      "inviter_name" : "王x",
      "inviter_wid" : "7567645",
      "personal_guider_name" : "王x",
      "personal_guider_no" : "3242323",
      "personal_guider_wid" : "3242323",
      "trade_guider_name" : "王x",
      "trade_guider_no" : "65756",
      "trade_guider_wid" : "45345",
      "weike_mobile" : "18859226552",
      "weike_name" : "张三",
      "weike_wid" : "765765756"
    },
    "cancel_type" : "customerCancel",
    "cancel_reason" : "我不想要了",
    "source_order_id" : "5346567534545645",
    "has_exception" : true,
    "exception_codes" : "sku",
    "exception_remark" : "商品不存在",
    "is_private" : true,
    "item_count" : 1,
    "sku_quantity" : 1.0,
    "real_total" : 120.01,
    "orig_total" : 120.01,
    "user_number" : 2,
    "settle_amount" : 120.01,
    "settle_commission" : 120.01,
    "selttle_commission" : 120.01,
    "settle_freight" : 120.01,
    "performance_service_fee" : 120.01,
    "shop_amount" : 120.01,
    "freight_discount" : 33.33,
    "package_discount" : 33.33,
    "invoice_take_code" : "string",
    "item_change_records" : [ {
      "reason" : "string",
      "created" : "2020-06-17 10:00:00",
      "modified" : "2020-06-17 10:00:00",
      "creator" : "string",
      "modifier" : "string",
      "items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ],
      "change_items" : [ {
        "uuid" : "string",
        "spec" : "1*1",
        "unit" : "瓶",
        "barcode" : "123456",
        "quantity" : 1.0,
        "total" : 2.0,
        "front" : {
          "spec" : "蓝色;微甜  少冰/多糖",
          "spec2" : "500g",
          "unit" : "string",
          "attributes" : [ {
            "group" : "口味",
            "values" : [ "string" ],
            "price" : 0.0,
            "qty" : 0.0
          } ],
          "tags" : [ {
            "id" : "string",
            "name" : "string"
          } ],
          "sku_id" : "052700601",
          "spu_id" : "052700601",
          "item_id" : "052700601"
        },
        "details" : [ {
          "id" : "121212",
          "title" : "矿泉水",
          "quantity" : 4.0,
          "ratio" : 3.0,
          "package_info" : {
            "thermosphere" : "string",
            "quantity" : 125.0,
            "total" : 205.44,
            "packageName" : "保温袋"
          },
          "front_spec" : "辣",
          "real_quantity" : 0.0,
          "fault_tolerant_info" : "string",
          "trace_codes" : [ "string" ],
          "trace_code_details" : [ {
            "type" : "normal(普通),expDate(效期)",
            "barcode" : "123",
            "batch_no" : "string",
            "code" : "string",
            "valid_date" : "2020-06-17 10:00:00",
            "production_date" : "2020-06-17 10:00:00",
            "qty" : 0.0,
            "qpc_str" : "string"
          } ]
        } ],
        "promotion" : {
          "favs" : [ {
            "id" : "1111",
            "name" : "满减",
            "type" : "string",
            "amount" : 10.5,
            "remark" : "测试优惠",
            "factor" : {
              "total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
              "qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
              "sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
            },
            "sku_act_id" : "1111",
            "merchant_act_id" : "1111",
            "batch_act_id" : "1111",
            "child_type" : "string",
            "prom_cls" : "string",
            "voucher_code" : "111111111",
            "settle_details" : [ {
              "role" : "shop(商家)、platform(平台)、agent(代理商)",
              "discount" : 1.0
            } ],
            "share_details" : "[]",
            "extra_info" : "{\"thirdType\": \"42\"}"
          } ],
          "discount_amount" : 0.1,
          "apported_discount_amount" : 0.1
        },
        "item_no" : "1",
        "sku_id" : "00321",
        "product_id" : "2123",
        "item_title" : "葡萄",
        "unit_price" : 2.0,
        "purchase_price" : 2.0,
        "weight" : 1.0,
        "pay_amount" : 2.0,
        "discount_amount" : 12.02,
        "apported_discount_amount" : 12.02,
        "package_qty" : 125.0,
        "package_total" : 205.44,
        "package_info" : {
          "thermosphere" : "string",
          "quantity" : 125.0,
          "total" : 205.44,
          "packageName" : "保温袋"
        },
        "price" : 122.34,
        "cost_price" : 122.34,
        "shop_price" : 122.22,
        "shop_total" : 122.22,
        "settle_price" : 122.2222,
        "settle_total" : 122.22,
        "settle_discountAmount" : 122.22,
        "consume_scores" : 12.2,
        "image_url" : "http://aaa/bbb.png",
        "item_id" : "1",
        "is_collocation" : false,
        "relation_item_id" : "2123",
        "relation_sku_id" : "2123",
        "orig_mas_sku_id" : "string",
        "orig_sku_id" : "121212",
        "orig_item_title" : "【组合】洗护套装",
        "orig_price" : 122.22,
        "orig_qty" : 2.0,
        "orig_barcode" : "1212",
        "orig_image_url" : "string",
        "orig_weight" : 1.0,
        "orig_item" : {
          "type" : "multi",
          "barcode" : "121221",
          "price" : 33.22,
          "quantity" : 3.0,
          "weight" : 0.0,
          "sku_id" : "121221",
          "item_title" : "【组合】洗护套装",
          "image_url" : "string",
          "combined_id" : "121221"
        },
        "orig_extra_info" : {
          "spec" : "1*1",
          "unit" : "个"
        },
        "fault_tolerant_info" : "string",
        "salesman" : {
          "id" : "string",
          "name" : "string"
        },
        "trace_codes" : [ "string" ],
        "trace_code_details" : [ {
          "type" : "normal(普通),expDate(效期)",
          "barcode" : "123",
          "batch_no" : "string",
          "code" : "string",
          "valid_date" : "2020-06-17 10:00:00",
          "production_date" : "2020-06-17 10:00:00",
          "qty" : 0.0,
          "qpc_str" : "string"
        } ],
        "extra_info" : "{\"inv_mgr\": false}",
        "tags" : "标签",
        "real_weight" : 0.0,
        "real_quantity" : 0.0,
        "service_options" : "清洁/杀菌",
        "is_gift" : true
      } ]
    } ],
    "print_bills" : [ {
      "name" : "外卖订单",
      "title" : "外卖订单",
      "content" : "内容",
      "created" : "2020-06-17 10:00:00",
      "printer" : "string",
      "outerId" : "string",
      "deleted" : true,
      "type" : "string",
      "ticket_type" : "小票",
      "deleted_time" : "2020-06-17 10:00:00",
      "sku_id" : "string"
    } ],
    "suspend_info" : {
      "suspended" : true,
      "code" : "string",
      "caption" : "string",
      "time" : "2017-12-26 16:40:19"
    },
    "member_info" : {
      "member_id" : "12253",
      "card_no" : "22323",
      "member_gid" : "12253",
      "outer_member_id" : "12253",
      "mobile" : "12253",
      "member_extra" : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"
    },
    "fault_tolerant_info" : "string",
    "extra_info" : "{\"lcUserAccessToken\", \"123\"}",
    "crm_info" : {
      "coupon_info" : {
        "details" : "[]",
        "use_total" : 1.0
      },
      "score_info" : {
        "total" : 1.0,
        "balance" : 100.0
      }
    },
    "settle_info" : {
      "settlable" : true,
      "discounts" : "[{}]",
      "settle_date" : "2022-08-25 00:00:00",
      "station_settle_mode" : "online"
    },
    "settle_unit" : {
      "type" : "store",
      "code" : "0001",
      "name" : "门店1"
    },
    "package_info" : {
      "required" : false,
      "type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
      "details" : "[]",
      "package_type" : "保温袋"
    },
    "pick_info" : {
      "time" : "2020-06-17 10:00:00",
      "source" : "string",
      "operator_id" : "string",
      "operator_name" : "string",
      "auto_picked_finish" : true,
      "allow_pick_start_time" : "2020-06-17 10:00:00"
    },
    "item_logistics" : [ {
      "qty" : 0.0,
      "sku_id" : "string",
      "logistics_code" : "string"
    } ],
    "calc_data" : true,
    "wrh_id" : "4184",
    "encrypt_detail" : {
      "secretKey" : "string",
      "encrypt_street" : "string",
      "encrypt_name" : "string",
      "encrypt_mobile" : "string"
    },
    "tags" : [ {
      "name" : "首单"
    } ],
    "quotas" : [ {
      "action" : "expect_shipping",
      "time" : "2021-09-26 16:40:19",
      "remark" : "无",
      "action_name" : "期望拣货完成时间"
    } ],
    "reissue_reason" : "string",
    "responsible_party" : "string",
    "mock_info" : {
      "persist" : true
    },
    "adjust_details" : [ {
      "field" : "amount,pay_amount,quantity",
      "before" : "10",
      "after" : "12"
    } ],
    "sale_order_id" : "string",
    "waybill_id" : "32332",
    "address_change_fee" : 0.0,
    "reason" : "黑子",
    "shipping_voucher_urls" : [ "string" ],
    "wish_info" : {
      "wish" : "string",
      "type" : "string"
    }
  } ],
  "page_count" : 5,
  "page_size" : 20
}

2. 定义

2.1. ActionResult

名称 说明 类型

code
可选

样例 : "string"

string

message
可选

样例 : "string"

string

success
可选

默认值 : false
样例 : true

boolean

2.2. Address

地址信息

名称 说明 类型

city
可选


样例 : "厦门市"

string

coordinate_type
可选

坐标类型,BD09:百度坐标, GCJ02:火星坐标,WGS84:WGS84坐标
样例 : "GCJ02"

string

country
可选

国家
样例 : "中国"

string

district
可选


样例 : "思明区"

string

latitude
可选

纬度
样例 : "45.3,范围0-90"

number

longtitude
可选

经度
样例 : "121.2,范围0-180"

number

postcode
可选

邮编
样例 : "363423"

string

private_street
可选

脱敏地址
样例 : "脱敏地址**"

string

province
可选

省份
样例 : "福建省"

string

street
可选

详细地址
样例 : "前埔"

string

2.3. AdjustDetail

名称 说明 类型

after
可选

调整后
样例 : "12"

string

before
可选

调整前
样例 : "10"

string

field
可选

调整字段
样例 : "amount,pay_amount,quantity"

string

2.4. ApplyRtnDelivery

名称 说明 类型

carrier_id
可选

承运ID
样例 : "sf"

string

carrier_name
可选

承运商名称
样例 : "顺丰"

string

waybill_id
可选

运单号
样例 : "111222333"

string

2.5. CRMInfo

会员权益信息

名称 说明 类型

coupon_info
可选

券信息
样例 : CouponInfo

score_info
可选

积分信息
样例 : ScoreInfo

2.6. CancelCarrierRequest

取消承运商配送请求对象

名称 说明 类型

auto_dispatch
可选

是否自动调度到下一个承运商,默认为false
默认值 : false
样例 : true

boolean

carrier_id
必填

承运商Id
样例 : "343434343"

string

reason
可选

原因
样例 : "客户不要了"

string

2.7. CancelOrderRequest

取消订单请求

名称 说明 类型

frontRtnId
可选

平台退单号
样例 : "599565656"

string

reason
可选

取消原因
样例 : "不想要了"

string

type
可选

取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消)、refused(客户拒接)
样例 : "customerCancel"

string

2.8. Carrier

承运商

名称 说明 类型

carrier
可选

承运平台
样例 : IdName

delivery_id
可选

配送活动标识
样例 : "8548418"

string

delivery_name
可选

配送活动名称
样例 : "8548418"

string

deliveryman
可选

送货员
样例 : IdName

deliveryman_mobile
可选

送货员手机
样例 : "18859658865"

string

exception_reason
可选

承运异常原因
样例 : "异常原因"

string

expected_logistics_type
可选

期望承运物流类型,取值范围:express(快递)、crowdsourcing(众包)。快递:如圆通,中通等;众包:如美团,蜂鸟,达达等
样例 : "crowdsourcing"

string

merchant
可选

承运商家
样例 : IdName

state
可选

承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、dispatched(已派单)、arrived(骑手已到店)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消)
样例 : "initial"

enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled)

type
可选

承运商类型,取值范围:self(门店自送)、thirdparty(平台配送)、express(物流配送)
样例 : "self"

enum (self, thirdparty, express)

2.9. CarrierModificationRequest

承运商修改请求对象

名称 说明 类型

carrier
可选

承运商
样例 : IdName

carrier_proxy_merchant
可选

承运代理商家
样例 : ModFieldString

carrier_proxy_platform
可选

承运代理平台
样例 : ModFieldString

deliveryman_id
可选

配送员Id
样例 : "32332"

string

deliveryman_mobile
可选

配送员电话
样例 : "1565586545"

string

deliveryman_name
可选

配送员名称
样例 : "李某"

string

merchant
可选

承运商家
样例 : IdName

type
可选

承运类型: self(门店自送)、thirdparty(平台配送)、express(物流配送)
样例 : "self"

enum (self, thirdparty, express)

2.10. CarrierRequest

更新订单承运商物流状态

名称 说明 类型

carrier
必填

承运商
样例 : Carrier

carrier_note
可选

承运商备注
样例 : "加快"

string

carrier_proxy_merchant
可选

承运代理商家
样例 : ModFieldString

carrier_proxy_platform
可选

承运代理平台
样例 : ModFieldString

delivery_id
可选

配送ID
样例 : "123"

string

exception_remark
可选

承运异常备注
样例 : "第三方要求取消"

string

freight
可选

运费
样例 : 1.11

number

ignore_auto_dispatch_carrier
可选

是否忽略自动调度承运商
默认值 : false
样例 : true

boolean

ignore_check_carrier_state
可选

忽略校验承运状态
默认值 : false
样例 : true

boolean

operator
可选

操作人
样例 : "user"

string

print_info
可选

运单打印信息
样例 : WaybillPrintInfo

re_calc_carrier
可选

是否重新计算承运
默认值 : false
样例 : true

boolean

shop_freight
可选

商家付给承运商的运费
样例 : ModFieldBigDecimal

tags
可选

标签,会给订单加上标签,已有的标签不会重复添加
样例 : [ "OrderTag" ]

< OrderTag > array

waybill_id
可选

运单号
样例 : "123"

string

2.11. ChangeItem

来源:换货商品

名称 说明 类型

details
可选

商品原料详情
样例 : [ "OrderItemDetail" ]

< OrderItemDetail > array

front_item_id
可选

前台订单行标识
样例 : "1323233"

string

front_sku_id
可选

平台商品编码
样例 : "1454543"

string

item_no
可选

行号
样例 : "1"

string

quantity
可选

数量
样例 : 13.0

number

sku_id
可选

货号
样例 : "132323"

string

2.12. ChangeTargetItem

换货目标商品行

名称 说明 类型

barcode
可选

条码
样例 : "3434"

string

clear_orig
可选

默认值 : false
样例 : true

boolean

details
可选

商品原料详情
样例 : [ "OrderItemDetail" ]

< OrderItemDetail > array

image_url
可选

图片地址
样例 : "string"

string

is_change
可选

默认值 : false
样例 : true

boolean

item_no
可选

行号
样例 : "1"

string

item_title
可选

商品标题
样例 : "矿泉水"

string

price
可选

价格
样例 : 0.0

number

product_id
可选

代码
样例 : "3243"

string

quantity
必填

数量
样例 : 3.0

number

sku_id
必填

货号
样例 : "3243"

string

spec
可选

商品规格
样例 : "1*1"

string

total
必填

商品金额
样例 : 12.0

number

unit_price
必填

单价
样例 : 4.0

number

uuid
可选

样例 : "string"

string

weight
可选

重量
样例 : 0.0

number

2.13. CodeName

名称 说明 类型

code
可选

样例 : "string"

string

name
可选

样例 : "string"

string

2.14. CouponDetail

券信息

名称 说明 类型

amount
可选

实际抵用金额
样例 : 10.0

number

code
可选

券号
样例 : "10245678"

string

name
可选

券名称
样例 : "现金券"

string

type
可选

cash(现金券)、discount(折扣券)
样例 : "cash"

string

type_id
可选

券类型代码
样例 : "0001"

string

use_mode
可选

用券形式:pay(支付)、discount(优惠)
样例 : "pay"

string

value
可选

折扣率或者现金面额
样例 : "100,0.1"

number

2.15. CouponInfo

券信息

名称 说明 类型

details
可选

券使用详情
样例 : "[]"

< CouponDetail > array

use_total
可选

券抵用总金额
样例 : 1.0

number

2.16. Customer

客户

名称 说明 类型

contact
可选

联系方式
样例 : 联系方式(soms)

id
可选

代码
样例 : "10001"

string

2.17. DeliverRequest

配送情况

名称 说明 类型

carrier
可选

承运商,非空时将更新
样例 : Carrier

carrier_note
可选

承运商备注
样例 : "已经在发货的路上"

string

delivery_state
必填

配送状态,取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投)
样例 : "none"

enum (none, shipped, signed, refused, redeliver)

front_finished_time
可选

平台订单完成时间,非空时将更新,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

front_modified
可选

平台订单最后修改时间,非空时将更新,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

operation
可选

门店作业:accept(接单)、shipping(集货)、recheck(复核)、handover(交接)、cancelShipping(取消集货)
样例 : "shipping"

string

operation_state
可选

作业状态
样例 : "none(空)、accepted(已接单)、shipping( 已集货/已拣货)、rechecked(已复核)、handover(已交接)"

string

operator
可选

执行操作人
样例 : "zhangsan"

string

pick_info
可选

订单拣货信息
样例 : OrderPickInfo

print
可选

是否打印
默认值 : false
样例 : true

boolean

selftake_confirmed
可选

自提确认
默认值 : false
样例 : true

boolean

ship_id
可选

发货码
样例 : "122323232"

string

ship_time
可选

发货时间,传入的话如果本次操作的是发货,则日志的time将记录该时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2022-07-18 20:34:00"

string (date-time)

waybill_id
可选

承运单号,非空时将更新
样例 : "1243566215"

string

2.18. Delivery

配送信息

名称 说明 类型

carrier
可选

承运商信息
样例 : Carrier

carrier_note
可选

承运商备注
样例 : "加快"

string

carrier_proxy_merchant
可选

承运代理商家
样例 : "string"

string

carrier_proxy_platform
可选

承运代理平台
样例 : "string"

string

city_token
可选

同城令牌
样例 : "123456"

string

operation_state
可选

门店作业状态,none(空),accepted(已接单),shipping(已集货(已拣货)),rechecked(已复核),handover(已交接)
样例 : "none"

string

pickup_code
可选

取件码
样例 : "123456"

string

pre_end_delivery_time
可选

预计送达结束时间
样例 : "2016-03-02 14:00:01"

string (date-time)

pre_selftake_time
可选

预计自提时间
样例 : "03月05日 晚上"

string

pre_start_delivery_time
可选

预计送达开始时间
样例 : "2016-03-02 12:00:01"

string (date-time)

pre_type
可选

订单预约类型
样例 : "normal:正常,dsd:定时达,half_day:半日达"

string

receiver
可选

收货人信息
样例 : Receiver

remark
可选

配送说明
样例 : "定时达"

string

selftake_code
可选

自提码
样例 : "123456"

string

selftake_confirmed
可选

自提确认
默认值 : false
样例 : true

boolean

ship_delivery_mode
可选

发货及配送方式,可选值:wrhShipCarrierDeli(仓库发货,快递配送)、wrhShipStationDeli(仓库发货,门店配送)、stationShipStationDeli(门店发货,门店配送)、stationShipCarrierDeli(门店发货,快递配送)、vendorShipCarrierDeli(供应商发货,快递配送)
样例 : "wrhShipCarrierDeli"

enum (wrhShipCarrierDeli, wrhShipStationDeli, stationShipStationDeli, stationShipCarrierDeli, vendorShipCarrierDeli)

ship_id
可选

发货码
样例 : "23232323"

string

ship_mode
可选

发货方式,wrhShip(仓库发货),stationShip(门店发货),vendorShip(供应商发货)
样例 : "wrhShip"

enum (wrhShip, stationShip, vendorShip)

state
可选

配送状态,默认取值为:none。取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投)
样例 : "none"

enum (none, shipped, signed, refused, redeliver)

station
可选

配送门店
样例 : IdName

type
可选

交付方式,默认取值:deliver。取值范围:selftake(到店自提)、deliver(送货上门)
样例 : "deliver"

enum (selftake, deliver)

vendor
可选

发货供应商
样例 : CodeName

waybill_id
可选

运单号
样例 : "123"

string

waybill_print_info
可选

运单打印信息
样例 : WaybillPrintInfo

waybills
可选

样例 : [ "Waybill" ]

< Waybill > array

wrh
可选

发货仓库
样例 : CodeName

wrh_order_id
可选

仓库单号
样例 : "32323"

string

2.19. DeliveryTraceResponse

订单配送踪迹

名称 说明 类型

code
可选

样例 : "string"

string

deliveryman
可选

配送员姓名
样例 : "123434354"

string

deliveryman_phone
可选

配送员手机号
样例 : "123434354"

string

latitude
可选

纬度
样例 : 355.5

number

longitude
可选

经度
样例 : 111.5

number

message
可选

样例 : "string"

string

order_id
可选

鼎力云订单号
样例 : "123434354"

string

pre_delivery_time
可选

预计送达时间
样例 : "2022-04-05 11:11:11"

string (date-time)

success
可选

默认值 : false
样例 : true

boolean

trace_url
可选

跟踪连接
样例 : "http://aaa/bbb"

string

traces
可选

样例 : [ "OrderKdTraceDetail" ]

< OrderKdTraceDetail > array

waybill_id
可选

承运单号
样例 : "123434354"

string

2.20. DiscountSettleDetail

优惠结算详情

名称 说明 类型

discount
可选

承担优惠金额
样例 : 1.0

number

role
可选

优惠承担方
样例 : "shop(商家)、platform(平台)、agent(代理商)"

string

2.21. DiscountShareDetail

整合优惠结算详情

名称 说明 类型

discount
可选

承担优惠金额
样例 : 1.0

number

type
可选

类型
样例 : "3:整合营销"

string

2.22. EncryptDetail

加密信息

名称 说明 类型

encrypt_mobile
可选

样例 : "string"

string

encrypt_name
可选

样例 : "string"

string

encrypt_street
可选

样例 : "string"

string

secretKey
可选

样例 : "string"

string

2.23. ExtraField

自定义字段

名称 说明 类型

id
可选

自定义id
样例 : "distance_freight"

string

name
可选

自定义名称
样例 : "远距离运费"

string

value
可选

自定义值
样例 : "0.01"

string

2.24. FavDetail

优惠详情

名称 说明 类型

amount
可选

优惠金额
样例 : 10.5

number

batch_act_id
可选

批次维度的活动ID
样例 : "1111"

string

child_type
可选

优惠子类型
样例 : "string"

string

extra_info
可选

扩展信息,json格式。
样例 : "{\"thirdType\": \"42\"}"

string

factor
可选

优惠参与信息
样例 : FavFactor

id
可选

优惠ID
样例 : "1111"

string

merchant_act_id
可选

商家活动ID
样例 : "1111"

string

name
可选

活动名称
样例 : "满减"

string

prom_cls
可选

促销来源类型
样例 : "string"

string

remark
可选

优惠说明
样例 : "测试优惠"

string

settle_details
可选

优惠结算分摊详情
样例 : [ "DiscountSettleDetail" ]

share_details
可选

多方整合优惠分摊信息
样例 : "[]"

sku_act_id
可选

商品维度的活动ID
样例 : "1111"

string

type
可选

优惠类型
样例 : "string"

string

voucher_code
可选

凭证代码
样例 : "111111111"

string

2.25. FavFactor

优惠参与信息

名称 说明 类型

qty
可选

本商品参与促销总数量
样例 : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1"

number

sku_items
可选

来源商品参与优惠明细
样例 : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"

< FavFactorItem > array

total
可选

本商品参与促销总金额
样例 : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20"

number

2.26. FavFactorItem

参与优惠商品明细

名称 说明 类型

amount
可选

参与促销金额
样例 : 1.0

number

item_id
可选

行标识
样例 : "1"

string

item_no
必填

行号
样例 : 1

integer (int32)

qty
可选

参与促销数量
样例 : 1.0

number

2.27. FrontItem

平台商品行信息

名称 说明 类型

attributes
可选

属性
样例 : [ "FrontItemAttribute" ]

< FrontItemAttribute > array

item_id
必填

平台订单行ID
样例 : "052700601"

string

sku_id
可选

平台SKU ID
样例 : "052700601"

string

spec
可选

平台商品属性(口味), 多个属性以;或者/分隔显示
样例 : "蓝色;微甜 少冰/多糖"

string

spec2
可选

平台商品的规格,形如:500g、500ml
样例 : "500g"

string

spu_id
可选

平台SPU ID
样例 : "052700601"

string

tags
可选

平台标签
样例 : [ "IdName" ]

< IdName > array

unit
可选

单位
样例 : "string"

string

2.28. FrontItemAttribute

平台商品行属性信息

名称 说明 类型

group
可选

属性分组
样例 : "口味"

string

price
可选

属性售价
样例 : 0.0

number

qty
可选

属性数量
样例 : 0.0

number

values
可选

属性值
样例 : [ "string" ]

< string > array

2.29. FrontOrder

平台订单信息

名称 说明 类型

app
可选

平台应用
样例 : IdName

attribute
可选

属性信息
样例 : "string"

string

created
可选

下单时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

dpt_station_time
可选

平台调度门店时间,用于存储平台分配门店时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

finished_time
可选

完成时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

inner_order_id
可选

平台内部单号
样例 : "1223432"

string

main_order_id
可选

平台主订单号,如果平台存在拆单,可以填入拆单的主单号
样例 : "1223432"

string

modified
可选

最后修改时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

order_id
必填

平台订单号,第三方单号
样例 : "1223654"

string

order_type
可选

订单类型,默认为ECOM(普通订单):ECOM,普通订单;ShareGroup,拼团订单;POINTS_REDEEM,积分换购订单;ENLIST_REDEEM,预约兑换订单;PRESALE,预售订单;COMPENSATION,赔付订单;RELAY,接龙订单
样例 : IdName

platform
必填

平台,其中:自接入平台需要提供约定平台id,申请在鼎力云开通。
样例 : IdName

state
可选

状态
样例 : "已付款"

string

station_id
可选

平台侧的门店编码
样例 : "254145"

string

station_name
可选

平台侧的门店名称
样例 : "254145"

string

station_order_no
可选

平台门店订单序号,该平台下单门店的第几单,用于骑手到店取件
样例 : "1"

string

third_order_id
可选

第三方订单号
样例 : "1223432"

string

wrh_id
可选

平台发货仓库编码
样例 : "string"

string

2.30. IdName

名称 说明 类型

id
可选

样例 : "string"

string

name
可选

样例 : "string"

string

2.31. IdWrapper

名称 说明 类型

id
可选

样例 : "string"

string

2.32. IdsWrapper

名称 说明 类型

ids
可选

样例 : [ "string" ]

< string > array

2.33. Invoice

发票信息

名称 说明 类型

apply_qrcode
可选

开票二维码
样例 : "string"

string

details
可选

发票详情
样例 : [ "InvoiceDetail" ]

< InvoiceDetail > array

error_reason
可选

开票失败原因
样例 : "string"

string

required
必填

是否需要发票
默认值 : false
样例 : false

boolean

result
可选

开票结果:开票成功、开票失败,申请开票时不传
样例 : "开票成功"

string

2.34. InvoiceDetail

发票详情

名称 说明 类型

account
可选

银行编号/账号
样例 : "0023415445"

string

address
可选

地址
样例 : "福建厦门XX"

string

amount
必填

发票金额
样例 : 12.03

number

bank
可选

开户行
样例 : "中国银行XXX"

string

buyer_tax_code
可选

购买方税号,废弃,建议使用taxerId字段
样例 : "1232000046600736XP"

string

check_code
可选

校验码
样例 : "201622"

string

content
可选

发票内容
样例 : "上海股份有限公司"

string

email
可选

发票接收邮箱
样例 : "chw@qq.com"

string

kind
可选

发票种类,取值范围:e-invoice(电子)、paper(纸质)
样例 : "paper"

string

print_number
必填

打印单号
样例 : "123456"

string

remark
可选

发票备注
样例 : "plain"

string

securaty_code
可选

密码
样例 : "2114445"

string

serial_no
可选

流水号
样例 : "454557884564545"

string

tax
可选

税费
样例 : 2.32

number

taxer_id
可选

纳税人识别号(买家填写)
样例 : "1212345046600736XP"

string

telephone
可选

电话
样例 : "12344545111"

string

time
可选

开票日期
样例 : "2019-07-15 16:56:23"

string (date-time)

title
可选

发票抬头
样例 : "XX公司"

string

title_type
可选

抬头类型,取值范围:person(个人)、company(单位)
样例 : "person"

enum (person, company)

type
可选

发票类型,取值范围:plain(普通发票)、VAT(增值税专用发票)
样例 : "plain"

enum (plain, VAT)

url
可选

电子发票图片地址
样例 : "a.jpg"

string

2.35. ItemPromotion

商品行促销信息

名称 说明 类型

apported_discount_amount
可选

整单优惠分摊金额
样例 : 0.1

number

discount_amount
可选

商品优惠金额
样例 : 0.1

number

favs
可选

优惠详情
样例 : [ "FavDetail" ]

< FavDetail > array

2.36. MemberInfo

积分信息

名称 说明 类型

card_no
可选

实体卡卡号,如果存在多个,以英文逗号隔开
样例 : "22323"

string

member_extra
可选

额外参数,json字符串
样例 : "{\"namespace\":\"wexinApp\",\"member_channel_type\":\"type\",\"member_channel_id\":\"123\",\"member_ident_type\":\"ident\"}"

string

member_gid
可选

会员资料内码
样例 : "12253"

string

member_id
可选

会员ID
样例 : "12253"

string

mobile
可选

会员电话
样例 : "12253"

string

outer_member_id
可选

外部会员id
样例 : "12253"

string

2.37. MockInfo

压测

名称 说明 类型

persist
可选

默认值 : false
样例 : true

boolean

2.38. ModFieldBigDecimal

名称 说明 类型

value
可选

样例 : 0.0

number

2.39. ModFieldString

名称 说明 类型

value
可选

样例 : "string"

string

2.40. Order

订单

名称 说明 类型

address_change_fee
可选

地址变更费
样例 : 0.0

number

adjust_details
可选

调整详情
样例 : [ "AdjustDetail" ]

< AdjustDetail > array

approve_state
可选

审核子状态,取值范围:none(未审核)、serviceApproved(客服已审核)、financeApproved(财务已审核)、warehouseApproved(物流已审核)、carrierApproved(承运商已审核)
样例 : "none"

enum (none, serviceApproved, financeApproved, warehouseApproved, carrierApproved)

calc_data
可选

是否需要反算金额,默认true
默认值 : false
样例 : true

boolean

cancel_reason
可选

取消原因
样例 : "我不想要了"

string

cancel_type
可选

取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消)
样例 : "customerCancel"

string

created
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

creator
可选

样例 : "string"

string

crm_info
可选

营销信息
样例 : CRMInfo

customer
可选

客户信息
样例 : Customer

customer_note
可选

客户备注
样例 : "note"

string

delivery
必填

配送信息
样例 : Delivery

encrypt_detail
可选

加密详情
样例 : EncryptDetail

exception_codes
可选

异常代码,sku(商品异常)、amount(金额异常)、shopAmount(货款金额异常)、carrier(承运异常)
样例 : "sku"

string

exception_remark
可选

异常说明
样例 : "商品不存在"

string

exceptions
可选

异常信息
样例 : [ "OrderException" ]

< OrderException > array

extra_info
可选

扩展信息,json字符串
样例 : "{\"lcUserAccessToken\", \"123\"}"

string

fault_tolerant_info
可选

容错信息,json字符串
样例 : "string"

string

freight_discount
可选

运费优惠金额
样例 : 33.33

number

front
必填

平台订单信息
样例 : FrontOrder

has_exception
可选

是否异常
默认值 : false
样例 : true

boolean

id
可选

订单Id,由系统自动生成,不需要填写
样例 : "88822222222"

string

invoice
可选

发票信息
样例 : Invoice

invoice_take_code
可选

发票提取码,32位
样例 : "string"

string

is_private
可选

是否是隐私号,true:小票显示的顾客手机号格式为138*8888,false:原手机号显示
默认值 : false
样例
* : true

boolean

item_change_records
可选

换货明细
样例 : [ "OrderItemChange" ]

< OrderItemChange > array

item_count
必填

商品明细数
样例 : 1

integer (int32)

item_logistics
可选

样例 : [ "OrderItemLogistics" ]

< OrderItemLogistics > array

items
必填

商品行
样例 : [ "OrderItem" ]

< OrderItem > array

logs
可选

订单日志
样例 : [ "OrderLog" ]

< OrderLog > array

member_info
可选

会员积分信息
样例 : MemberInfo

mock_info
可选

样例 : MockInfo

modified
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

modifier
可选

样例 : "string"

string

order_store
可选

客户下单门店
样例 : IdName

orig_total
可选

订单原金额(优惠之前)
样例 : 120.01

number

package_discount
可选

包装优惠金额
样例 : 33.33

number

package_info
可选

订单打包信息
样例 : OrderPackageInfo

payment
必填

支付信息
样例 : Payment

performance_service_fee
可选

履约服务费
样例 : 120.01

number

pick_info
可选

订单拣货信息
样例 : OrderPickInfo

print_bills
可选

打印单据
样例 : [ "PrintBill" ]

< PrintBill > array

promotion
可选

订单促销
样例 : OrderPromotion

quotas
可选

订单指标
样例 : [ "OrderQuota" ]

< OrderQuota > array

real_total
必填

实际销售商品金额(扣除所有优惠),等于items中pay_amount之和,不包含运费等其他费用,系统会自动重算
样例 : 120.01

number

reason
可选

黑名单原因
样例 : "黑子"

string

reissue_reason
可选

补发原因
样例 : "string"

string

responsible_party
可选

补发责任方
样例 : "string"

string

sale_order_id
可选

销售订单号
样例 : "string"

string

salesman
可选

推销员
样例 : SalesmanInfo

seller_note
可选

商家备注
样例 : "note"

string

selttle_commission
可选

平台佣金 ,弃用,请使用settle_commission
样例 : 120.01

number

settle_amount
可选

平台的结算金额,平台结算金额=客户实付金额+平台优惠补贴, 为空等于amount
样例 : 120.01

number

settle_commission
可选

平台佣金,平台服务费+履约服务费等服务费用
样例 : 120.01

number

settle_freight
可选

平台结算运费
样例 : 120.01

number

settle_info
可选

对账信息
样例 : OrderSettleInfo

settle_unit
可选

结算单位
样例 : SettleUnit

shipping_voucher_urls
可选

上传凭证的url
样例 : [ "string" ]

< string > array

shop
必填

平台商家,平台侧的商家,非门店
样例 : IdName

shop_amount
可选

商品货款金额=商品原金额-商家商品优惠金额
样例 : 120.01

number

sku_quantity
必填

商品总数
样例 : 1.0

number

source
可选

来源
样例 : "小程序"

string

source_order_id
可选

来源订单号
样例 : "5346567534545645"

string

state
可选

订单状态,新建可不填,默认取值为:confirmed。取值范围:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering( 配送中)、delivered(配送完成)、canceled(已取消)
样例 : "confirmed"

enum (confirmed, prepared, approved, delivering, delivered, canceled)

suspend_info
可选

挂起信息
样例 : SuspendInfo

tags
可选

订单标签
样例 : [ "OrderTag" ]

< OrderTag > array

user_number
可选

使用人数,餐具数量
样例 : 2

integer (int32)

waybill_id
可选

运单号
样例 : "32332"

string

weight
可选

订单重量,单位:g
样例 : 500.0

number

wish_info
可选

祝福信息
样例 : WishInfo

wrh_id
可选

发货仓库编号
样例 : "4184"

string

wrh_state
可选

仓库状态
样例 : "initial"

enum (initial, notified, applyKickBack, shipped)

2.41. OrderApplyRtnRequest

订单申请退款

名称 说明 类型

apply_type
可选

申请类型:weight_diff(缺重退差),stock_none(缺货退款),amount(按金额退,补差),part(部分退),all(整单退),freight(仅退运费)
样例 : "weight_diff"

string

approve_state
必填

审批状态,取值范围:none(未审核),serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝)
样例 : "none"

enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse)

freight
可选

运费
样例 : 1.23

number

front_app
可选

平台应用
样例 : IdName

items
必填

申请明细
样例 : [ "OrderItemRtnApply" ]

< OrderItemRtnApply > array

policy
可选

策略
样例 : "取值:orig_sku(原商品)、sku(现商品)"

string

reason
可选

原因
样例 : "不想要了"

string

return_delivery
可选

样例 : ApplyRtnDelivery

rtn_id
可选

退单号
样例 : "54132321623"

string

type
可选

退货单类型,取值范围:refund(仅退款)、refundAndRtn(退款退货)
样例 : "refund"

enum (refund, refundAndRtn)

2.42. OrderApplyRtnResponse

名称 说明 类型

apply_id
可选

申请ID
样例 : "申请幂等ID"

string

apply_ids
可选

多个申请ID
样例 : "多个申请幂等ID"

< string > array

code
可选

样例 : "string"

string

message
可选

样例 : "string"

string

success
可选

默认值 : false
样例 : true

boolean

2.43. OrderCheckItem

订单检查商品行

名称 说明 类型

item_no
可选

订单行号
样例 : "1"

string

item_title
可选

商品标题
样例 : "葡萄"

string

pay_amount
必填

实付金额
样例 : 2.0

number

quantity
必填

数量
样例 : 1.0

number

sku_id
可选

商品标识(货号)
样例 : "00321"

string

total
必填

商品金额,等于unit_price * quantity
样例 : 2.0

number

unit_price
必填

商品销售价格(扣除优惠券前的价格)
样例 : 2.0

number

2.44. OrderCheckRequest

订单检测请求

名称 说明 类型

amount
可选

总金额
样例 : 10.0

number

carrier_id
可选

指定承运商ID
样例 : "meituan"

string

expect_delivery_time
可选

期望送达时间
样例 : "2022-03-02 14:00:01"

string (date-time)

items
可选

商品明细
样例 : "[]"

< OrderCheckItem > array

order_id
可选

订单号
样例 : "121212"

string

platform_id
可选

下单平台ID
样例 : "jdo2o"

string

pre_type
可选

订单预约类型:normal:正常,dsd:定时达,half_day:半日达
样例 : "normal"

string

receiver_address
可选

收货地址
样例 : Address

receiver_contact
可选

收货联系方式
样例 : 联系方式(soms)

ship_mode
可选

发货方式,wrhShip(仓库发货),stationShip(门店发货)
样例 : "stationShip"

string

sku_quantity
可选

总数量
样例 : 10.0

number

station
可选

配送站点:门店代码、门店名称
样例 : IdName

type
必填

检测类型:addresscheck(地址检测),deliverycheck(配送检测),deliverycalc(配送计算)
样例 : "deliverycheck"

string

weight
可选

订单商品总重量,单位:克
样例 : 10.0

number

2.45. OrderCheckResponse

名称 说明 类型

code
可选

样例 : "string"

string

delivery_mins
可选

配送时长,单位分钟
样例 : 10.0

number

distance
可选

送货距离,单位米
样例 : 1000.0

number

freight
可选

送货运费,单位元
样例 : 10.0

number

message
可选

样例 : "string"

string

pre_delivery_slots
可选

可选预计送达时间段
样例 : [ "OrderPreSlot" ]

< OrderPreSlot > array

pre_delivery_time
可选

预计送达时间
样例 : "2022-06-30 12:00:00 或者 2022-06-30"

string

success
可选

默认值 : false
样例 : true

boolean

suggest_carrier
可选

建议承运商
样例 : IdName

2.46. OrderException

名称 说明 类型

caption
可选

异常标题
样例 : "商品异常"

string

code
可选

异常代码
样例 : "sku"

string

operator
可选

操作人
样例 : "zuhu"

string

order_id
可选

订单号
样例 : "123456"

string

remark
可选

异常说明
样例 : "商品异常"

string

time
可选

异常时间
样例 : "2017-12-26 16:40:19"

string (date-time)

2.47. OrderFilter

订单过滤器

名称 说明 类型

address_contains
可选

地址包含
样例 : "福建省"

string

allow_pick_start_time_end
可选

允许拣货的开始时间
样例 : "2020-06-17 10:00:00"

string (date-time)

app_id_eq
可选

平台应用代码等于
样例 : "3232323"

string

approve_states
可选

审核状态,取值:none(未审核)、serviceApproved(客服已审核)、financeApproved(财务已审核)、warehouseApproved(物流已审核)、carrierApproved(承运商已审核)
样例 : [ "none" ]

< enum (none, serviceApproved, financeApproved, warehouseApproved, carrierApproved) > array

bill_id_eq
可选

凭证单号等于
样例 : "3232323"

string

bill_id_like
可选

凭证单号类似
样例 : "32323"

string

cancel_type
可选

取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消)
样例 : "customerCancel"

string

carrier_id
可选

承运商号
样例 : "0003"

string

carrier_proxy_platform_eq
可选

承运代理平台等于
样例 : "string"

string

carrier_states
可选

承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消)
样例 : [ "initial" ]

< enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled) > array

carrier_types
可选

承运类型,取值范围:self(商家自送)、thirdparty(平台配送)、express(物流配送)
样例 : [ "self" ]

< enum (self, thirdparty, express) > array

created_end
可选

创建结束时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

created_start
可选

创建起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

custom_order_state
可选

自定义订单状态
样例 : [ "string" ]

< string > array

customer_id
可选

客户代码
样例 : "8568"

string

customer_mobile
可选

客户手机号,模糊查询
样例 : "18896551546"

string

customer_mobile_end_with
可选

顾客手机号码截止于
样例 : "5554"

string

customer_name
可选

客户姓名
样例 : "张三"

string

deliver_shipped_operator
可选

发货人
样例 : "rs"

string

delivered_time_end
可选

妥投结束时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

delivered_time_start
可选

妥投起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

delivering_time_end
可选

发货起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

delivering_time_start
可选

发货起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

delivery_id
可选

配送ID
样例 : "111"

string

delivery_states
可选

配送状态,取值:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投)
样例 : [ "none" ]

< enum (none, shipped, signed, refused, redeliver) > array

delivery_types
可选

配送类型,取值:selftake(到店自提)、deliver(送货上门)
样例 : [ "selftake" ]

< enum (selftake, deliver) > array

deliveryman_name
可选

配送人姓名
样例 : "张三"

string

exception_code_contains
可选

异常代码
样例 : "false"

string

fornt_order_type_id
可选

平台订单类型
样例 : "string"

string

front_created_end
可选

下单时间终止时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

front_created_start
可选

下单时间起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

front_main_order_id_eq
可选

平台主订单号等于
样例 : "1223432"

string

front_main_order_id_in
可选

平台主订单号在……之中
样例 : "['123','456']"

< string > array

front_main_order_id_start_with
可选

平台主订单号起始于
样例 : "1223432"

string

front_order_id
可选

平台订单号
样例 : "32323232323323"

string

front_order_id_prefix
可选

平台订单号起始搜索
样例 : "32323232323323"

string

front_order_ids
可选

平台订单号
样例 : "32323232323323"

< string > array

front_sku_id
可选

平台商品编码,查询订单明细时才有用
样例 : "string"

string

front_station_id_in
可选

平台门店ID在…范围内
样例 : [ "string" ]

< string > array

front_station_order_no_eq
可选

平台门店订单序号等于
样例 : "string"

string

handover_operator
可选

交接人
样例 : "张三"

string

hasInvoice
可选

是否拥有发票
默认值 : false
样例 : false

boolean

has_billing
可选

是否有凭证信息,false搜索没有、true搜索有
默认值 : false
样例 : true

boolean

has_customer_note
可选

是否有顾客信息,false搜索没有、true搜索有
默认值 : false
样例 : true

boolean

has_delivery_exception
可选

是否配送异常
默认值 : false
样例 : true

boolean

has_exception
可选

是否异常
默认值 : false
样例 : false

boolean

have_return
可选

存在退货但未签收
默认值 : false
样例 : true

boolean

index_modified_end
可选

索引最后修改时间结束于,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

index_modified_start
可选

索引最后修改时间起始于,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

invalid
可选

是否无效订单
默认值 : false
样例 : false

boolean

member_mobile_eq
可选

会员电话等于
样例 : "string"

string

member_mobile_or_mobile_eq
可选

会员电话或者收货人手机号等于
样例 : "string"

string

modified_end
可选

修改结束时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

modified_start
可选

修改起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

operation_handover_time_end
可选

交接终止时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

operation_handover_time_start
可选

交接起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

operation_shipping_time_end
可选

集货终止时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

operation_shipping_time_start
可选

集货起始时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2016-03-02 12:00:01"

string (date-time)

operation_state
可选

门店作业状态,取值范围:none(空)、shipping(已集货)、handover(已交接)
样例 : "none"

string

operation_states
可选

门店作业状态,取值范围:none(空)、shipping(已集货)、handover(已交接)
样例 : "[none,shipping]"

< string > array

order_id
可选

订单号
样例 : "1000002111"

string

order_id_or_front_station_order_no_eq
可选

订单id或平台门店订单序号等于
样例 : "string"

string

order_ids
可选

订单号
样例 : [ "string" ]

< string > array

payment_out_pay_id
可选

第三方支付流水号(商户订单号)
样例 : "string"

string

payment_states
可选

付款状态,取值范围:notPay(未付款)、earnest(已付定金)、paid(已付全款)
样例 : [ "notPay" ]

< enum (notPay, earnest, paid) > array

payment_types
可选

付款类型,取值范围:cod(货到付款)、online(在线支付)、earnest(预售)
样例 : [ "cod" ]

< enum (cod, online, earnest) > array

pick_info_is_auto_picked_finish
可选

订单拣货信息-是否自动拣货完成
默认值 : false
样例 : true

boolean

pick_info_operator_id_eq
可选

订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单
样例 : "string"

string

pick_info_operator_id_in
可选

订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单
样例 : [ "string" ]

< string > array

pick_info_operator_name_like
可选

订单拣货信息-拣货员名称
样例 : "string"

string

pick_info_source_eq
可选

订单拣货信息-记录来源
样例 : "string"

string

pick_info_time_end
可选

订单拣货信息-拣货时间
样例 : "2020-06-17 10:00:00"

string (date-time)

pick_info_time_start
可选

订单拣货信息-拣货时间
样例 : "2020-06-17 10:00:00"

string (date-time)

platform_id
可选

平台ID
样例 : "jdo2o"

string

platform_ids
可选

平台ID
样例 : [ "string" ]

< string > array

prePage
可选

上一页
样例 : 0

integer (int32)

pre_end_delivery_time_end
可选

预计送达结束时间end,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2020-06-17 10:00:00"

string (date-time)

pre_end_delivery_time_start
可选

预计送达开始时间start,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2020-06-17 10:00:00"

string (date-time)

pre_start_delivery_time_end
可选

预计送达开始时间end,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2020-06-17 10:00:00"

string (date-time)

pre_start_delivery_time_start
可选

预计送达开始时间start,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2020-06-17 10:00:00"

string (date-time)

pre_type
可选

预处理类型:normal:正常,dsd:定时达
样例 : "normal"

string

product_contains
可选

商品包括
样例 : "sku1111"

string

prom_id
可选

优惠ID等于
样例 : "string"

string

prom_id_in
可选

优惠ID在……之中
样例 : [ "string" ]

< string > array

prom_key
可选

优惠Key等于
样例 : "string"

string

prom_key_in
可选

优惠Key在……之中
样例 : [ "string" ]

< string > array

prom_name_like
可选

优惠名称类似于
样例 : "string"

string

receiver_mobile
可选

收货人手机号码,起始于
样例 : "18857485554"

string

receiver_mobile_end_with
可选

收货人手机号码截止于
样例 : "5554"

string

receiver_mobile_like
可选

收货人手机号码模糊搜索
样例 : "5554"

string

receiver_name
可选

收货人
样例 : "张三"

string

receiver_private_mobile_end_with
可选

收货人隐私号结束于
样例 : "string"

string

refund_state
可选

退款状态,取值范围:none(未退款)、refunded(已退款)
样例 : "none"

string

salesman_id_eq
可选

分销员代码等于
样例 : "3232323"

string

selftake_code
可选

提货码
样例 : "123456"

string

ship_mode
可选

发货方式,wrhShip(仓库发货),stationShip(门店发货),vendorShip(供应商发货)
样例 : "string"

string

shipping_operator
可选

集货人
样例 : "张三"

string

shop_id
可选

商家ID
样例 : "0002"

string

sku_id
可选

商品编码
样例 : "string"

string

sku_id_in
可选

订单明细货号在……之中,最多指定100个货号
样例 : "[\"sku1\", \"sku2\"]"

< string > array

sku_title
可选

商品标题
样例 : "冰红茶"

string

source
可选

订单来源
样例 : "小程序"

string

source_order_id_eq
可选

源订单号等于
样例 : "213"

string

source_order_id_in
可选

源订单号集合
样例 : [ "string" ]

< string > array

states
可选

订单状态,取值:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering(配送中)、delivered(配送完成)、canceled(已取消)
样例 : [ "confirmed" ]

< enum (confirmed, prepared, approved, delivering, delivered, canceled) > array

station_ids
可选

门店ID
样例 : [ "string" ]

< string > array

suspended
可选

是否挂起
默认值 : false
样例 : true

boolean

type_eq
可选

订单类型
样例 : "拼团订单"

string

vendor_code_eq
可选

供应商代码等于
样例 : "3232323"

string

vendor_code_in
可选

供应商代码集合
样例 : "3232323"

< string > array

vendor_code_start_with
可选

供应商代码起始于
样例 : "3232323"

string

waybill_id
可选

运单号
样例 : "0003"

string

wrh_id_in
可选

发货仓库ID集合
样例 : "3232323"

< string > array

wrh_id_start_with
可选

发货仓库ID起始于
样例 : "3232323"

string

2.48. OrderInvoiceRequest

发票更新请求对象

名称 说明 类型

invoice
可选

发票信息
样例 : Invoice

2.49. OrderInvoiceResultRequest

发票结果更新请求对象

名称 说明 类型

apply_qrcode
可选

开票二维码
样例 : "string"

string

error_reason
可选

开票失败原因
样例 : "系统异常"

string

result
必填

开票结果:开票成功、开票失败
样例 : "开票成功"

string

serial_no
可选

流水号
样例 : "45546454454"

string

time
可选

开票日期
样例 : "2019-07-15 16:56:23"

string (date-time)

url
可选

电子发票图片地址
样例 : "a.jpg"

string

2.50. OrderItem

商品行

名称 说明 类型

apported_discount_amount
必填

整单优惠分摊金额,如:订单满减,整单分摊到明细
样例 : 12.02

number

barcode
可选

商品条码
样例 : "123456"

string

consume_scores
可选

消费积分
样例 : 12.2

number

cost_price
可选

成本价
样例 : 122.34

number

details
可选

原料商品明细
样例 : [ "OrderItemDetail" ]

< OrderItemDetail > array

discount_amount
必填

商品优惠金额,如:商品立减优惠
样例 : 12.02

number

extra_info
可选

扩展信息,json格式。美团拼好饭加价金额(singleIncreasePrice)、如果存在 inv_mgr = false 的话,表示该商品为非库存管理商品
样例 : "{\"inv_mgr\": false}"

string

fault_tolerant_info
可选

容错信息,json字符串
样例 : "string"

string

front
可选

前端商品信息
样例 : FrontItem

image_url
可选

商品图片信息
样例 : "http://aaa/bbb.png"

string

is_collocation
可选

是否搭配商品(加料),如奶茶+珍珠,珍珠是奶茶的加料商品
默认值 : false
样例 : false

boolean

is_gift
可选

默认值 : false
样例 : true

boolean

item_id
可选

订单商品行唯一标识
样例 : "1"

string

item_no
可选

订单行号
样例 : "1"

string

item_title
可选

商品标题
样例 : "葡萄"

string

orig_barcode
可选

转换前商品条码
样例 : "1212"

string

orig_extra_info
可选

原商品行扩展信息
样例 : OrigExtraInfo

orig_image_url
可选

转换前商品图片信息
样例 : "string"

string

orig_item
可选

定制:订单原商品信息,用于多规格、组合商品场景,记录用户下单时的商品信息
样例 : OrderOrigItem

orig_item_title
可选

转换前的商品名称:用于多规格、组合商品转换标品场景
样例 : "【组合】洗护套装"

string

orig_mas_sku_id
可选

样例 : "string"

string

orig_price
可选

转换前的商品售价:用于多规格、组合商品转换标品场景
样例 : 122.22

number

orig_qty
可选

转换前的商品数量:用于多规格、组合商品转换标品场景
样例 : 2.0

number

orig_sku_id
可选

转换前的货号:用于多规格转换场景
样例 : "121212"

string

orig_weight
可选

转换前商品重量,单位g
样例 : 1.0

number

package_info
可选

商品打包信息
样例 : PackageInfo

package_qty
可选

包装盒数量
样例 : 125.0

number

package_total
可选

包装费用
样例 : 205.44

number

pay_amount
必填

实付金额,等于total - apported_discount_amount - discount_amount
样例 : 2.0

number

price
可选

售价(促销价),为空等于pay_amount/quantity
样例 : 122.34

number

product_id
可选

商品代码
样例 : "2123"

string

promotion
可选

商品促销
样例 : ItemPromotion

purchase_price
可选

采购价
样例 : 2.0

number

quantity
必填

数量
样例 : 1.0

number

real_quantity
可选

实际拣货商品数量
样例 : 0.0

number

real_weight
可选

实际称重,明细总重量,单位g
样例 : 0.0

number

relation_item_id
可选

关联商品行号,如奶茶+珍珠,记录关联的奶茶的item_id
样例 : "2123"

string

relation_sku_id
可选

关联商品货号,如奶茶+珍珠,记录关联的奶茶的sku_id
样例 : "2123"

string

salesman
可选

推销员
样例 : IdName

service_options
可选

服务项目, 多个项目以/分隔显示
样例 : "清洁/杀菌"

string

settle_discountAmount
可选

平台优惠金额
样例 : 122.22

number

settle_price
可选

平台结算价格,为空等于售价
样例 : 122.2222

number

settle_total
可选

平台结算金额
样例 : 122.22

number

shop_price
可选

商家货款价格
样例 : 122.22

number

shop_total
可选

商家货款金额=商品原金额-商家商品优惠
样例 : 122.22

number

sku_id
必填

商品标识(货号)
样例 : "00321"

string

spec
可选

商品规格
样例 : "1*1"

string

tags
可选

标签
样例 : "标签"

< OrderItemTag > array

total
必填

商品金额,等于unit_price * quantity
样例 : 2.0

number

trace_code_details
可选

溯源码明细,与traceCodes(溯源码)字段相比,二者不能同时使用,优先使用traceCodeDetails,traceCodeDetails无值,在使用traceCodes
样例 : [ "OrderItemTraceCodeDetail" ]

trace_codes
可选

溯源码
样例 : [ "string" ]

< string > array

unit
可选

单位:个、份等
样例 : "瓶"

string

unit_price
必填

商品销售价格(扣除优惠券前的价格)
样例 : 2.0

number

uuid
可选

样例 : "string"

string

weight
必填

单个商品重量,单位g
样例 : 1.0

number

2.51. OrderItemChange

换货明细

名称 说明 类型

change_items
可选

目标商品行
样例 : [ "OrderItem" ]

< OrderItem > array

created
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

creator
可选

样例 : "string"

string

items
可选

来源商品行
样例 : [ "OrderItem" ]

< OrderItem > array

modified
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

modifier
可选

样例 : "string"

string

reason
可选

原因
样例 : "string"

string

2.52. OrderItemChangeRecord

商品换货

名称 说明 类型

reason
可选

原因
样例 : "商品有误"

string

source_items
必填

来源商品明细
样例 : [ "ChangeItem" ]

< ChangeItem > array

target_items
必填

目标商品明细
样例 : [ "ChangeTargetItem" ]

< ChangeTargetItem > array

2.53. OrderItemChangeRequest

商品换货请求对象

名称 说明 类型

changes
必填

换货商品请求列表
样例 : [ "OrderItemChangeRecord" ]

items
必填

换货后的结果订单明细
样例 : [ "ChangeTargetItem" ]

< ChangeTargetItem > array

need_apportion_amount
可选

是否分摊反算金额,默认是(历史逻辑)
默认值 : false
样例 : true

boolean

2.54. OrderItemDetail

原料商品信息

名称 说明 类型

fault_tolerant_info
可选

容错信息,json字符串
样例 : "string"

string

front_spec
可选

平台属性
样例 : "辣"

string

id
必填

原料商品货号
样例 : "121212"

string

package_info
可选

包装信息
样例 : PackageInfo

quantity
必填

需要原料商品数量,C=2A+3B,原料商品数量=组合商品数量*基数,2C时,A:2*2,B:2*3
样例 : 4.0

number

ratio
必填

原料商品基数,C=2A+3B,A:2,B:3
样例 : 3.0

number

real_quantity
可选

实际拣货商品数量
样例 : 0.0

number

title
必填

名称
样例 : "矿泉水"

string

trace_code_details
可选

溯源码明细,与traceCodes(溯源码)字段相比,二者不能同时使用,优先使用traceCodeDetails,traceCodeDetails无值,在使用traceCodes
样例 : [ "OrderItemTraceCodeDetail" ]

trace_codes
可选

溯源码
样例 : [ "string" ]

< string > array

2.55. OrderItemDetailTraceCodeUpdate

原料明细溯源码更新

名称 说明 类型

id
可选

原料ID
样例 : "string"

string

trace_code_details
可选

溯源码明细,如果同时传了trace_codes(溯源码),优先使用trace_code_details
样例 : [ "OrderItemTraceCodeDetail" ]

trace_codes
可选

溯源码,不建议使用,trace_code_details为空时才使用此字段
样例 : [ "string" ]

< string > array

2.56. OrderItemLogistics

订单明细物流信息

名称 说明 类型

logistics_code
可选

样例 : "string"

string

qty
可选

样例 : 0.0

number

sku_id
可选

样例 : "string"

string

2.57. OrderItemRtnApply

退款申请明细对象

名称 说明 类型

item_no
可选

订单行号
样例 : "1"

string

quantity
可选

数量
样例 : 1.0

number

real_total_weight
可选

实拣总重量,单位g
样例 : 1.0

number

refund_amount
可选

退款金额
样例 : 12.03

number

sku_id
必填

商品标识
样例 : "2123"

string

weight
可选

缺重重量,单位g
样例 : 1.0

number

weights
可选

缺重重量详情,多个数量不同缺重时使用,单位g
样例 : "1"

< number > array

2.58. OrderItemTag

订单明细标签

名称 说明 类型

name
可选

标签名称
样例 : "盲盒"

string

2.59. OrderItemTraceCodeDetail

溯源码

名称 说明 类型

barcode
可选

条码
样例 : "123"

string

batch_no
可选

批号
样例 : "string"

string

code
可选

溯源码
样例 : "string"

string

production_date
可选

生产日期
样例 : "2020-06-17 10:00:00"

string (date-time)

qpc_str
可选

规格
样例 : "string"

string

qty
可选

数量
样例 : 0.0

number

type
可选

类型,默认是normal
样例 : "normal(普通),expDate(效期)"

string

valid_date
可选

有效期
样例 : "2020-06-17 10:00:00"

string (date-time)

2.60. OrderItemTraceCodeUpdate

订单明细溯源码更新

名称 说明 类型

details
可选

原料明细详情
样例 : [ "OrderItemDetailTraceCodeUpdate" ]

item_no
可选

明细行号
样例 : "string"

string

sku_id
可选

货号ID
样例 : "string"

string

trace_code_details
可选

溯源码明细,如果同时传了trace_codes(溯源码),优先使用trace_code_details
样例 : [ "OrderItemTraceCodeDetail" ]

trace_codes
可选

溯源码,不建议使用,trace_code_details为空时才使用此字段
样例 : [ "string" ]

< string > array

2.61. OrderKdTrace

订单快递跟踪

名称 说明 类型

carrier
可选

承运商
样例 : IdName

code
可选

样例 : "string"

string

details
可选

订单快递跟踪详情
样例 : [ "OrderKdTraceDetail" ]

< OrderKdTraceDetail > array

message
可选

样例 : "string"

string

state
可选

承运状态:initial(初始状态)、created(已下单)、 dispatched(已派单)、createdFailed(下单失败)、pickup(已揽件)、pickupFailed(揽件失败)、 delivering(配送中)、delivered(配送完成)、canceled(已取消)
样例 : "canceled"

enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled)

success
可选

默认值 : false
样例 : true

boolean

waybill_id
可选

快递单号
样例 : "213232"

string

2.62. OrderKdTraceDetail

订单快递跟踪详情

名称 说明 类型

address
可选

地点
样例 : "福建,厦门市"

string

message
可选

内容
样例 : "顺丰速运 已收取快件"

string

status
可选

状态
样例 : "在途"

string

time
可选

时间
样例 : "2022-04-07 08:39:07"

string (date-time)

2.63. OrderList

订单集合对象

名称 说明 类型

empty
可选

默认值 : false
样例 : true

boolean

orders
可选

订单列表
样例 : [ "Order" ]

< Order > array

2.64. OrderLog

订单日志

名称 说明 类型

action
可选

操作
样例 : "modify"

string

action_caption
可选

操作标题
样例 : "修改订单"

string

message
可选

操作说明
样例 : "修改订单商品明细"

string

operator
可选

操作人
样例 : "zuhu"

string

order_id
可选

订单号
样例 : "321212222"

string

rtn_id
可选

退换货单号
样例 : "212123333"

string

tenant_id
可选

租户ID
样例 : "zuhu"

string

time
可选

操作时间
样例 : "2017-12-26 16:40:19"

string (date-time)

2.65. OrderOrigItem

原商品行信息

名称 说明 类型

barcode
可选

转换前条码
样例 : "121221"

string

combined_id
可选

如果是组合商品,需要传组合标识ID,可以用组合商品ID作为标识
样例 : "121221"

string

image_url
可选

转换前图片地址
样例 : "string"

string

item_title
可选

转换前的商品名称:用于多规格、组合商品转换标品场景
样例 : "【组合】洗护套装"

string

price
可选

转换前的商品售价:用于多规格、组合商品转换标品场景
样例 : 33.22

number

quantity
可选

转换前的商品数量:用于多规格、组合商品转换标品场景
样例 : 3.0

number

sku_id
可选

转换前的货号:用于多规格、组合商品转换标品场景
样例 : "121221"

string

type
可选

类型,多规格multi、组合combined
样例 : "multi"

string

weight
可选

重量
样例 : 0.0

number

2.66. OrderPackageInfo

订单打包信息

名称 说明 类型

details
可选

包装明细
样例 : "[]"

< PackageDetail > array

package_type
可选

指定打包袋类型:保温袋、纸袋、PLA环保袋
样例 : "保温袋"

string

required
可选

是否需要打包袋
默认值 : false
样例 : false

boolean

type
可选

单据类型
样例 : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)"

string

2.67. OrderPaging

订单分页对象

名称 说明 类型

orders
可选

订单列表
样例 : [ "Order" ]

< Order > array

page
可选

页码
样例 : 1

integer (int32)

page_count
可选

总页数
样例 : 5

integer (int32)

page_size
可选

分页大小
样例 : 20

integer (int32)

total
可选

总条数
样例 : 100

integer (int64)

2.68. OrderPickInfo

名称 说明 类型

allow_pick_start_time
可选

允许拣货的开始时间
样例 : "2020-06-17 10:00:00"

string (date-time)

auto_picked_finish
可选

自动拣货完成
默认值 : false
样例 : true

boolean

operator_id
可选

拣货员ID
样例 : "string"

string

operator_name
可选

拣货员名称
样例 : "string"

string

source
可选

记录来源
样例 : "string"

string

time
可选

拣货时间
样例 : "2020-06-17 10:00:00"

string (date-time)

2.69. OrderPreSlot

订单预计送达信息

名称 说明 类型

pre_date
可选

预计送达日期
样例 : "今天(周三)"

string

pre_ends
可选

预计送达时间
样例 : "[\"立即送出\",\"12:00\",\"13:00\"]"

< string > array

2.70. OrderPromotion

订单优惠

名称 说明 类型

favs
可选

优惠详情
样例 : [ "FavDetail" ]

< FavDetail > array

2.71. OrderQuota

订单指标

名称 说明 类型

action
可选

操作:expect_shipping
样例 : "expect_shipping"

string

action_name
可选

操作名称:期望拣货完成时间
样例 : "期望拣货完成时间"

string

remark
可选

备注
样例 : "无"

string

time
可选

日期
样例 : "2021-09-26 16:40:19"

string (date-time)

2.72. OrderReissueRequest

订单补发请求

名称 说明 类型

receiver
可选

收货信息
样例 : Receiver

reissue_order_items
必填

补发商品明细
样例 : [ "ReissueOrderItem" ]

< ReissueOrderItem > array

reissue_reason
可选

补发原因
样例 : "弄丢了"

string

responsible_party
必填

责任方,carrier代表承运商责任
样例 : "carrier"

string

seller_note
可选

备注说明
样例 : "商家备注"

string

source_order_id
必填

来源订单号
样例 : "121212"

string

2.73. OrderReissueResponse

补发订单响应

名称 说明 类型

code
可选

样例 : "string"

string

message
可选

样例 : "string"

string

order_id
可选

样例 : "string"

string

success
可选

默认值 : false
样例 : true

boolean

2.74. OrderRemind

名称 说明 类型

count
可选

平台催单次数
样例 : 1

integer (int32)

created
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

creator
可选

样例 : "string"

string

front_remind_id
可选

平台催单Id
样例 : "很好"

string

modified
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

modifier
可选

样例 : "string"

string

order_id
可选

订单ID
样例 : "202012021621"

string

platform_id
可选

平台ID
样例 : "jdo2o"

string

remind_id
可选

催单Id
样例 : "很好"

string

reply_content
可选

回复内容
样例 : "string"

string

reply_operator
可选

回复人
样例 : "string"

string

reply_state
可选

回复状态,未回复、已回复、已失效
样例 : "string"

string

reply_time
可选

回复时间
样例 : "2020-06-17 10:00:00"

string (date-time)

shop_id
可选

店铺ID
样例 : "jdo2o"

string

store
可选

门店
样例 : IdName

time
可选

催单时间
样例 : "2020-12-02 00:00:00"

string (date-time)

2.75. OrderRemindFilter

名称 说明 类型

id_eq
可选

id等于
样例 : "123"

string

id_in
可选

idIn
样例 : [ "string" ]

< string > array

order_id_eq
可选

订单Id等于
样例 : "123465"

string

order_id_in
可选

订单IdIn
样例 : [ "string" ]

< string > array

platform_id_eq
可选

平台Id等于
样例 : "meituan"

string

reply_state_eq
可选

回复状态
样例 : "none(未回复)、replied(已回复)、invalid(失效)"

string

store_id_eq
可选

门店Id等于
样例 : "0001"

string

2.76. OrderRemindPaging

催单分页对象

名称 说明 类型

page
可选

页码
样例 : 1

integer (int32)

page_count
可选

总页数
样例 : 5

integer (int32)

page_size
可选

分页大小
样例 : 20

integer (int32)

reminds
可选

订单列表
样例 : [ "OrderRemind" ]

< OrderRemind > array

total
可选

总条数
样例 : 100

integer (int64)

2.77. OrderSelftakeCheckRequest

自提检查请求对象

名称 说明 类型

front_order_id
可选

平台订单号
样例 : "5745323545453"

string

platform_id
可选

平台ID
样例 : "youzan"

string

selftake_code
必填

自提码
样例 : "123456"

string

selftake_qrcode
必填

自提二维码
样例 : "123456"

string

store_id
必填

门店ID
样例 : "232434"

string

2.78. OrderSelftakeCheckResponse

自提检查返回结果对象

名称 说明 类型

code
可选

样例 : "string"

string

message
可选

样例 : "string"

string

order_id
可选

订单号
样例 : "5745323545453"

string

success
可选

默认值 : false
样例 : true

boolean

2.79. OrderSelftakeRequest

自提请求对象

名称 说明 类型

selftake_qrcode
可选

自提二维码(订单号和自提二维码不能同时为空)
样例 : "222222"

string

store_id
可选

门店ID
样例 : "454534"

string

2.80. OrderSelftakeV2Request

自提请求对象

名称 说明 类型

order_id
可选

订单号(订单号和自提二维码不能同时为空)
样例 : "12345"

string

platform_id
可选

平台ID(自提二维码不为空时必填)
样例 : "be.eleme"

string

selftake_qrcode
可选

自提二维码(订单号和自提二维码不能同时为空)
样例 : "222222"

string

store_id
可选

门店ID
样例 : "454534"

string

2.81. OrderSelftakeV2Response

自提请求响应

名称 说明 类型

code
可选

样例 : "string"

string

message
可选

样例 : "string"

string

order_id
可选

订单号
样例 : "5745323545453"

string

success
可选

默认值 : false
样例 : true

boolean

2.82. OrderSettleDiscount

对账优惠信息

名称 说明 类型

amount
可选

优惠金额
样例 : 1.0

number

details
可选

优惠结算详情
样例 : "[]"

scope
可选

优惠范围
样例 : "order(订单)、item(商品)、package(包装)、freight(运费)"

string

2.83. OrderSettleInfo

对账信息

名称 说明 类型

discounts
可选

优惠结算明细
样例 : "[{}]"

settlable
可选

是否可结算
默认值 : false
样例 : true

boolean

settle_date
可选

账单日期
样例 : "2022-08-25 00:00:00"

string (date-time)

station_settle_mode
可选

门店分账模式:online(线上分账模式)、offline(线下分账模式)
样例 : "online"

string

2.84. OrderStoreMod

订单下单门店

名称 说明 类型

order_id
可选

订单号
样例 : "1212"

string

order_store
可选

下单门店
样例 : IdName

2.85. OrderStoreModError

修改订单下单门店失败明细

名称 说明 类型

id
可选

订单号
样例 : "1212"

string

message
可选

原因
样例 : "订单不存在"

string

2.86. OrderStoreModRequest

修改订单下单门店

名称 说明 类型

mods
可选

订单修改列表,一次修改记录不能超过100
样例 : [ "OrderStoreMod" ]

< OrderStoreMod > array

2.87. OrderStoreModResponse

修改订单下单门店响应

名称 说明 类型

code
可选

样例 : "string"

string

errors
可选

失败明细,如果sucess=false,errors为空表示整体失败,否则errors记录具体失败明细
样例 : [ "OrderStoreModError" ]

< OrderStoreModError > array

message
可选

样例 : "string"

string

success
可选

默认值 : false
样例 : true

boolean

2.88. OrderSubmitResponse

订单新建响应

名称 说明 类型

code
可选

样例 : "string"

string

message
可选

样例 : "string"

string

order_id
可选

样例 : "string"

string

success
可选

默认值 : false
样例 : true

boolean

2.89. OrderTag

订单

名称 说明 类型

name
可选

标签名称
样例 : "首单"

string

2.90. OrderTraceCodeUpdateRequest

修改订单的溯源码信息

名称 说明 类型

items
可选

备货订单明细
样例 : [ "OrderItemTraceCodeUpdate" ]

2.91. OrigExtraInfo

原商品行扩展信息

名称 说明 类型

spec
可选

规格
样例 : "1*1"

string

unit
可选

规格单位
样例 : "个"

string

2.92. PackageDetail

打包商品明细

名称 说明 类型

amount
可选

打包袋金额
样例 : 1.0

number

qty
可选

打包袋数量
样例 : 1.0

number

sku_id
可选

打包袋ID
样例 : "213323232"

string

sku_name
可选

打包袋名称
样例 : "213323232"

string

2.93. PackageInfo

商品打包信息

名称 说明 类型

packageName
可选

打包袋名称
样例 : "保温袋"

string

quantity
可选

包装盒数量
样例 : 125.0

number

thermosphere
可选

温层
样例 : "string"

string

total
可选

包装费用
样例 : 205.44

number

2.94. PayRequest

支付请求对象

名称 说明 类型

details
可选

支付方式详情
样例 : [ "PaymentDetail" ]

< PaymentDetail > array

pay_bill_id
可选

支付账单号
样例 : "123434354"

string

pay_state
可选

付款状态:notPay(未付款)、earnest(已付定金)、paid(已付全款)
样例 : "paid"

enum (notPay, earnest, paid)

pay_time
可选

付款时间
样例 : "2019-12-12 12:12:00"

string (date-time)

payee
可选

付款人
样例 : IdName

2.95. Payment

支付信息

名称 说明 类型

amount
必填

订单应付总金额(包含商品、运费、包装费等)
样例 : 14.02

number

cod_amount
必填

货到付款金额
样例 : 0.0

number

details
可选

支付详情
样例 : [ "PaymentDetail" ]

< PaymentDetail > array

earnest_amount
必填

预售订金金额
样例 : 0.0

number

extra
可选

支付费用扩展信息,京东配送服务费:baseLogisticsServiceFee、美团拼好饭加价金额:singleIncreasePrice
样例 : [ "ExtraField" ]

< ExtraField > array

freight
必填

运费(优惠后)
样例 : 14.02

number

other_fee
可选

其他费用
样例 : 0.0

number

package_total
必填

商家包装费用
样例 : 14.02

number

pay_bill_id
可选

支付账单号
样例 : "0122333333"

string

pay_time
可选

付款时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2019-03-02 12:00:01"

string (date-time)

payee
可选

付款人
样例 : IdName

state
必填

付款状态,默认取值:notPay。取值范围:notPay(未付款)、earnest(已付定金)、paid(已付全款)
样例 : "paid"

enum (notPay, earnest, paid)

type
必填

付款类型,默认取值:online。取值范围:cod(货到付款)、online(在线支付)、earnest(预付)
样例 : "online"

enum (cod, online, earnest)

2.96. PaymentDetail

支付详情

名称 说明 类型

account_name
可选

账号名称
样例 : "工行"

string

account_no
可选

账号
样例 : "002002"

string

amount
必填

金额
样例 : 12.33

number

cashier
可选

是否缴款 ,此字段用于刻画收款人收的钱是否需要上缴,如收的是现金就需要上缴,刷卡则就不需要上缴
默认值 : false
样例 : true

boolean

code
可选

支付方式代码
样例 : "支付方式代码"

string

discount_amount
可选

支付优惠金额
样例 : 100.0

number

extra_info
可选

扩展信息,json字符串
样例 : "{\"session\", \"123\"}"

string

flowno
可选

业务流水号
样例 : "3223232323"

string

name
必填

支付方式名称
样例 : "支付宝"

string

out_pay_id
可选

第三方支付流水号
样例 : "3223232323"

string

pay_id
可选

支付id
样例 : "3223232323"

string

score
可选

积分数量
样例 : 100.0

number

type
可选

支付方式类型
样例 : "5"

string

2.97. PickInfoRequest

拣货信息请求

名称 说明 类型

pick_info
可选

订单拣货信息
样例 : OrderPickInfo

2.98. PrintBill

打印单据

名称 说明 类型

content
可选

内容
样例 : "内容"

string

created
可选

单据创建时间,格式为:yyyy-MM-dd HH:mm:ss
样例 : "2020-06-17 10:00:00"

string (date-time)

deleted
可选

默认值 : false
样例 : true

boolean

deleted_time
可选

样例 : "2020-06-17 10:00:00"

string (date-time)

name
可选

模板小票名称
样例 : "外卖订单"

string

outerId
可选

外部Id,目前作为yilianyun打印的唯一标识
样例 : "string"

string

printer
可选

打印机类型:JPOS(JPOS打印机),yilianyun(易联云打印机),默认JPOS
样例 : "string"

string

sku_id
可选

样例 : "string"

string

ticket_type
可选

票据类型:小票、杯贴
样例 : "小票"

string

title
可选

显示名称
样例 : "外卖订单"

string

type
可选

样例 : "string"

string

2.99. Receiver

收货人

名称 说明 类型

address
必填

地址
样例 : Address

contact
必填

联系方式
样例 : 联系方式(soms)

2.100. ReissueOrderItem

补发商品明细

名称 说明 类型

item_no
必填

行号
样例 : "1"

string

quantity
必填

数量
样例 : 13.0

number

sku_id
必填

货号
样例 : "132323"

string

2.101. ReplyRemindRequest

名称 说明 类型

reply_content
可选

回复内容
样例 : "string"

string

reply_operator
可选

回复操作人
样例 : "string"

string

reply_time
可选

回复时间
样例 : "2020-06-17 10:00:00"

string (date-time)

2.102. SalesmanInfo

名称 说明 类型

id
可选

样例 : "string"

string

inviter_mobile
可选

邀请人手机号
样例 : "18859226552"

string

inviter_name
可选

邀请人名称
样例 : "王x"

string

inviter_wid
可选

邀请人wid
样例 : "7567645"

string

name
可选

样例 : "string"

string

org
可选

销售员所属组织
样例 : IdName

org_type
可选

所属组织类型:门店,总部
样例 : "门店"

string

personal_guider_name
可选

归属导购员名称
样例 : "王x"

string

personal_guider_no
可选

归属导购员编号
样例 : "3242323"

string

personal_guider_wid
可选

归属导购员wid
样例 : "3242323"

string

trade_guider_name
可选

交易导购员名称
样例 : "王x"

string

trade_guider_no
可选

交易导购员编号
样例 : "65756"

string

trade_guider_wid
可选

交易导购员wid
样例 : "45345"

string

type
可选

type:类型
样例 : "saleman"

string

weike_mobile
可选

微客手机号
样例 : "18859226552"

string

weike_name
可选

微客名称
样例 : "张三"

string

weike_wid
可选

微客名称wid
样例 : "765765756"

string

2.103. ScoreInfo

积分信息

名称 说明 类型

balance
可选

积分余额
样例 : 100.0

number

total
可选

获得积分
样例 : 1.0

number

2.104. SettleUnit

结算单位

名称 说明 类型

code
可选

单位代码,取值门店代码
样例 : "0001"

string

name
可选

单位门店,取值门店名称
样例 : "门店1"

string

type
可选

类型:store
样例 : "store"

string

2.105. StoreOperationRequest

门店作业请求

名称 说明 类型

operation
必填

作业动作:accept(接单)、shipping(集货)、recheck(复核)、handover(交接)、cancelShipping(取消集货)
样例 : "accept"

string

operation_state
必填

作业状态
样例 : "none(空)、accepted(已接单)、shipping( 已集货/已拣货)、rechecked(已复核)、handover(已交接)"

string

pick_info
可选

订单拣货信息
样例 : OrderPickInfo

shipping_voucher_urls
可选

拣货凭证
样例 : [ "string" ]

< string > array

store_id
必填

门店ID
样例 : "21213323"

string

2.106. SuspendInfo

挂起信息

名称 说明 类型

caption
必填

挂起原因标题,显示用
样例 : "string"

string

code
必填

挂起原因代码,每一种挂起原因用代码表示
样例 : "string"

string

suspended
可选

是否挂起
默认值 : false
样例 : true

boolean

time
可选

挂起时间
样例 : "2017-12-26 16:40:19"

string (date-time)

2.107. TaggingRequest

更新订单标签请求

名称 说明 类型

add_tags
可选

要新增的标签
样例 : [ "string" ]

< string > array

remove_tags
可选

要移除的标签
样例 : [ "string" ]

< string > array

2.108. UpdateCustomerNoteRequest

更新客户备注请求

名称 说明 类型

customer_note
可选

客户备注
样例 : "string"

string

2.109. Waybill

运单

名称 说明 类型

carrier
可选

承运平台
样例 : IdName

carrier_proxy_merchant
可选

承运代理商家
样例 : "承运代理商家"

string

carrier_proxy_platform
可选

承运代理平台
样例 : "承运代理平台"

string

deliveryman
可选

配送员名称
样例 : "张三"

string

deliveryman_id
可选

配送员Id
样例 : "zhangsan"

string

deliveryman_mobile
可选

配送员电话
样例 : "13333333333"

string

expected_logistics_type
可选

期望承运物流类型,取值范围:express(快递)、crowdsourcing(众包)
样例 : "crowdsourcing"

string

freight
可选

运费
样例 : 1.11

number

merchant_id
可选

商家Id
样例 : "111"

string

merchant_name
可选

商家名称
样例 : "222"

string

products
可选

配送商品
样例 : [ "WaybillProduct" ]

< WaybillProduct > array

waybill_id
可选

运单号
样例 : "123"

string

weight
可选

重量
样例 : 重量

2.110. WaybillPrintData

运单打印详情

名称 说明 类型

data
可选

数据
样例 : "string"

string

type
可选

request|response
样例 : "string"

string

2.111. WaybillPrintInfo

运单打印数据

名称 说明 类型

datas
可选

打印数据
样例 : [ "WaybillPrintData" ]

< WaybillPrintData > array

2.112. WaybillProduct

配送商品

名称 说明 类型

item_title
可选

商品名称
样例 : "123"

string

quantity
可选

数量
样例 : 123.0

number

sku_id
可选

商品货号
样例 : "123"

string

2.113. WishInfo

祝福信息

名称 说明 类型

type
可选

1-含义:用户选择商家代打印贺卡 2-含义:用户选择空白贺卡 3-含义:用户选择不需要贺卡
样例 : "string"

string

wish
可选

祝福语
样例 : "string"

string

2.114. 联系方式(soms)

联系方式

名称 说明 类型

email
可选

邮箱
样例 : "55151@qq.com"

string

fax
可选

传真
样例 : "123123"

string

mobile
可选

手机(mobile和telephone建议给值mobile)
样例 : "189389928893"

string

name
可选

姓名
样例 : "李飞"

string

private_mobile
可选

脱敏手机号
样例 : "189****0000"

string

private_name
可选

脱敏名称
样例 : "张*红"

string

telephone
可选

电话
样例 : "189389928893"

string

2.115. 重量

名称 说明 类型

unit
可选

单位
样例 : "g"

string

value
可选


样例 : 1.0

number