版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 销售单服务
1.1.1. 提交销售单
POST /{tenant_id}/soms/saleorderservice/saleorder
1.1.1.1. 说明
提交销售单
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order |
销售单 |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorder?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"
},
"state" : "状态",
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"logs" : "[]",
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"station_id" : "254145",
"station_name" : "254145",
"station_order_no" : "1",
"order_type" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"extend_props" : "string"
},
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"distributionInfo" : {
"distributor" : {
"id" : "string",
"name" : "string"
},
"tcOrderId" : "1223432"
},
"exceptions" : [ {
"code" : "sku",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"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" : "脱敏地址**"
}
},
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"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"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"remark" : "定时达",
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"ship_mode" : "wrhShip",
"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日 晚上",
"operation_state" : "none"
},
"items" : [ {
"uuid" : "string",
"itemNo" : "1",
"itemId" : "1",
"skuId" : "00321",
"productId" : "2123",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "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
},
"details" : [ {
"id" : "detailSkuId123",
"title" : "detailSkuName123",
"quantity" : 0.0,
"ratio" : 0.0,
"upc" : "upc123"
} ],
"state" : "子订单状态",
"saleOrderId" : "string",
"gift" : true,
"combined" : true,
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"pay_amount" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"cost_price" : 122.34,
"lock_detail" : {
"state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"stock_type" : "占货类型: third(外部库存)、purchase(采购库存)、wrh(仓库库存)、store(门店库存)"
},
"station" : {
"id" : "string",
"name" : "string"
},
"order_state" : "string",
"order_id" : "681795759987",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"orig_sku_id" : "skuId123",
"orig_item_title" : "skuName123",
"orig_barcode" : "skuBarcode123",
"orig_weight" : 1.0,
"orig_image_url" : "string",
"orig_extra_info" : {
"spec" : "1*1",
"unit" : "个"
},
"orig_qty" : 1.0,
"orig_price" : 1.0,
"settle_total" : 1.2,
"settle_price" : 1.2,
"shop_total" : 1.2,
"shop_price" : 1.2,
"settle_discount_amount" : 1.2,
"extra_info" : "1.20",
"image_url" : "http://aaa/bbb.png",
"weight" : 1.0,
"package_qty" : 125.0
} ],
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"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\"}"
} ]
},
"source_system" : "string",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"customer_note" : "note",
"seller_note" : "note",
"seller_append_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_reason" : "我不想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "商品不存在",
"orig_total" : 120.01,
"settle_commission" : 120.01,
"cancel_type" : "customerCancel",
"freight_discount" : 33.33,
"package_discount" : 33.33,
"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\"}"
},
"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"
},
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string"
},
"tags" : [ {
"name" : "首单"
} ],
"order_store" : {
"id" : "string",
"name" : "string"
},
"shop_amount" : 0.0,
"settle_amount" : 0.0,
"settle_freight" : 0.0,
"real_total" : 0.0
}
1.1.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"sale_order_id" : "string"
}
1.1.2. 取指定平台销售单
GET /{tenant_id}/soms/saleorderservice/saleorder/front/{front_order_id}
1.1.2.1. 说明
取指定平台销售单
1.1.2.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
front_order_id |
平台销售单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。 |
string |
Query |
platform_id |
平台id |
string |
1.1.2.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorder/front/string?platform_id=string
1.1.2.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"
},
"state" : "状态",
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"logs" : "[]",
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"station_id" : "254145",
"station_name" : "254145",
"station_order_no" : "1",
"order_type" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"extend_props" : "string"
},
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"distributionInfo" : {
"distributor" : {
"id" : "string",
"name" : "string"
},
"tcOrderId" : "1223432"
},
"exceptions" : [ {
"code" : "sku",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"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" : "脱敏地址**"
}
},
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"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"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"remark" : "定时达",
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"ship_mode" : "wrhShip",
"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日 晚上",
"operation_state" : "none"
},
"items" : [ {
"uuid" : "string",
"itemNo" : "1",
"itemId" : "1",
"skuId" : "00321",
"productId" : "2123",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "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
},
"details" : [ {
"id" : "detailSkuId123",
"title" : "detailSkuName123",
"quantity" : 0.0,
"ratio" : 0.0,
"upc" : "upc123"
} ],
"state" : "子订单状态",
"saleOrderId" : "string",
"gift" : true,
"combined" : true,
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"pay_amount" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"cost_price" : 122.34,
"lock_detail" : {
"state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"stock_type" : "占货类型: third(外部库存)、purchase(采购库存)、wrh(仓库库存)、store(门店库存)"
},
"station" : {
"id" : "string",
"name" : "string"
},
"order_state" : "string",
"order_id" : "681795759987",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"orig_sku_id" : "skuId123",
"orig_item_title" : "skuName123",
"orig_barcode" : "skuBarcode123",
"orig_weight" : 1.0,
"orig_image_url" : "string",
"orig_extra_info" : {
"spec" : "1*1",
"unit" : "个"
},
"orig_qty" : 1.0,
"orig_price" : 1.0,
"settle_total" : 1.2,
"settle_price" : 1.2,
"shop_total" : 1.2,
"shop_price" : 1.2,
"settle_discount_amount" : 1.2,
"extra_info" : "1.20",
"image_url" : "http://aaa/bbb.png",
"weight" : 1.0,
"package_qty" : 125.0
} ],
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"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\"}"
} ]
},
"source_system" : "string",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"customer_note" : "note",
"seller_note" : "note",
"seller_append_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_reason" : "我不想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "商品不存在",
"orig_total" : 120.01,
"settle_commission" : 120.01,
"cancel_type" : "customerCancel",
"freight_discount" : 33.33,
"package_discount" : 33.33,
"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\"}"
},
"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"
},
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string"
},
"tags" : [ {
"name" : "首单"
} ],
"order_store" : {
"id" : "string",
"name" : "string"
},
"shop_amount" : 0.0,
"settle_amount" : 0.0,
"settle_freight" : 0.0,
"real_total" : 0.0
}
1.1.3. 取指定销售单
GET /{tenant_id}/soms/saleorderservice/saleorder/{id}
1.1.3.1. 说明
取指定销售单
1.1.3.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
sale_order_id |
销售单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。 |
string |
1.1.3.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.3.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorder/{id}
1.1.3.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"
},
"state" : "状态",
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"logs" : "[]",
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"station_id" : "254145",
"station_name" : "254145",
"station_order_no" : "1",
"order_type" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"extend_props" : "string"
},
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"distributionInfo" : {
"distributor" : {
"id" : "string",
"name" : "string"
},
"tcOrderId" : "1223432"
},
"exceptions" : [ {
"code" : "sku",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"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" : "脱敏地址**"
}
},
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"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"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"remark" : "定时达",
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"ship_mode" : "wrhShip",
"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日 晚上",
"operation_state" : "none"
},
"items" : [ {
"uuid" : "string",
"itemNo" : "1",
"itemId" : "1",
"skuId" : "00321",
"productId" : "2123",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "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
},
"details" : [ {
"id" : "detailSkuId123",
"title" : "detailSkuName123",
"quantity" : 0.0,
"ratio" : 0.0,
"upc" : "upc123"
} ],
"state" : "子订单状态",
"saleOrderId" : "string",
"gift" : true,
"combined" : true,
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"pay_amount" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"cost_price" : 122.34,
"lock_detail" : {
"state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"stock_type" : "占货类型: third(外部库存)、purchase(采购库存)、wrh(仓库库存)、store(门店库存)"
},
"station" : {
"id" : "string",
"name" : "string"
},
"order_state" : "string",
"order_id" : "681795759987",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"orig_sku_id" : "skuId123",
"orig_item_title" : "skuName123",
"orig_barcode" : "skuBarcode123",
"orig_weight" : 1.0,
"orig_image_url" : "string",
"orig_extra_info" : {
"spec" : "1*1",
"unit" : "个"
},
"orig_qty" : 1.0,
"orig_price" : 1.0,
"settle_total" : 1.2,
"settle_price" : 1.2,
"shop_total" : 1.2,
"shop_price" : 1.2,
"settle_discount_amount" : 1.2,
"extra_info" : "1.20",
"image_url" : "http://aaa/bbb.png",
"weight" : 1.0,
"package_qty" : 125.0
} ],
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"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\"}"
} ]
},
"source_system" : "string",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"customer_note" : "note",
"seller_note" : "note",
"seller_append_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_reason" : "我不想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "商品不存在",
"orig_total" : 120.01,
"settle_commission" : 120.01,
"cancel_type" : "customerCancel",
"freight_discount" : 33.33,
"package_discount" : 33.33,
"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\"}"
},
"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"
},
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string"
},
"tags" : [ {
"name" : "首单"
} ],
"order_store" : {
"id" : "string",
"name" : "string"
},
"shop_amount" : 0.0,
"settle_amount" : 0.0,
"settle_freight" : 0.0,
"real_total" : 0.0
}
1.1.4. 更新销售订单配送状态
POST /{tenant_id}/soms/saleorderservice/saleorder/{id}/action/deliver
1.1.4.1. 说明
更新销售订单配送状态
1.1.4.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.4.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.4.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorder/string/action/deliver?operator=string
请求 body
{
"operator" : "zhangsan",
"waybillId" : "1243566215",
"delivery_state" : "none",
"front_modified" : "2016-03-02 12:00:01"
}
1.1.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.5. 取指定销售单
GET /{tenant_id}/soms/saleorderservice/saleorders
1.1.5.1. 说明
取指定销售单
1.1.5.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。 |
string |
Query |
sale_order_id |
销售单id |
< string > array(multi) |
1.1.5.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.5.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorders?sale_order_id=string
1.1.5.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"sale_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"
},
"state" : "状态",
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"logs" : "[]",
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"station_id" : "254145",
"station_name" : "254145",
"station_order_no" : "1",
"order_type" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"extend_props" : "string"
},
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"distributionInfo" : {
"distributor" : {
"id" : "string",
"name" : "string"
},
"tcOrderId" : "1223432"
},
"exceptions" : [ {
"code" : "sku",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"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" : "脱敏地址**"
}
},
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"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"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"remark" : "定时达",
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"ship_mode" : "wrhShip",
"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日 晚上",
"operation_state" : "none"
},
"items" : [ {
"uuid" : "string",
"itemNo" : "1",
"itemId" : "1",
"skuId" : "00321",
"productId" : "2123",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "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
},
"details" : [ {
"id" : "detailSkuId123",
"title" : "detailSkuName123",
"quantity" : 0.0,
"ratio" : 0.0,
"upc" : "upc123"
} ],
"state" : "子订单状态",
"saleOrderId" : "string",
"gift" : true,
"combined" : true,
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"pay_amount" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"cost_price" : 122.34,
"lock_detail" : {
"state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"stock_type" : "占货类型: third(外部库存)、purchase(采购库存)、wrh(仓库库存)、store(门店库存)"
},
"station" : {
"id" : "string",
"name" : "string"
},
"order_state" : "string",
"order_id" : "681795759987",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"orig_sku_id" : "skuId123",
"orig_item_title" : "skuName123",
"orig_barcode" : "skuBarcode123",
"orig_weight" : 1.0,
"orig_image_url" : "string",
"orig_extra_info" : {
"spec" : "1*1",
"unit" : "个"
},
"orig_qty" : 1.0,
"orig_price" : 1.0,
"settle_total" : 1.2,
"settle_price" : 1.2,
"shop_total" : 1.2,
"shop_price" : 1.2,
"settle_discount_amount" : 1.2,
"extra_info" : "1.20",
"image_url" : "http://aaa/bbb.png",
"weight" : 1.0,
"package_qty" : 125.0
} ],
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"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\"}"
} ]
},
"source_system" : "string",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"customer_note" : "note",
"seller_note" : "note",
"seller_append_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_reason" : "我不想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "商品不存在",
"orig_total" : 120.01,
"settle_commission" : 120.01,
"cancel_type" : "customerCancel",
"freight_discount" : 33.33,
"package_discount" : 33.33,
"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\"}"
},
"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"
},
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string"
},
"tags" : [ {
"name" : "首单"
} ],
"order_store" : {
"id" : "string",
"name" : "string"
},
"shop_amount" : 0.0,
"settle_amount" : 0.0,
"settle_freight" : 0.0,
"real_total" : 0.0
} ]
}
1.1.6. 查询销售单
POST /{tenant_id}/soms/saleorderservice/saleorders/query
1.1.6.1. 说明
查询销售单(ES查询,推荐使用)
1.1.6.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.6.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.6.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorders/query?desc=true&page=0&page_size=0
请求 body
{
"platformIds" : [ "string" ],
"states" : [ "confirmed" ],
"exceptionRemark" : "名称",
"hasException" : true,
"platform_id" : "jdo2o",
"shop_id" : "0002",
"shop_id_in" : "0002",
"created_start" : "2016-03-02 12:00:01",
"created_end" : "2016-03-02 12:00:01",
"order_id" : "1000002111",
"order_ids" : [ "string" ],
"lock_stock_type_eq" : "wrh",
"lock_state_in" : "wrh",
"waybill_station_type_eq" : "wrh",
"waybill_station_id_eq" : "1001",
"pre_type" : "normal",
"customer_name" : "张三",
"customer_id" : "8568",
"customer_mobile" : "8568",
"front_order_id" : "32323232323323",
"id_prefix" : "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",
"waybill_id_eq" : "32323232323323",
"tag_eq" : "赔付订单",
"sku_id_eq" : "AZ3J",
"sku_title_eq" : "名称",
"order_store_code_in" : "true"
}
1.1.6.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"saleOrders" : [ {
"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"
},
"state" : "状态",
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"logs" : "[]",
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"station_id" : "254145",
"station_name" : "254145",
"station_order_no" : "1",
"order_type" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"extend_props" : "string"
},
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"distributionInfo" : {
"distributor" : {
"id" : "string",
"name" : "string"
},
"tcOrderId" : "1223432"
},
"exceptions" : [ {
"code" : "sku",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"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" : "脱敏地址**"
}
},
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"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"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"remark" : "定时达",
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"ship_mode" : "wrhShip",
"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日 晚上",
"operation_state" : "none"
},
"items" : [ {
"uuid" : "string",
"itemNo" : "1",
"itemId" : "1",
"skuId" : "00321",
"productId" : "2123",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "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
},
"details" : [ {
"id" : "detailSkuId123",
"title" : "detailSkuName123",
"quantity" : 0.0,
"ratio" : 0.0,
"upc" : "upc123"
} ],
"state" : "子订单状态",
"saleOrderId" : "string",
"gift" : true,
"combined" : true,
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"pay_amount" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"cost_price" : 122.34,
"lock_detail" : {
"state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"stock_type" : "占货类型: third(外部库存)、purchase(采购库存)、wrh(仓库库存)、store(门店库存)"
},
"station" : {
"id" : "string",
"name" : "string"
},
"order_state" : "string",
"order_id" : "681795759987",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"orig_sku_id" : "skuId123",
"orig_item_title" : "skuName123",
"orig_barcode" : "skuBarcode123",
"orig_weight" : 1.0,
"orig_image_url" : "string",
"orig_extra_info" : {
"spec" : "1*1",
"unit" : "个"
},
"orig_qty" : 1.0,
"orig_price" : 1.0,
"settle_total" : 1.2,
"settle_price" : 1.2,
"shop_total" : 1.2,
"shop_price" : 1.2,
"settle_discount_amount" : 1.2,
"extra_info" : "1.20",
"image_url" : "http://aaa/bbb.png",
"weight" : 1.0,
"package_qty" : 125.0
} ],
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"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\"}"
} ]
},
"source_system" : "string",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"customer_note" : "note",
"seller_note" : "note",
"seller_append_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_reason" : "我不想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "商品不存在",
"orig_total" : 120.01,
"settle_commission" : 120.01,
"cancel_type" : "customerCancel",
"freight_discount" : 33.33,
"package_discount" : 33.33,
"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\"}"
},
"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"
},
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string"
},
"tags" : [ {
"name" : "首单"
} ],
"order_store" : {
"id" : "string",
"name" : "string"
},
"shop_amount" : 0.0,
"settle_amount" : 0.0,
"settle_freight" : 0.0,
"real_total" : 0.0
} ],
"page_count" : 5,
"page_size" : 20
}
2. 定义
2.1. ActionResult
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.2. Address
地址信息
| 名称 | 说明 | 类型 |
|---|---|---|
city |
市 |
string |
coordinate_type |
坐标类型,BD09:百度坐标, GCJ02:火星坐标,WGS84:WGS84坐标 |
string |
country |
国家 |
string |
district |
区 |
string |
latitude |
纬度 |
number |
longtitude |
经度 |
number |
postcode |
邮编 |
string |
private_street |
脱敏地址 |
string |
province |
省份 |
string |
street |
详细地址 |
string |
2.4. Carrier
承运商
| 名称 | 说明 | 类型 |
|---|---|---|
carrier |
承运平台 |
|
delivery_id |
配送活动标识 |
string |
delivery_name |
配送活动名称 |
string |
deliveryman |
送货员 |
|
deliveryman_mobile |
送货员手机 |
string |
exception_reason |
承运异常原因 |
string |
expected_logistics_type |
期望承运物流类型,取值范围:express(快递)、crowdsourcing(众包)。快递:如圆通,中通等;众包:如美团,蜂鸟,达达等 |
string |
merchant |
承运商家 |
|
state |
承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、dispatched(已派单)、arrived(骑手已到店)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled) |
type |
承运商类型,取值范围:self(门店自送)、thirdparty(平台配送)、express(物流配送) |
enum (self, thirdparty, express) |
2.5. CodeName
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
name |
样例 : |
string |
2.6. CouponDetail
券信息
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
实际抵用金额 |
number |
code |
券号 |
string |
name |
券名称 |
string |
type |
cash(现金券)、discount(折扣券) |
string |
type_id |
券类型代码 |
string |
use_mode |
用券形式:pay(支付)、discount(优惠) |
string |
value |
折扣率或者现金面额 |
number |
2.7. CouponInfo
券信息
| 名称 | 说明 | 类型 |
|---|---|---|
details |
券使用详情 |
< CouponDetail > array |
use_total |
券抵用总金额 |
number |
2.9. DiscountSettleDetail
优惠结算详情
| 名称 | 说明 | 类型 |
|---|---|---|
discount |
承担优惠金额 |
number |
role |
优惠承担方 |
string |
2.10. DiscountShareDetail
整合优惠结算详情
| 名称 | 说明 | 类型 |
|---|---|---|
discount |
承担优惠金额 |
number |
type |
类型 |
string |
2.11. DistributionInfo
分销信息
| 名称 | 说明 | 类型 |
|---|---|---|
distributor |
样例 : IdName |
|
tcOrderId |
分销主订单号 |
string |
2.12. EncryptDetail
加密信息
| 名称 | 说明 | 类型 |
|---|---|---|
encrypt_mobile |
样例 : |
string |
encrypt_name |
样例 : |
string |
encrypt_street |
样例 : |
string |
secretKey |
样例 : |
string |
2.13. ExtraField
自定义字段
| 名称 | 说明 | 类型 |
|---|---|---|
id |
自定义id |
string |
name |
自定义名称 |
string |
value |
自定义值 |
string |
2.14. FavDetail
优惠详情
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
优惠金额 |
number |
batch_act_id |
批次维度的活动ID |
string |
child_type |
优惠子类型 |
string |
extra_info |
扩展信息,json格式。 |
string |
factor |
优惠参与信息 |
|
id |
优惠ID |
string |
merchant_act_id |
商家活动ID |
string |
name |
活动名称 |
string |
prom_cls |
促销来源类型 |
string |
remark |
优惠说明 |
string |
settle_details |
优惠结算分摊详情 |
< DiscountSettleDetail > array |
share_details |
多方整合优惠分摊信息 |
< DiscountShareDetail > array |
sku_act_id |
商品维度的活动ID |
string |
type |
优惠类型 |
string |
voucher_code |
凭证代码 |
string |
2.15. FavFactor
优惠参与信息
| 名称 | 说明 | 类型 |
|---|---|---|
qty |
本商品参与促销总数量 |
number |
sku_items |
来源商品参与优惠明细 |
< FavFactorItem > array |
total |
本商品参与促销总金额 |
number |
2.16. FavFactorItem
参与优惠商品明细
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
参与促销金额 |
number |
item_id |
行标识 |
string |
item_no |
行号 |
integer (int32) |
qty |
参与促销数量 |
number |
2.17. ICN
ICN对象
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
id |
样例 : |
string |
name |
样例 : |
string |
2.18. IdName
| 名称 | 说明 | 类型 |
|---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
2.19. Invoice
发票信息
| 名称 | 说明 | 类型 |
|---|---|---|
apply_qrcode |
开票二维码 |
string |
details |
发票详情 |
< InvoiceDetail > array |
error_reason |
开票失败原因 |
string |
required |
是否需要发票 |
boolean |
result |
开票结果:开票成功、开票失败,申请开票时不传 |
string |
2.20. InvoiceDetail
发票详情
| 名称 | 说明 | 类型 |
|---|---|---|
account |
银行编号/账号 |
string |
address |
地址 |
string |
amount |
发票金额 |
number |
bank |
开户行 |
string |
buyer_tax_code |
购买方税号,废弃,建议使用taxerId字段 |
string |
check_code |
校验码 |
string |
content |
发票内容 |
string |
email |
发票接收邮箱 |
string |
kind |
发票种类,取值范围:e-invoice(电子)、paper(纸质) |
string |
print_number |
打印单号 |
string |
remark |
发票备注 |
string |
securaty_code |
密码 |
string |
serial_no |
流水号 |
string |
tax |
税费 |
number |
taxer_id |
纳税人识别号(买家填写) |
string |
telephone |
电话 |
string |
time |
开票日期 |
string (date-time) |
title |
发票抬头 |
string |
title_type |
抬头类型,取值范围:person(个人)、company(单位) |
enum (person, company) |
type |
发票类型,取值范围:plain(普通发票)、VAT(增值税专用发票) |
enum (plain, VAT) |
url |
电子发票图片地址 |
string |
2.21. ItemPromotion
商品行促销信息
| 名称 | 说明 | 类型 |
|---|---|---|
apported_discount_amount |
整单优惠分摊金额 |
number |
discount_amount |
商品优惠金额 |
number |
favs |
优惠详情 |
< FavDetail > array |
2.22. MemberInfo
积分信息
| 名称 | 说明 | 类型 |
|---|---|---|
card_no |
实体卡卡号,如果存在多个,以英文逗号隔开 |
string |
member_extra |
额外参数,json字符串 |
string |
member_gid |
会员资料内码 |
string |
member_id |
会员ID |
string |
mobile |
会员电话 |
string |
outer_member_id |
外部会员id |
string |
2.23. OrderException
| 名称 | 说明 | 类型 |
|---|---|---|
caption |
异常标题 |
string |
code |
异常代码 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
remark |
异常说明 |
string |
time |
异常时间 |
string (date-time) |
2.25. OrderSettleDiscount
对账优惠信息
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
优惠金额 |
number |
details |
优惠结算详情 |
< DiscountSettleDetail > array |
scope |
优惠范围 |
string |
2.26. OrderSettleInfo
对账信息
| 名称 | 说明 | 类型 |
|---|---|---|
discounts |
优惠结算明细 |
< OrderSettleDiscount > array |
settlable |
是否可结算 |
boolean |
settle_date |
账单日期 |
string (date-time) |
station_settle_mode |
门店分账模式:online(线上分账模式)、offline(线下分账模式) |
string |
2.29. Payment
支付信息
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
订单应付总金额(包含商品、运费、包装费等) |
number |
cod_amount |
货到付款金额 |
number |
details |
支付详情 |
< PaymentDetail > array |
earnest_amount |
预售订金金额 |
number |
extra |
支付费用扩展信息,京东配送服务费:baseLogisticsServiceFee、美团拼好饭加价金额:singleIncreasePrice |
< ExtraField > array |
freight |
运费(优惠后) |
number |
other_fee |
其他费用 |
number |
package_total |
商家包装费用 |
number |
pay_bill_id |
支付账单号 |
string |
pay_time |
付款时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
payee |
付款人 |
|
state |
付款状态,默认取值:notPay。取值范围:notPay(未付款)、earnest(已付定金)、paid(已付全款) |
enum (notPay, earnest, paid) |
type |
付款类型,默认取值:online。取值范围:cod(货到付款)、online(在线支付)、earnest(预付) |
enum (cod, online, earnest) |
2.30. PaymentDetail
支付详情
| 名称 | 说明 | 类型 |
|---|---|---|
account_name |
账号名称 |
string |
account_no |
账号 |
string |
amount |
金额 |
number |
cashier |
是否缴款 ,此字段用于刻画收款人收的钱是否需要上缴,如收的是现金就需要上缴,刷卡则就不需要上缴 |
boolean |
code |
支付方式代码 |
string |
discount_amount |
支付优惠金额 |
number |
extra_info |
扩展信息,json字符串 |
string |
flowno |
业务流水号 |
string |
name |
支付方式名称 |
string |
out_pay_id |
第三方支付流水号 |
string |
pay_id |
支付id |
string |
score |
积分数量 |
number |
type |
支付方式类型 |
string |
2.32. SaleFrontItem
平台商品行信息
| 名称 | 说明 | 类型 |
|---|---|---|
barcode |
条码 |
string |
extend_props |
扩展信息 |
string |
goods |
商品 |
|
goods_class |
商品类型 |
string |
goods_unit |
商品单位 |
string |
oid |
子订单号 |
string |
refund_id |
退款id |
string |
refund_status |
退款状态 |
string |
sku_id |
平台SKU ID |
string |
spec |
属性 |
|
spec2 |
平台商品的规格,形如:500g、500ml |
string |
status |
平台状态 |
string |
tc_order_id |
样例 : |
string |
tc_payment |
样例 : |
string |
virtual_wrh |
虚拟仓库 |
|
wrh |
仓库信息 |
2.33. SaleFrontOrder
平台订单信息
| 名称 | 说明 | 类型 |
|---|---|---|
app |
平台应用 |
|
created |
下单时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
extend_props |
属性信息 |
string |
logistic |
物流 |
|
logs |
日志 |
< SaleOrderLog > array |
main_order_id |
平台主订单号 |
string |
modified |
最后修改时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
order_id |
平台订单号,第三方单号 |
string |
order_type |
订单类型 |
string |
platform |
平台,其中:自接入平台需要提供约定平台id,申请在鼎力云开通。 |
|
shop |
店铺 |
|
state |
状态 |
string |
station_id |
平台侧的门店编码 |
string |
station_name |
平台侧的门店名称 |
string |
station_order_no |
订单序号 |
string |
third_order_id |
通道系统订单号,第三方单号 |
string |
wrh |
仓库 |
2.34. SaleOrder
销售订单
| 名称 | 说明 | 类型 |
|---|---|---|
cancel_reason |
取消原因 |
string |
cancel_type |
取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消) |
string |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
crm_info |
会员权益信息 |
|
customer |
客户信息 |
|
customer_note |
客户备注 |
string |
delivery |
配送信息 |
|
distributionInfo |
分销信息 |
|
encrypt_detail |
加密详情 |
|
exception_codes |
异常代码 |
string |
exception_remark |
异常说明 |
string |
exceptions |
样例 : |
< OrderException > array |
extra_info |
扩展信息,json字符串 |
string |
freight_discount |
运费优惠金额 |
number |
front |
平台订单信息 |
|
has_exception |
是否异常 |
boolean |
id |
订单Id,由系统自动生成,不需要填写 |
string |
invoice |
发票信息 |
|
items |
商品行 |
< SaleOrderItem > array |
lock_state |
none |
enum (none, part, all) |
logs |
订单日志 |
< SaleOrderLog > array |
member_info |
会员积分信息 |
|
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_store |
下单门店 |
|
orig_total |
订单原金额(优惠之前) |
number |
package_discount |
包装优惠金额 |
number |
payment |
支付信息 |
|
promotion |
订单促销 |
|
real_total |
样例 : |
number |
salesman |
推销员 |
|
seller_append_note |
商家追加备注 |
string |
seller_note |
商家备注 |
string |
settle_amount |
结算金额 |
number |
settle_commission |
平台佣金 |
number |
settle_freight |
结算运费 |
number |
settle_info |
对账信息 |
|
shop |
平台商家(店铺),平台侧的商家,非门店 |
|
shop_amount |
货款金额 |
number |
source_system |
样例 : |
string |
state |
confirmed |
enum (confirmed, prepared, approved, delivering, delivered, canceled) |
suspend_info |
挂起信息 |
|
tags |
订单标签 |
< OrderTag > array |
weight |
订单重量,单位:g |
number |
2.35. SaleOrderDeliverRequest
销售单配送情况
| 名称 | 说明 | 类型 |
|---|---|---|
delivery_state |
配送状态,取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投) |
enum (none, shipped, signed, refused, redeliver) |
front_modified |
平台订单最后修改时间,非空时将更新,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operator |
执行操作人 |
string |
waybillId |
承运单号,非空时将更新 |
string |
2.36. SaleOrderDelivery
配送信息
| 名称 | 说明 | 类型 |
|---|---|---|
city_token |
同城令牌 |
string |
operation_state |
门店作业状态,none(空),accepted(已接单),shipping(已集货(已拣货)),rechecked(已复核),handover(已交接) |
string |
pickup_code |
取件码 |
string |
pre_end_delivery_time |
预计送达结束时间 |
string (date-time) |
pre_selftake_time |
预计自提时间 |
string |
pre_start_delivery_time |
预计送达开始时间 |
string (date-time) |
pre_type |
订单预约类型 |
string |
receiver |
收货人信息 |
|
remark |
配送说明 |
string |
selftake_code |
自提码 |
string |
ship_mode |
发货方式,wrhShip(仓库发货),stationShip(门店发货) |
enum (wrhShip, stationShip, vendorShip) |
state |
配送状态,默认取值为:none。取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投) |
enum (none, shipped, signed, refused, redeliver) |
station |
配送门店 |
|
type |
交付方式,默认取值:deliver。取值范围:selftake(到店自提)、deliver(送货上门) |
enum (selftake, deliver) |
waybills |
样例 : |
< WaybillInfo > array |
wrh |
发货仓库 |
2.37. SaleOrderFilter
销售单过滤器
| 名称 | 说明 | 类型 |
|---|---|---|
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
customer_id |
客户代码 |
string |
customer_mobile |
客户代码 |
string |
customer_name |
客户姓名 |
string |
exceptionRemark |
异常原因类似于 |
string |
front_created_end |
下单时间终止时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_created_start |
下单时间起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_order_id |
平台订单号 |
string |
front_order_id_prefix |
平台订单号起始搜索 |
string |
front_order_ids |
平台订单号 |
< string > array |
hasException |
是否异常 |
boolean |
id_prefix |
销售订单号起始搜索 |
string |
lock_state_in |
占货状态:none(缺货)、part(部分占货)、all(全部占货) |
< enum (none, part, all) > array |
lock_stock_type_eq |
占货类型: purchase(采购)、wrh(仓库) |
string |
order_id |
销售单号 |
string |
order_ids |
销售单号 |
< string > array |
order_store_code_in |
下单门店编码在……之中 |
< string > array |
platformIds |
平台ID |
< string > array |
platform_id |
平台ID |
string |
pre_type |
预处理类型:normal:正常,dsd:定时达 |
string |
shop_id |
商家ID |
string |
shop_id_in |
商家ID |
< string > array |
sku_id_eq |
商品代码等于 |
string |
sku_title_eq |
商品名称等于 |
string |
states |
销售单状态,取值:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
< enum (confirmed, prepared, approved, delivering, delivered, canceled) > array |
tag_eq |
标签等于 |
string |
waybill_id_eq |
运单信息ID |
string |
waybill_station_id_eq |
发货站点等于 |
string |
waybill_station_type_eq |
发货站点类型等于,store(门店)、wrh(仓库)、vendor(供应商) |
string |
2.38. SaleOrderItem
销售订单商品行
| 名称 | 说明 | 类型 |
|---|---|---|
apported_discount_amount |
整单优惠分摊金额,如:订单满减,整单分摊到明细 |
number |
barcode |
商品条码 |
string |
combined |
默认值 : |
boolean |
cost_price |
成本价 |
number |
details |
组合明细的原料 |
< SaleOrderItemDetail > array |
discount_amount |
商品优惠金额,如:商品立减优惠 |
number |
extra_info |
额外信息 |
string |
front |
前端商品信息 |
|
gift |
默认值 : |
boolean |
image_url |
商品图片信息 |
string |
itemId |
行唯一标识 |
string |
itemNo |
订单行号 |
string |
item_title |
商品标题 |
string |
lock_detail |
none |
|
order_id |
关联订单号 |
string |
order_state |
订单状态,取值范围:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering( 配送中)、delivered(配送完成)、canceled(已取消) |
string |
orig_barcode |
转换前的商品条码 |
string |
orig_extra_info |
原商品行扩展信息 |
|
orig_image_url |
转换前商品图片信息 |
string |
orig_item_title |
转换前的商品名称 |
string |
orig_price |
转换前的商品行价格 |
number |
orig_qty |
转换前的商品数量 |
number |
orig_sku_id |
转换前的货号 |
string |
orig_weight |
转换前商品重量,单位g |
number |
package_qty |
包装盒数量 |
number |
package_total |
包装费用 |
number |
pay_amount |
实付金额,等于total - apported_discount_amount - discount_amount |
number |
price |
售价(促销价),为空等于pay_amount/quantity |
number |
productId |
商品代码 |
string |
promotion |
商品促销 |
|
purchase_price |
采购价 |
number |
quantity |
数量 |
number |
saleOrderId |
样例 : |
string |
salesman_id |
售卖员Id |
string |
salesman_name |
售卖员名字 |
string |
salesman_type |
售卖员类型 |
string |
settle_discount_amount |
平台优惠金额 |
number |
settle_price |
结算价格 |
number |
settle_total |
结算金额 |
number |
shop_price |
货款金额 |
number |
shop_total |
货款金额 |
number |
skuId |
商品标识(货号) |
string |
spec |
商品规格 |
string |
state |
confirmed |
enum (confirmed, prepared, approved, delivering, delivered, canceled) |
station |
配送门店 |
|
total |
商品金额,等于unit_price * quantity |
number |
unit |
单位:个、份等 |
string |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
uuid |
样例 : |
string |
weight |
单个商品重量,单位g |
number |
2.39. SaleOrderItemDetail
销售订单组合明细原料
| 名称 | 说明 | 类型 |
|---|---|---|
id |
原料货号 |
string |
quantity |
需要原料商品数量,C=2A+3B,原料商品数量=组合商品数量*基数 |
number |
ratio |
原料商品基数 |
number |
title |
原料名称 |
string |
upc |
国际码 |
string |
2.40. SaleOrderList
销售订单
| 名称 | 说明 | 类型 |
|---|---|---|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
sale_orders |
销售订单 |
< SaleOrder > array |
2.41. SaleOrderLockDetail
销售订单占货明细
| 名称 | 说明 | 类型 |
|---|---|---|
state |
none |
enum (none, part, all) |
stock_type |
wrh |
string |
2.42. SaleOrderLog
订单日志
| 名称 | 说明 | 类型 |
|---|---|---|
action |
操作 |
string |
action_caption |
操作标题 |
string |
message |
操作说明 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
rtn_id |
退换货单号 |
string |
tenant_id |
租户ID |
string |
time |
操作时间 |
string (date-time) |
2.43. SaleOrderPaging
销售单分页对象
| 名称 | 说明 | 类型 |
|---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
saleOrders |
销售单列表 |
< SaleOrder > array |
total |
总条数 |
integer (int64) |
2.44. SaleOrderSubmitResponse
销售单新建响应
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
sale_order_id |
样例 : |
string |
success |
默认值 : |
boolean |
2.45. SalesmanInfo
| 名称 | 说明 | 类型 |
|---|---|---|
id |
样例 : |
string |
inviter_mobile |
邀请人手机号 |
string |
inviter_name |
邀请人名称 |
string |
inviter_wid |
邀请人wid |
string |
name |
样例 : |
string |
org |
销售员所属组织 |
|
org_type |
所属组织类型:门店,总部 |
string |
personal_guider_name |
归属导购员名称 |
string |
personal_guider_no |
归属导购员编号 |
string |
personal_guider_wid |
归属导购员wid |
string |
trade_guider_name |
交易导购员名称 |
string |
trade_guider_no |
交易导购员编号 |
string |
trade_guider_wid |
交易导购员wid |
string |
type |
type:类型 |
string |
weike_mobile |
微客手机号 |
string |
weike_name |
微客名称 |
string |
weike_wid |
微客名称wid |
string |
2.47. SuspendInfo
挂起信息
| 名称 | 说明 | 类型 |
|---|---|---|
caption |
挂起原因标题,显示用 |
string |
code |
挂起原因代码,每一种挂起原因用代码表示 |
string |
suspended |
是否挂起 |
boolean |
time |
挂起时间 |
string (date-time) |
2.48. WaybillInfo
运单
| 名称 | 说明 | 类型 |
|---|---|---|
carrier |
承运商 |
|
station |
站点 |
|
station_type |
站点类型 |
string |
suggest_station |
建议站点 |
|
suggest_station_type |
建议站点类型 |
string |
virtual_station |
虚拟站点 |
|
virtual_station_type |
虚拟站点类型 |
string |
waybill_id |
运单号 |
string |
2.49. 联系方式(soms)
联系方式
| 名称 | 说明 | 类型 |
|---|---|---|
email |
邮箱 |
string |
fax |
传真 |
string |
mobile |
手机(mobile和telephone建议给值mobile) |
string |
name |
姓名 |
string |
private_mobile |
脱敏手机号 |
string |
private_name |
脱敏名称 |
string |
telephone |
电话 |
string |