版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 退单服务
1.1.1. 提交退单
POST /{tenant_id}/soms/returnservice/rtn
1.1.1.1. 说明
提交退单,只支持新增退单,不支持修改退单,新增状态:confirmed,仅退款:type=refund,退款退货:type=refundAndRtn,默认type=refundAndRtn
1.1.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
rtn |
退单 |
1.1.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
}
1.1.1.5. HTTP响应示例
响应 200
{
"id" : "string"
}
1.1.2. 根据平台退单号取单个有效退单
GET /{tenant_id}/soms/returnservice/rtn/front/{rtn_id}
operation.deprecated |
1.1.2.1. 说明
不建议使用,根据平台退单号取单个有效退单,建议使用:根据平台退单号取多个退单
1.1.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
rtn_id |
前端退单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Query |
platform_id |
平台ID |
string |
1.1.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/front/string?parts=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" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
}
1.1.3. 提交退单(新版)
POST /{tenant_id}/soms/returnservice/rtn/submit
1.1.3.1. 说明
新旧提交退单接口,只有返回结果格式差异,其它逻辑一致
1.1.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
rtn |
退单 |
1.1.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.3.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/submit?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
}
1.1.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"rtn_id" : "string"
}
1.1.4. 取指定退单
GET /{tenant_id}/soms/returnservice/rtn/{id}
1.1.4.1. 说明
取指定退单
1.1.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细)、crm(营销信息)、prom(促销详情)、item.traceCodes(溯源码) |
string |
1.1.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.4.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string
1.1.4.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
}
1.1.5. 审核退单
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/approve
1.1.5.1. 说明
审核退单,审核通过:approve_state=serviceApproved,审核不通过:approve_state=serviceRefuse
1.1.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
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/returnservice/rtn/string/action/approve?operator=string
请求 body
{
"reason" : "已发货,不能退",
"approve_state" : "serviceApproved",
"operator_role" : "platform",
"turn_to_type" : "refundAndRtn",
"item_infos" : [ {
"item_id" : "string",
"order_item_id" : "string",
"item_no" : "string",
"sku_id" : "string",
"real_quantity" : 0.0,
"detail_infos" : [ {
"real_quantity" : 0.0,
"sku_id" : "string"
} ]
} ]
}
1.1.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.6. 取消退单
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/cancel
1.1.6.1. 说明
取消退单
1.1.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
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/returnservice/rtn/string/action/cancel?operator=string
请求 body
{
"sellerInfo" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"reason" : "我不想要了",
"operator_role" : "string",
"approve_state" : "none"
}
1.1.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.7. 修改退单的退回门店
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/changestation
1.1.7.1. 说明
修改退单的退回门店
1.1.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
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/returnservice/rtn/string/action/changestation?operator=string
请求 body
{
"new_station_id" : "12435453"
}
1.1.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.8. 确认退货状态
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/deliver
1.1.8.1. 说明
确认退货状态,更新消费者退货发货return_state=customerShipped,更新商家退货收货return_state=received
1.1.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单ID |
string |
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/returnservice/rtn/string/action/deliver?operator=string
请求 body
{
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"return_state" : "none",
"waybill_id" : "1243566215",
"carrier_note" : "note",
"operator_role" : "platform"
}
1.1.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.9. 修改退单
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/modify
1.1.9.1. 说明
修改退单
1.1.9.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.9.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/action/modify?operator=string
请求 body
{
"rtnId" : "4356465768",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"freight" : 12.03,
"modify_item_detail" : false,
"apply_reason" : "不想要了",
"customer_note" : "haha",
"voucher_urls" : [ "string" ],
"settle_amount" : 12.03,
"settle_commission" : 12.03,
"refund_extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"package_total" : 12.03,
"address_change_fee" : 10.01,
"carrier_type" : "self"
}
1.1.9.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.10. 通知仓库
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/notifywrh
1.1.10.1. 说明
通知仓库
1.1.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
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/returnservice/rtn/string/action/notifywrh?operator=string
1.1.10.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.11. 确认退款
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/refund
1.1.11.1. 说明
确认退款
1.1.11.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.11.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.11.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/action/refund?operator=string
请求 body
{
"refundState" : "refunded",
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"operator_role" : "platform"
}
1.1.11.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.12. 修改退单权益接口
POST /{tenant_id}/soms/returnservice/rtn/{id}/mod/crminfo
1.1.12.1. 说明
修改退单权益接口
1.1.12.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
权益请求 |
1.1.12.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.12.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/mod/crminfo?operator=string
请求 body
{
"score" : 0.0
}
1.1.12.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.13. 修改退单的退款信息
POST /{tenant_id}/soms/returnservice/rtn/{id}/refund/update
1.1.13.1. 说明
修改退单的退款信息
1.1.13.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.13.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.13.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/refund/update?operator=string
请求 body
{
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ]
}
1.1.13.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.14. 修改退单的结算信息
POST /{tenant_id}/soms/returnservice/rtn/{id}/settleinfo/update
1.1.14.1. 说明
修改退单的结算信息
1.1.14.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.14.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.14.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/settleinfo/update?operator=string
请求 body
{
"settlable" : true,
"settle_date" : "2020-06-17 10:00:00"
}
1.1.14.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.15. 修改退回物流信息
POST /{tenant_id}/soms/returnservice/rtn/{id}/updatertndelivery
1.1.15.1. 说明
修改退回物流信息
1.1.15.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单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/returnservice/rtn/string/updatertndelivery?operator=string
请求 body
{
"state" : "received",
"carrier" : {
"id" : "string",
"name" : "string"
},
"mobile" : "18859540085",
"waybill_id" : "43444444444232323"
}
1.1.15.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.16. 根据销售退申请单号取退单
GET /{tenant_id}/soms/returnservice/rtn/{rtn_req_id}/getsByRtnReq
1.1.16.1. 说明
根据销售退申请单号取退单
1.1.16.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
rtn_req_id |
销售退申请单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,取值范围:items(商品详情) |
string |
1.1.16.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.16.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/getsByRtnReq
1.1.16.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ]
}
1.1.17. 批量取退单
GET /{tenant_id}/soms/returnservice/rtns
1.1.17.1. 说明
批量取退单
1.1.17.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Query |
rtnIds |
退单订单号集合,最多100个 |
< string > array(multi) |
1.1.17.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.17.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns?rtnIds=string
1.1.17.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ]
}
1.1.18. 根据平台退单号取多个退单
GET /{tenant_id}/soms/returnservice/rtns/front/{front_rtn_id}
1.1.18.1. 说明
根据平台退单号取多个退单
1.1.18.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
front_rtn_id |
前端退单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Query |
platform_id |
平台ID |
string |
1.1.18.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.18.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/front/string?parts=string&platform_id=string
1.1.18.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ]
}
1.1.19. 查指定平台订单的退单
GET /{tenant_id}/soms/returnservice/rtns/frontorder
1.1.19.1. 说明
查指定平台订单的退单
1.1.19.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
订单ID |
string |
Query |
platform_id |
平台ID |
string |
1.1.19.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.19.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/frontorder?order_id=string&platform_id=string
1.1.19.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ]
}
1.1.20. 查指定订单的退单
GET /{tenant_id}/soms/returnservice/rtns/order
1.1.20.1. 说明
查指定订单的退单,默认不返回退单商品明细等关联信息,需要取关联信息,传parts
1.1.20.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
订单ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
1.1.20.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.20.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/order?order_id=string
1.1.20.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ]
}
1.1.21. 查指定订单的退单
POST /{tenant_id}/soms/returnservice/rtns/orders
1.1.21.1. 说明
查指定订单的退单
1.1.21.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Body |
order_id |
订单ID |
< string > array |
1.1.21.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.21.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ]
}
1.1.22. 批量获取退单打印(JPOS打印方)
GET /{tenant_id}/soms/returnservice/rtns/printbills
operation.deprecated |
1.1.22.1. 说明
批量获取退单打印(JPOS打印方)
1.1.22.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
ids |
退单号集合 |
< string > array(multi) |
Query |
name |
打印联的名称,为空则打印全部联。取值有:外卖退单 |
string |
1.1.22.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.22.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/printbills?ids=string
1.1.22.5. HTTP响应示例
响应 200
{
"rtns" : [ {
"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"
} ],
"time" : "2016-03-02 12:00:01",
"rtn_id" : "20160122000006",
"front_rtn_id" : "20160122000006"
} ]
}
1.1.23. 查询退单(ES查询)
POST /{tenant_id}/soms/returnservice/rtns/query
1.1.23.1. 说明
查询退单(ES查询,推荐使用),注意避免深度分页
1.1.23.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 |
integer (int32) |
Query |
sort_key |
排序字段 created、modified、front_created |
string |
Body |
filter |
查询条件 |
1.1.23.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.23.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/query?desc=true&page=0&page_size=0
请求 body
{
"appeal" : false,
"platform_id" : "jdo2o",
"platform_ids" : "jdo2o",
"order_id" : "123456",
"order_id_in" : "123456",
"rtn_Id" : "123456",
"shop_id" : "12348522",
"station_id" : "12345",
"front_order_id" : "323434",
"front_rtn_id" : "3232434",
"customer_Name" : "张三",
"customer_Mobile" : "18587887789",
"customer_mobile_like" : "7789",
"types" : [ "refund" ],
"states" : [ "confirmed" ],
"carrier_states" : [ "initial" ],
"carrier_types" : [ "self" ],
"approve_states" : [ "none" ],
"return_states" : [ "none" ],
"refund_states" : [ "none" ],
"station_ids" : [ "string" ],
"product_contains" : "sku2323",
"front_created_start" : "2016-03-02 12:00:02",
"front_created_end" : "2016-03-02 12:00:02",
"created_start" : "2016-03-02 12:00:02",
"created_end" : "2016-03-02 12:00:02",
"deliver_rtn_start" : "2016-03-02 12:00:02",
"deliver_rtn_end" : "2016-03-02 12:00:02",
"waybill_id" : "32323434",
"index_modified_start" : "2016-03-02 12:00:02",
"index_modified_end" : "2016-03-02 12:00:02",
"pre_page" : 1,
"has_exception" : false,
"front_sku_id" : "3234",
"rtn_ids" : [ "string" ],
"sku_id" : "232323",
"has_billing" : false,
"bill_id_like" : "3454545",
"bill_id_eq" : "32323434",
"app_id_eq" : "3232323",
"front_station_order_no_eq" : "3232323",
"pick_info_operator_id_eq" : "string",
"pick_info_operator_id_in" : [ "string" ],
"pick_info_operator_name_like" : "string",
"vendor_code_eq" : "3232323",
"vendor_code_start_with" : "3232323",
"vendor_code_in" : "3232323",
"wrh_id_start_with" : "3232323",
"wrh_id_in" : "3232323",
"station_type" : "wrh",
"refund_phase" : "aftersale",
"fake_refund_date" : "2016-03-02"
}
1.1.23.5. HTTP响应示例
响应 200
{
"total" : 0,
"page" : 0,
"rtns" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"vendor" : {
"code" : "string",
"name" : "string"
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"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" : "脱敏地址**"
}
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655"
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:02",
"modified" : "2016-03-02 12:00:02",
"state" : "已退货",
"stationName" : "254145",
"creator" : "254145",
"source" : "平台生成:platform、商家发起:shop",
"rtn_id" : "123456",
"return_state" : "string",
"station_id" : "254145",
"order_finished" : "2020-06-17 10:00:00"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 2.0,
"total" : 12.03,
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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" : "123456",
"product_id" : "2123",
"item_title" : "冰红茶",
"real_qty" : 0.0,
"unit_price" : 12.03,
"purchase_price" : 12.0,
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"image_url" : "http://1213323.png",
"front_unit" : "string",
"origin_sku_id" : "e235346ger545",
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_spec" : "122.22",
"orig_unit" : "122.22",
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"shop_price" : 11.22,
"shop_total" : 11.22,
"item_id" : "22323232323",
"is_collocation" : false,
"relation_item_id" : "2123",
"order_item_id" : "1",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"relation_sku_id" : "2123",
"tags" : "标签",
"real_weight" : 0.0,
"real_quantity" : 0.0,
"trace_code_details" : [ {
"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"
} ],
"orig_mas_sku_id" : "string",
"is_gift" : true
} ],
"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\"}"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323"
},
"apply_id" : "0002",
"apply_system" : "shop(商家)、customer(消费者)",
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : "[]",
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"exception_time" : "2020-11-11 12:11:21",
"seller_info" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"voucher_urls" : [ "string" ],
"sku_quantity" : 1.0,
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0,
"balance" : 100.0
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"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"
} ],
"settle_info" : {
"settlable" : true,
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"rtn_req_id" : "string",
"req_id" : "string",
"address_change_fee" : 120.01,
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
}
} ],
"page_count" : 0,
"page_size" : 0
}
1.2. 统计服务
1.2.1. 提交count
POST /{tenant_id}/soms/countservice/count
1.2.1.1. 说明
提交count
1.2.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
count |
统计 |
1.2.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.2.1.4. HTTP请求示例
请求 path
/string/soms/countservice/count?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"type" : "order",
"action" : "decrypt",
"value" : "10",
"business_key" : "123",
"action_name" : "解密"
}
1.2.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.2.2. 查询统计
POST /{tenant_id}/soms/countservice/count/query
1.2.2.1. 说明
查询统计
1.2.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 [1, 1000] |
integer (int32) |
Query |
sort_key |
排序字段 |
string |
Body |
filter |
查询条件 |
1.2.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.2.2.4. HTTP请求示例
请求 path
/string/soms/countservice/count/query?desc=true&page=0&page_size=0
请求 body
{
"typeEq" : "order",
"typeIn" : "[\"order\"]",
"businessKeyEq" : "123",
"businessKeyIn" : "[\"123\",\"456\"]",
"actionEq" : "decrypt",
"actionIn" : "[\"decrypt\"]",
"actionNameLike" : "string",
"modifiedBegin" : "2021-08-23 12:16:20",
"modifiedEnd" : "2021-08-23 12:16:20"
}
1.2.2.5. HTTP响应示例
响应 200
{
"page" : 0,
"pageSize" : 100,
"pageCount" : 2,
"total" : "1000L",
"data" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"type" : "order",
"action" : "decrypt",
"value" : "10",
"business_key" : "123",
"action_name" : "解密"
} ]
}
1.2.3. 获取count
GET /{tenant_id}/soms/countservice/count/{business_key}
1.2.3.1. 说明
获取count
1.2.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
business_key |
业务key |
string |
Path |
tenant_id |
租户ID |
string |
Query |
action |
操作类型 |
string |
Query |
type |
类型 |
string |
1.2.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.2.3.4. HTTP请求示例
请求 path
/string/soms/countservice/count/string?action=string&type=string
1.2.3.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"type" : "order",
"action" : "decrypt",
"value" : "10",
"business_key" : "123",
"action_name" : "解密"
}
1.2.4. 计数加1
POST /{tenant_id}/soms/countservice/count/{business_key}/add
1.2.4.1. 说明
计数加1
1.2.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
business_key |
业务key |
string |
Path |
tenant_id |
租户Id |
string |
Query |
action |
操作类型 |
string |
Query |
operator |
string |
|
Query |
type |
类型 |
string |
1.2.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.2.4.4. HTTP请求示例
请求 path
/string/soms/countservice/count/string/add?action=string&type=string
1.2.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.3. 订单调整服务
1.3.1. 取指定调整单
GET /{tenant_id}/soms/orderadjustservice/orderadjust/{id}
1.3.1.1. 说明
取指定调整单
1.3.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
adjustId |
单据ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分 |
string |
1.3.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.1.4. HTTP请求示例
请求 path
/string/soms/orderadjustservice/orderadjust/{id}
1.3.1.5. HTTP响应示例
响应 200
{
"id" : "12121212",
"shop" : {
"id" : "string",
"name" : "string"
},
"state" : "未提交=initial,已提交 =submitted,审批通过 =approved,审批不通过=rejected;",
"reason" : "超重补差",
"remark" : "超重补差",
"amount" : 0.0,
"details" : "{}",
"items" : "{}",
"payments" : "{}",
"order_id" : "121212",
"adjust_phase" : "onsale=售中,aftersale=售后",
"adjust_version" : 1
}
1.4. 对账管理-公开服务
1.4.1. 上传订单商品明细结算数据
POST /{tenant_id}/soms/ordersettleservice/item/upload
1.4.1.1. 说明
上传订单商品明细结算数据
1.4.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
bills |
订单商品明细结算数据列表 |
1.4.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.1.4. HTTP请求示例
请求 path
/string/soms/ordersettleservice/item/upload?operator=string
请求 body
{
"orders" : [ {
"items" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"total" : 20.0,
"amount" : 33.0,
"item_id" : "212121212",
"platform_id" : "meituan",
"shop_id" : "43435",
"station_id" : "43435",
"station_name" : "西店",
"order_id" : "323232323",
"sku_id" : "43434",
"item_no" : "1",
"order_created" : "2018-12-07 14:34:00",
"front_sku_id" : "3230",
"front_price" : 12.0,
"front_discount_radio" : 0.0,
"front_discount_amount" : 2.0,
"front_score_amount" : 2.0,
"quantity" : 12.0,
"price" : 33.0,
"unit_price" : 32.0,
"discount_radio" : 0.0,
"discount_amount" : 12.0,
"pay_amount" : 12.0,
"fav_amount" : 12.0,
"discounts" : [ {
"type" : "item",
"act_id" : "343434",
"act_name" : "string",
"front_discount_type_id" : "3234",
"front_discount_type_name" : "string",
"front_discount_detail_type_id" : "2222",
"front_discount_detail_type_name" : "string",
"front_amount" : 333.0,
"discount_amount" : 5.0,
"radio" : 0.0,
"amount" : 2.0
} ]
} ],
"order_id" : "212121212"
} ]
}
1.4.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.4.2. 查询指定订单商品明细结算数据
POST /{tenant_id}/soms/ordersettleservice/ordersettles/item/query
1.4.2.1. 说明
查询指定订单商品明细结算数据
1.4.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,必须大于等于0 |
integer (int32) |
Query |
page_size |
分页大小,查询分页大小必须在[0,1000] |
integer (int32) |
Query |
sort_key |
排序字段 目前没有可支持的值 不传默认orderId |
string |
Body |
filter |
查询过滤器 |
1.4.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.2.4. HTTP请求示例
请求 path
/string/soms/ordersettleservice/ordersettles/item/query?desc=true&page=0&page_size=0
请求 body
{
"platform_id_eq" : "meituan",
"shop_id_eq" : "15154",
"order_id_eq" : "323243434",
"item_id_in" : [ "string" ]
}
1.4.2.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 0,
"items" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"total" : 20.0,
"amount" : 33.0,
"item_id" : "212121212",
"platform_id" : "meituan",
"shop_id" : "43435",
"station_id" : "43435",
"station_name" : "西店",
"order_id" : "323232323",
"sku_id" : "43434",
"item_no" : "1",
"order_created" : "2018-12-07 14:34:00",
"front_sku_id" : "3230",
"front_price" : 12.0,
"front_discount_radio" : 0.0,
"front_discount_amount" : 2.0,
"front_score_amount" : 2.0,
"quantity" : 12.0,
"price" : 33.0,
"unit_price" : 32.0,
"discount_radio" : 0.0,
"discount_amount" : 12.0,
"pay_amount" : 12.0,
"fav_amount" : 12.0,
"discounts" : [ {
"type" : "item",
"act_id" : "343434",
"act_name" : "string",
"front_discount_type_id" : "3234",
"front_discount_type_name" : "string",
"front_discount_detail_type_id" : "2222",
"front_discount_detail_type_name" : "string",
"front_amount" : 333.0,
"discount_amount" : 5.0,
"radio" : 0.0,
"amount" : 2.0
} ]
} ],
"page_count" : 10,
"page_size" : 10
}
1.4.3. 查询指定对账数据
POST /{tenant_id}/soms/ordersettleservice/ordersettles/query
1.4.3.1. 说明
查询指定对账数据
1.4.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,必须大于等于0 |
integer (int32) |
Query |
page_size |
查询分页大小必须在[0,1000] |
integer (int32) |
Query |
sort_key |
排序字段 id 不传默认orderId |
string |
Body |
filter |
查询过滤器 |
1.4.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.3.4. HTTP请求示例
请求 path
/string/soms/ordersettleservice/ordersettles/query?desc=true&page=0&page_size=0
请求 body
{
"ids" : [ "string" ],
"platform_id_eq" : "meituan",
"shop_id_eq" : "323443",
"order_id_eq" : "323345354",
"station_id_eq" : "0001",
"sp_store_id_eq" : "0001",
"order_id_in" : [ "string" ],
"created_start" : "2019-08-07 19:49:36",
"created_end" : "2019-08-07 19:49:36",
"modified_start" : "2019-08-07 19:49:36",
"modified_end" : "2019-08-07 19:49:36",
"id_end_no_equal" : "string",
"order_ids" : [ "string" ],
"platform_id_in" : [ "string" ],
"station_id_in" : [ "string" ],
"order_start_with" : "string",
"front_type_name_start_with" : "string",
"front_type_name_eq" : "string",
"settle_date_start" : "2019-08-07 19:49:36",
"settle_date_end" : "2019-08-07 19:49:36"
}
1.4.3.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 0,
"items" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"total" : 22.0,
"discount" : 2.0,
"amount" : 22.0,
"freight" : 0.0,
"discounts" : [ {
"type" : "item",
"act_id" : "343434",
"act_name" : "string",
"front_discount_type_id" : "3234",
"front_discount_type_name" : "string",
"front_discount_detail_type_id" : "2222",
"front_discount_detail_type_name" : "string",
"front_amount" : 333.0,
"discount_amount" : 5.0,
"radio" : 0.0,
"amount" : 2.0
} ],
"settle_id" : "68785680023933117_1",
"front_settle_id" : "687856800239331",
"platform_id" : "meituan",
"shop_id" : "2123",
"station_id" : "212123",
"station_name" : "2323",
"sp_store_id" : "2323",
"front_type_id" : "1",
"front_type_name" : "外卖订单",
"sub_front_type_id" : "1",
"sub_front_type_name" : "外卖订单",
"delivery_type_id" : "string",
"delivery_type_name" : "string",
"order_id" : "132344",
"front_state" : "8",
"settle_date" : "2019-08-07 00:00:00",
"order_created" : "2019-08-07 00:00:00",
"order_finish_time" : "2019-08-07 00:00:00",
"refund_id" : "323434343",
"refund_time" : "2019-08-07 00:00:00",
"package_box" : 2.0,
"package_fee" : 1.0,
"shop_package_fee" : 1.0,
"other_fees" : [ {
"type" : "delivery_tips",
"fee" : 21.0
} ],
"discount_amount" : 2.0,
"settle_discount" : 2.0,
"shop_discount" : 2.0,
"shop_freight_discount" : 0.0,
"freight_discount" : 0.0,
"settle_state" : "已入账",
"settle_amount" : 2.0,
"settle" : 22.0,
"settle_commission" : 2.0,
"selttle_commission" : 2.0,
"settle_freight" : 120.01,
"performance_service_fee" : 2.0,
"platform_service_fee" : 2.0,
"platform_service_rate" : 0.02,
"bottom_service_fee" : 2.0,
"platform_freight_discount" : 0.0,
"pay_amount" : 22.0,
"cod_amount" : 0.0,
"freight_commission" : 0.0,
"platform_promotion_settle" : 0.0,
"platform_subsidy_suspend" : 0.0,
"invoice_fee" : 0.0
} ],
"page_count" : 10,
"page_size" : 10
}
1.4.4. 上传对账数据
POST /{tenant_id}/soms/ordersettleservice/upload
1.4.4.1. 说明
上传对账数据
1.4.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
bills |
订单结算单列表对象 |
1.4.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.4.4. HTTP请求示例
请求 path
/string/soms/ordersettleservice/upload?operator=string
请求 body
{
"items" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"total" : 22.0,
"discount" : 2.0,
"amount" : 22.0,
"freight" : 0.0,
"discounts" : [ {
"type" : "item",
"act_id" : "343434",
"act_name" : "string",
"front_discount_type_id" : "3234",
"front_discount_type_name" : "string",
"front_discount_detail_type_id" : "2222",
"front_discount_detail_type_name" : "string",
"front_amount" : 333.0,
"discount_amount" : 5.0,
"radio" : 0.0,
"amount" : 2.0
} ],
"settle_id" : "68785680023933117_1",
"front_settle_id" : "687856800239331",
"platform_id" : "meituan",
"shop_id" : "2123",
"station_id" : "212123",
"station_name" : "2323",
"sp_store_id" : "2323",
"front_type_id" : "1",
"front_type_name" : "外卖订单",
"sub_front_type_id" : "1",
"sub_front_type_name" : "外卖订单",
"delivery_type_id" : "string",
"delivery_type_name" : "string",
"order_id" : "132344",
"front_state" : "8",
"settle_date" : "2019-08-07 00:00:00",
"order_created" : "2019-08-07 00:00:00",
"order_finish_time" : "2019-08-07 00:00:00",
"refund_id" : "323434343",
"refund_time" : "2019-08-07 00:00:00",
"package_box" : 2.0,
"package_fee" : 1.0,
"shop_package_fee" : 1.0,
"other_fees" : [ {
"type" : "delivery_tips",
"fee" : 21.0
} ],
"discount_amount" : 2.0,
"settle_discount" : 2.0,
"shop_discount" : 2.0,
"shop_freight_discount" : 0.0,
"freight_discount" : 0.0,
"settle_state" : "已入账",
"settle_amount" : 2.0,
"settle" : 22.0,
"settle_commission" : 2.0,
"selttle_commission" : 2.0,
"settle_freight" : 120.01,
"performance_service_fee" : 2.0,
"platform_service_fee" : 2.0,
"platform_service_rate" : 0.02,
"bottom_service_fee" : 2.0,
"platform_freight_discount" : 0.0,
"pay_amount" : 22.0,
"cod_amount" : 0.0,
"freight_commission" : 0.0,
"platform_promotion_settle" : 0.0,
"platform_subsidy_suspend" : 0.0,
"invoice_fee" : 0.0
} ]
}
1.4.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.5. 销售单服务
1.5.1. 提交销售单
POST /{tenant_id}/soms/saleorderservice/saleorder
1.5.1.1. 说明
提交销售单
1.5.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order |
销售单 |
1.5.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.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_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"
},
"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",
"combined" : true,
"gift" : 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.5.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"sale_order_id" : "string"
}
1.5.2. 取指定平台销售单
GET /{tenant_id}/soms/saleorderservice/saleorder/front/{front_order_id}
1.5.2.1. 说明
取指定平台销售单
1.5.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
front_order_id |
平台销售单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。 |
string |
Query |
platform_id |
平台id |
string |
1.5.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.2.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorder/front/string?platform_id=string
1.5.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_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"
},
"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",
"combined" : true,
"gift" : 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.5.3. 取指定销售单
GET /{tenant_id}/soms/saleorderservice/saleorder/{id}
1.5.3.1. 说明
取指定销售单
1.5.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
sale_order_id |
销售单id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。 |
string |
1.5.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.3.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorder/{id}
1.5.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_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"
},
"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",
"combined" : true,
"gift" : 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.5.4. 更新销售订单配送状态
POST /{tenant_id}/soms/saleorderservice/saleorder/{id}/action/deliver
1.5.4.1. 说明
更新销售订单配送状态
1.5.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.5.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.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.5.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.5.5. 取指定销售单
GET /{tenant_id}/soms/saleorderservice/saleorders
1.5.5.1. 说明
取指定销售单
1.5.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。 |
string |
Query |
sale_order_id |
销售单id |
< string > array(multi) |
1.5.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.5.4. HTTP请求示例
请求 path
/string/soms/saleorderservice/saleorders?sale_order_id=string
1.5.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_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"
},
"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",
"combined" : true,
"gift" : 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.5.6. 查询销售单
POST /{tenant_id}/soms/saleorderservice/saleorders/query
1.5.6.1. 说明
查询销售单(ES查询,推荐使用)
1.5.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.5.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.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.5.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_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"
},
"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",
"combined" : true,
"gift" : 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
}
1.6. 评论服务
1.6.1. 提交订单评价
POST /{tenant_id}/soms/commentservice/comment
1.6.1.1. 说明
提交订单评价
1.6.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order_comment |
订单评价 |
1.6.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.1.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "202012021621",
"store" : {
"id" : "string",
"name" : "string"
},
"time" : "2020-12-02 00:00:00",
"content" : "很好",
"labels" : [ "string" ],
"details" : [ {
"type" : "string",
"score" : 0,
"labels" : [ "string" ]
} ],
"order_id" : "202012021621",
"platform_id" : "jdo2o",
"shop_id" : "213",
"image_urls" : [ "string" ],
"extra_info" : {
"next_time" : "2020-12-02 00:00:00",
"next_content" : "很好",
"delivery_content" : "很好",
"next_image_urls" : "url"
},
"like_skus" : [ "string" ],
"dislike_skus" : [ "string" ],
"expire_time" : "2020-06-17 10:00:00",
"front_comment_id" : "string",
"reply_state" : "string",
"reply_time" : "2020-06-17 10:00:00",
"reply_content" : "string",
"process_state" : "string",
"process_remark" : "string",
"remark" : "string",
"tags" : [ "string" ]
}
1.6.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.6.2. 查询评价
POST /{tenant_id}/soms/commentservice/comment/query
1.6.2.1. 说明
查询评价
1.6.2.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 |
排序字段,取值范围:created(创建时间)、commentTime(评价时间) |
string |
Body |
filter |
查询条件 |
1.6.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.2.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/query?desc=true
请求 body
{
"platformIdEq" : "jdo2o",
"stationIdEq" : "string",
"idEq" : "string",
"orderIdIn" : [ "string" ],
"processStateEq" : "string",
"processStateNotIn" : [ "string" ],
"tagEq" : "string",
"tagIn" : [ "string" ],
"tagHas" : [ "string" ],
"orderIdLike" : "32323232323323",
"hasReply" : "invalid",
"satisfieLevel" : "high",
"hasContent" : false,
"commentTimeStart" : "2016-03-02 12:00:01",
"commentTimeEnd" : "2016-03-02 12:00:01",
"id_in" : [ "string" ]
}
1.6.2.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"comments" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "202012021621",
"store" : {
"id" : "string",
"name" : "string"
},
"time" : "2020-12-02 00:00:00",
"content" : "很好",
"labels" : [ "string" ],
"details" : [ {
"type" : "string",
"score" : 0,
"labels" : [ "string" ]
} ],
"order_id" : "202012021621",
"platform_id" : "jdo2o",
"shop_id" : "213",
"image_urls" : [ "string" ],
"extra_info" : {
"next_time" : "2020-12-02 00:00:00",
"next_content" : "很好",
"delivery_content" : "很好",
"next_image_urls" : "url"
},
"like_skus" : [ "string" ],
"dislike_skus" : [ "string" ],
"expire_time" : "2020-06-17 10:00:00",
"front_comment_id" : "string",
"reply_state" : "string",
"reply_time" : "2020-06-17 10:00:00",
"reply_content" : "string",
"process_state" : "string",
"process_remark" : "string",
"remark" : "string",
"tags" : [ "string" ]
} ],
"page_count" : 5,
"page_size" : 20
}
1.6.3. 获取评价
GET /{tenant_id}/soms/commentservice/comment/{id}
1.6.3.1. 说明
获取评价
1.6.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
评论Id |
string |
Path |
tenant_id |
租户ID |
string |
1.6.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.3.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/string
1.6.3.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "202012021621",
"store" : {
"id" : "string",
"name" : "string"
},
"time" : "2020-12-02 00:00:00",
"content" : "很好",
"labels" : [ "string" ],
"details" : [ {
"type" : "string",
"score" : 0,
"labels" : [ "string" ]
} ],
"order_id" : "202012021621",
"platform_id" : "jdo2o",
"shop_id" : "213",
"image_urls" : [ "string" ],
"extra_info" : {
"next_time" : "2020-12-02 00:00:00",
"next_content" : "很好",
"delivery_content" : "很好",
"next_image_urls" : "url"
},
"like_skus" : [ "string" ],
"dislike_skus" : [ "string" ],
"expire_time" : "2020-06-17 10:00:00",
"front_comment_id" : "string",
"reply_state" : "string",
"reply_time" : "2020-06-17 10:00:00",
"reply_content" : "string",
"process_state" : "string",
"process_remark" : "string",
"remark" : "string",
"tags" : [ "string" ]
}
1.6.4. 更新评价回复
POST /{tenant_id}/soms/commentservice/comment/{id}/reply
1.6.4.1. 说明
更新评价回复
1.6.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
评论Id |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
更新评价回复request |
1.6.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.4.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/string/reply?operator=string
请求 body
{
"reply_content" : "string"
}
1.6.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7. 订单服务
1.7.1. 获取催单
GET /{tenant_id}/soms/orderremindservice/orderremind/{id}
1.7.1.1. 说明
获取催单
1.7.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
催单ID |
string |
Path |
tenant_id |
租户Id |
string |
1.7.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.1.4. HTTP请求示例
请求 path
/string/soms/orderremindservice/orderremind/string
1.7.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.7.2. 催单回复
POST /{tenant_id}/soms/orderremindservice/remind/{id}/reply
1.7.2.1. 说明
催单回复
1.7.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
催单ID |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
催单 |
1.7.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.3. 查询催单
POST /{tenant_id}/soms/orderremindservice/reminds/query
1.7.3.1. 说明
查询催单
1.7.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.7.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.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.7.4. 提交订单(旧版)
POST /{tenant_id}/soms/orderservice/order
1.7.4.1. 说明
提交订单,只支持新增订单,不支持修改订单,状态:confirmed
1.7.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order |
订单 |
1.7.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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.7.4.5. HTTP响应示例
响应 200
{
"id" : "string"
}
1.7.5. 自提检查
POST /{tenant_id}/soms/orderservice/order/action/selftake/check
1.7.5.1. 说明
自提检查
1.7.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.7.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "5745323545453"
}
1.7.6. 确认自提(新接口)
POST /{tenant_id}/soms/orderservice/order/action/v2/selftake
1.7.6.1. 说明
确认自提(新接口)
1.7.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.7.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "5745323545453"
}
1.7.7. 订单检测
POST /{tenant_id}/soms/orderservice/order/check
1.7.7.1. 说明
地址检测:支持检测美团、蜂鸟、顺丰大网,用于检测地址是否在配送范围内;配送检测:用于检测配送平台是否可送;配送计算:用于计算使用哪个配送平台进行配送
1.7.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
订单检测 |
1.7.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.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.7.8. 批量修改订单下单门店
POST /{tenant_id}/soms/orderservice/order/mod/store
1.7.8.1. 说明
批量修改订单下单门店
1.7.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
修改内容 |
1.7.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.8.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/mod/store?operator=string
请求 body
{
"mods" : [ {
"order_id" : "1212",
"order_store" : {
"id" : "string",
"name" : "string"
}
} ]
}
1.7.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"errors" : [ {
"id" : "1212",
"message" : "订单不存在"
} ]
}
1.7.9. 批量取指定订单
GET /{tenant_id}/soms/orderservice/order/orders
1.7.9.1. 说明
批量取订单,级联信息可以通过parts获取
1.7.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.7.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.9.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/orders?id=string
1.7.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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.7.10. 补发订单
POST /{tenant_id}/soms/orderservice/order/reissue
1.7.10.1. 说明
补发订单
1.7.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
订单补发请求 |
1.7.10.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.10.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "string"
}
1.7.11. 根据销售订单号取订单
GET /{tenant_id}/soms/orderservice/order/saleorder/{sale_order_id}
1.7.11.1. 说明
根据销售订单号取订单
1.7.11.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
sale_order_id |
销售订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,取值范围:items(商品详情)、paym entDetails(支付详情)、invoiceDetails(发票详情) |
string |
1.7.11.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.11.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/saleorder/string
1.7.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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.7.12. 提交订单(新版)
POST /{tenant_id}/soms/orderservice/order/submit
1.7.12.1. 说明
提交订单,只支持新增订单,不支持修改订单,订单状态:confirmed
1.7.12.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order |
订单 |
1.7.12.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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.7.12.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "string"
}
1.7.13. 批量取指定订单_v2
POST /{tenant_id}/soms/orderservice/order/v2/orders
1.7.13.1. 说明
批量取订单,级联信息可以通过parts获取
1.7.13.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,取值范围:items(商品详情)、item.details(商品组合详情),paymentDetails(支付详情)、invoiceDetails(发票详情)、printBills(打印信息)、prom(优惠信息)、exceptions(订单异常信息)、waybill.printinfo(运单打印信息) |
string |
Body |
ids |
订单号集合 |
1.7.13.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.13.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/v2/orders
请求 body
{
"ids" : [ "string" ]
}
1.7.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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.7.14. 取指定订单
GET /{tenant_id}/soms/orderservice/order/{id}
1.7.14.1. 说明
取指定订单,如果需要获取订单商品明细等其他信息,URL需要传parts参数
1.7.14.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
orderId |
订单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.7.14.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.14.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/{id}
1.7.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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.7.15. 取消订单
POST /{tenant_id}/soms/orderservice/order/{id}/action/cancel
1.7.15.1. 说明
发货前,用户申请取消订单会直接取消订单;发货后用户申请取消订单会自动生成退货订单,退货订单收货后,订单变成客户拒收。
1.7.15.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
取消订单请求对象 |
1.7.15.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.15.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/cancel?operator=string
请求 body
{
"type" : "customerCancel",
"reason" : "不想要了",
"frontRtnId" : "599565656"
}
1.7.15.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.16. 更新订单承运信息
POST /{tenant_id}/soms/orderservice/order/{id}/action/carrier
1.7.16.1. 说明
更新订单承运信息
1.7.16.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.7.16.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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"
},
"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
}
}
1.7.16.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.17. 更新订单配送状态(发货、签收)
POST /{tenant_id}/soms/orderservice/order/{id}/action/deliver
1.7.17.1. 说明
更新订单配送状态,更新发货:delivery_state=shipped;更新签收:delivery_state=signed
1.7.17.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.7.17.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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"
},
"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.7.17.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.18. 确认自提
POST /{tenant_id}/soms/orderservice/order/{id}/action/selftake
1.7.18.1. 说明
确认自提
1.7.18.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.7.18.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.18.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/selftake?operator=string
请求 body
{
"store_id" : "454534",
"selftake_qrcode" : "222222"
}
1.7.18.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "5745323545453"
}
1.7.19. 更新订单订单门店作业状态
POST /{tenant_id}/soms/orderservice/order/{id}/action/storeoperation
1.7.19.1. 说明
更新订单门店作业状态
1.7.19.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
门店作业请求 |
1.7.19.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.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.7.19.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.20. 商家主动发起退款
POST /{tenant_id}/soms/orderservice/order/{id}/applyrtn
1.7.20.1. 说明
商家主动发起退款
1.7.20.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
申请请求对象 |
1.7.20.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.20.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/applyrtn?operator=string
请求 body
{
"reason" : "不想要了",
"type" : "refund",
"policy" : "取值:orig_sku(原商品)、sku(现商品)",
"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"
}
1.7.20.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"apply_id" : "申请幂等ID",
"apply_ids" : "多个申请幂等ID"
}
1.7.21. 取消承运商配送申请
POST /{tenant_id}/soms/orderservice/order/{id}/cancel/carrier
1.7.21.1. 说明
取消承运商配送申请
1.7.21.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
取消承运商调度请求 |
1.7.21.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.21.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/cancel/carrier?operator=string
请求 body
{
"reason" : "客户不要了",
"carrier_id" : "343434343",
"auto_dispatch" : true
}
1.7.21.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.22. 更新开票结果
POST /{tenant_id}/soms/orderservice/order/{id}/invoice/result
1.7.22.1. 说明
更新开票结果
1.7.22.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
发票结果更新请求对象 |
1.7.22.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.22.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.7.22.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.23. 更新开票
POST /{tenant_id}/soms/orderservice/order/{id}/invoices
1.7.23.1. 说明
更新开票
1.7.23.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
发票更新请求对象 |
1.7.23.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.23.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.7.23.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.24. 获取快递订单物流轨迹信息
GET /{tenant_id}/soms/orderservice/order/{id}/kd/trace
1.7.24.1. 说明
获取快递订单物流轨迹信息,支持快递100
1.7.24.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.7.24.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.24.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/kd/trace?operator=string
1.7.24.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.7.25. 更换承运商
POST /{tenant_id}/soms/orderservice/order/{id}/mod/carrier
1.7.25.1. 说明
更换承运商
1.7.25.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
承运商修改请求 |
1.7.25.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.25.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.7.25.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.26. 订单付款
POST /{tenant_id}/soms/orderservice/order/{id}/pay
1.7.26.1. 说明
订单付款
1.7.26.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
支付请求对象 |
1.7.26.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.26.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.7.26.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.27. 更新订单拣货信息
POST /{tenant_id}/soms/orderservice/order/{id}/pickInfo
1.7.27.1. 说明
更新订单拣货信息
1.7.27.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
拣货信息请求 |
1.7.27.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.27.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.7.27.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.28. 更新订单标签
POST /{tenant_id}/soms/orderservice/order/{id}/tagging
1.7.28.1. 说明
更新订单标签
1.7.28.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
更新订单标签请求 |
1.7.28.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.28.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/tagging?operator=string
请求 body
{
"add_tags" : [ "string" ],
"remove_tags" : [ "string" ]
}
1.7.28.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.29. 更新订单客户备注
POST /{tenant_id}/soms/orderservice/order/{id}/updateCustomerNote
1.7.29.1. 说明
更新订单客户备注
1.7.29.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
更新客户备注请求 |
1.7.29.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.29.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/updateCustomerNote?operator=string
请求 body
{
"customer_note" : "string"
}
1.7.29.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7.30. 查询订单(数据库查询)
POST /{tenant_id}/soms/orderservice/orders/db/query
1.7.30.1. 说明
查询订单(不推荐使用)
1.7.30.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.7.30.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.30.4. HTTP请求示例
请求 path
/string/soms/orderservice/orders/db/query?desc=true&page=0&page_size=0
请求 body
{
"station_id_in" : "[\"0001\"]",
"order_id_or_front_station_order_no_eq" : "01",
"order_id_eq" : "718597703857",
"front_created_start" : "2025-03-05 10:20:30",
"front_created_end" : "2025-03-05 16:28:32",
"pick_info_operator_id_eq" : "9527",
"pick_info_operator_id_in" : [ "string" ],
"operation_state_in" : "[\"accepted\"]",
"state_in" : "[\"confirmed\"]",
"created_start" : "2025-03-03 00:00:00",
"created_end" : "2025-03-03 23:59:59",
"need_count_total" : true
}
1.7.30.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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
}
1.7.31. 查询订单(ES查询)
POST /{tenant_id}/soms/orderservice/orders/query
1.7.31.1. 说明
查询订单(ES查询,推荐使用)
1.7.31.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.7.31.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.31.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.7.31.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" : [ {
"waybill_id" : "123"
} ],
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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" : [ {
"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
}
1.8. 销售退服务
1.8.1. 根据平台申请单号取指定销售退
GET /{tenant_id}/soms/rtnreqservice/rtnreq/front/{front_rtn_id}
1.8.1.1. 说明
根据平台申请单号取指定销售退
1.8.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
front_rtn_id |
销售退平台id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、changeItems(换出商品详情) |
string |
Query |
platform_id |
平台ID |
string |
1.8.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.1.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/front/string?platform_id=string
1.8.1.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"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" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"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"
},
"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"
} ],
"returner" : {
"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" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_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\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_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" : [ {
"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"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
}
1.8.2. 提交销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/submit
1.8.2.1. 说明
提交销售退
1.8.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
rtn_req |
销售退 |
1.8.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.2.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/submit?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"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" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"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"
},
"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"
} ],
"returner" : {
"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" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_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\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_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" : [ {
"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"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
}
1.8.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"id" : "string"
}
1.8.3. 取指定销售退
GET /{tenant_id}/soms/rtnreqservice/rtnreq/{id}
1.8.3.1. 说明
取指定销售退
1.8.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、changeItems(换出商品详情) |
string |
1.8.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.3.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string
1.8.3.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"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" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"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"
},
"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"
} ],
"returner" : {
"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" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_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\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_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" : [ {
"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"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
}
1.8.4. 审核销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/approve
1.8.4.1. 说明
审核销售退
1.8.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
退单审核请求 |
1.8.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.4.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/approve?operator=string
请求 body
{
"reason" : "已发货,不能退",
"approve_state" : "serviceApproved"
}
1.8.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.5. 取消销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/cancel
1.8.5.1. 说明
取消销售退
1.8.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.5.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/cancel?operator=string
请求 body
{
"reason" : "我不想要了",
"approve_state" : "financeRefuse"
}
1.8.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.6. 确认退货状态
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/deliver
1.8.6.1. 说明
确认退货状态
1.8.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退货单ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
退货请求对象 |
1.8.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.6.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/deliver?operator=string
请求 body
{
"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"
},
"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"
} ],
"return_state" : "none"
}
1.8.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.7. 修改销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/modify
1.8.7.1. 说明
修改销售退
1.8.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.7.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/modify?operator=string
请求 body
{
"type" : "4356465768",
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"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"
},
"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"
} ],
"front" : {
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"extend_props" : "string"
},
"change_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" : [ {
"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"
} ],
"apply_reason" : "不想要了",
"customer_note" : "haha",
"seller_node" : "note",
"wrh_id" : "string"
}
1.8.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.8. 确认退款
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/refund
1.8.8.1. 说明
确认退款
1.8.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.8.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/refund?operator=string
请求 body
{
"refundState" : "refunded",
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ]
}
1.8.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.9. 拒绝销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/refuse
1.8.9.1. 说明
拒绝销售退
1.8.9.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
退单拒绝审核请求 |
1.8.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.9.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/refuse?operator=string
1.8.9.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.10. 查询销售退(数据库查询)
POST /{tenant_id}/soms/rtnreqservice/rtnreqs/query
1.8.10.1. 说明
查询销售退(数据库查询)
1.8.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 |
integer (int32) |
Query |
sort_key |
排序字段 created、modified、front_created |
string |
Body |
filter |
查询条件 |
1.8.10.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.10.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreqs/query?desc=true&page=0&page_size=0
请求 body
{
"platform_id" : "jdo2o",
"order_id" : "123456",
"order_id_start_with" : "123456",
"order_id_in" : "123456",
"rtn_req_id" : "123456",
"rtn_req_id_start_with" : "123456",
"shop_id" : "12348522",
"front_order_id" : "323434",
"customer_Name" : "张三",
"customer_Mobile" : "18587887789",
"customer_mobile_like" : "7789",
"types" : [ "refund" ],
"states" : [ "confirmed" ],
"approve_states" : [ "none" ],
"front_created_start" : "2016-03-02 12:00:02",
"front_created_end" : "2016-03-02 12:00:02",
"created_start" : "2016-03-02 12:00:02",
"created_end" : "2016-03-02 12:00:02",
"pre_page" : 1,
"has_exception" : false,
"station_ids" : "12345,56789"
}
1.8.10.5. HTTP响应示例
响应 200
{
"total" : 0,
"page" : 0,
"rtnReqs" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"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" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"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"
},
"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"
} ],
"returner" : {
"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" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_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\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_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" : [ {
"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"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
} ],
"page_count" : 0,
"page_size" : 0
}
1.8.11. 查询销售退(ES查询)
POST /{tenant_id}/soms/rtnreqservice/rtnreqs/queryEs
1.8.11.1. 说明
查询销售退(ES查询,推荐使用)
1.8.11.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 |
integer (int32) |
Query |
sort_key |
排序字段 created、modified、front_created |
string |
Body |
filter |
查询条件 |
1.8.11.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.11.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreqs/queryEs?desc=true&page=0&page_size=0
请求 body
{
"platform_id" : "jdo2o",
"order_id" : "123456",
"order_id_start_with" : "123456",
"order_id_in" : "123456",
"rtn_req_id" : "123456",
"rtn_req_id_start_with" : "123456",
"shop_id" : "12348522",
"front_order_id" : "323434",
"customer_Name" : "张三",
"customer_Mobile" : "18587887789",
"customer_mobile_like" : "7789",
"types" : [ "refund" ],
"states" : [ "confirmed" ],
"approve_states" : [ "none" ],
"front_created_start" : "2016-03-02 12:00:02",
"front_created_end" : "2016-03-02 12:00:02",
"created_start" : "2016-03-02 12:00:02",
"created_end" : "2016-03-02 12:00:02",
"pre_page" : 1,
"has_exception" : false,
"station_ids" : "12345,56789",
"station_id" : "12345",
"platform_ids" : "jdo2o",
"return_states" : [ "none" ],
"waybill_id_condition" : "12345",
"customer_name_like" : "张三"
}
1.8.11.5. HTTP响应示例
响应 200
{
"total" : 0,
"page" : 0,
"rtnReqs" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"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" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"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"
},
"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"
} ],
"returner" : {
"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" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_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\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_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" : [ {
"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"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
} ],
"page_count" : 0,
"page_size" : 0
}
1.8.12. 查指定销售订单的退货单
GET /{tenant_id}/soms/rtnreqservice/rtnreqs/saleorder
1.8.12.1. 说明
查指定销售订单的退货单
1.8.12.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
销售订单ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
1.8.12.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.12.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreqs/saleorder?order_id=string
1.8.12.5. HTTP响应示例
响应 200
{
"reqs" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"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" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"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"
},
"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"
} ],
"returner" : {
"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" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"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"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"combined" : true,
"gift" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_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\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_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" : [ {
"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"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
} ]
}
1.9. 门店作业规则服务
1.9.1. 查询门店作业规则服务
POST /{tenant_id}/soms/storeoperationruleservice/rule
1.9.1.1. 说明
查询门店作业规则服务
1.9.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
desc |
升序、降序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
每页条数 |
integer (int32) |
Query |
sort_key |
排序字段 |
string |
Body |
store_operation_rule_filter |
过滤条件 |
1.9.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
< StoreOperationRule > array |
1.9.1.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule?desc=true&page=0&page_size=0&sort_key=string
请求 body
{
"typeEq" : "string",
"platformIdEq" : "string",
"shopIdEq" : "string",
"storeIdEq" : "string",
"storeIdIn" : [ "string" ],
"stateEq" : "string"
}
1.9.1.5. HTTP响应示例
响应 200
[ {
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
},
"source" : "string"
} ]
1.9.2. 获取门店作业规则
GET /{tenant_id}/soms/storeoperationruleservice/rule
1.9.2.1. 说明
获取门店作业规则
1.9.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家代码 |
string |
Query |
store_id |
门店代码 |
string |
Query |
type |
规则:storeRtnRule(门店退单规则) |
string |
1.9.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.9.2.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule?platform_id=string&shop_id=string&store_id=string&type=string
1.9.2.5. HTTP响应示例
响应 200
{
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
},
"source" : "string"
}
1.9.3. 删除门店作业规则
DELETE /{tenant_id}/soms/storeoperationruleservice/rule/delete
1.9.3.1. 说明
删除门店作业规则
1.9.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家代码 |
string |
Query |
store_id |
门店代码 |
string |
Query |
type |
规则:storeRtnRule(门店退单规则) |
string |
1.9.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.9.3.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule/delete?platform_id=string&shop_id=string&store_id=string&type=string
1.9.4. 保存门店作业规则
POST /{tenant_id}/soms/storeoperationruleservice/rule/save
1.9.4.1. 说明
保存门店作业规则
1.9.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
store_operation_rule_save |
自提规则 |
1.9.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.9.4.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule/save?operator=string
请求 body
{
"platform_id" : "33454",
"type" : "33454",
"shop_id" : "storeRtnRule",
"store_id" : "0001",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
}
}
1.10. 自提规则服务
1.10.1. 获取自提规则
GET /{tenant_id}/soms/selftakeruleservice/selftakerule
1.10.1.1. 说明
获取自提规则
1.10.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家ID |
string |
Query |
store_id |
门店ID |
string |
1.10.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.10.1.4. HTTP请求示例
请求 path
/string/soms/selftakeruleservice/selftakerule?platform_id=string&shop_id=string
1.10.1.5. HTTP响应示例
响应 200
{
"state" : "applying",
"def" : {
"check_selftake_code" : true
},
"source" : "ptm_store",
"platform_id" : "meituan",
"shop_id" : "33454",
"store_id" : "0001"
}
1.11. 属性服务
1.11.1. 保存属性服务
POST /{tenant_id}/soms/optionservice/option
1.11.1.1. 说明
保存属性服务
1.11.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
option |
属性 |
1.11.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.1.4. HTTP请求示例
请求 path
/string/soms/optionservice/option?operator=string
请求 body
{
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
}
1.11.2. 保存属性服务
POST /{tenant_id}/soms/optionservice/option/batchsave
1.11.2.1. 说明
保存属性服务
1.11.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
options |
属性 |
< Option > array |
1.11.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.2.4. HTTP请求示例
请求 path
/string/soms/optionservice/option/batchsave?operator=string
请求 body
[ {
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
} ]
1.11.3. 删除属性服务
POST /{tenant_id}/soms/optionservice/option/{type}/delete
1.11.3.1. 说明
删除属性服务
1.11.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Path |
type |
类型 |
string |
Query |
value |
值 |
string |
1.11.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.3.4. HTTP请求示例
请求 path
/string/soms/optionservice/option/string/delete
1.11.4. 获取属性服务
GET /{tenant_id}/soms/optionservice/options/{type}/getall
1.11.4.1. 说明
获取属性服务
1.11.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Path |
type |
类型:remind(催单)、comment(评论) |
string |
1.11.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.4.4. HTTP请求示例
请求 path
/string/soms/optionservice/options/string/getall
1.11.4.5. HTTP响应示例
响应 200
{
"options" : [ {
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
} ]
}
1.11.5. 获取属性服务
GET /{tenant_id}/soms/optionservice/options/{type}/getoption
1.11.5.1. 说明
获取属性服务
1.11.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Path |
type |
类型:remind(催单)、comment(评论) |
string |
Query |
value |
值 |
string |
1.11.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.5.4. HTTP请求示例
请求 path
/string/soms/optionservice/options/string/getoption
1.11.5.5. HTTP响应示例
响应 200
{
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
}
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.3. AdjustDetail
名称 | 说明 | 类型 |
---|---|---|
after |
调整后 |
string |
before |
调整前 |
string |
field |
调整字段 |
string |
2.5. CRMInfoModificationRequest
名称 | 说明 | 类型 |
---|---|---|
score |
样例 : |
number |
2.6. CancelCarrierRequest
取消承运商配送请求对象
名称 | 说明 | 类型 |
---|---|---|
auto_dispatch |
是否自动调度到下一个承运商,默认为false |
boolean |
carrier_id |
承运商Id |
string |
reason |
原因 |
string |
2.7. CancelOrderRequest
取消订单请求
名称 | 说明 | 类型 |
---|---|---|
frontRtnId |
平台退单号 |
string |
reason |
取消原因 |
string |
type |
取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消)、refused(客户拒接) |
string |
2.8. CancelRtnReqRequest
取消退货请求对象
名称 | 说明 | 类型 |
---|---|---|
approve_state |
审核状态:none(未审核),serviceApproved(客服已审核),serviceRefuse(客服已拒绝),financeApproved(财务已审核),financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
reason |
取消原因 |
string |
2.9. CancelRtnRequest
取消退货请求对象
名称 | 说明 | 类型 |
---|---|---|
approve_state |
样例 : |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
operator_role |
样例 : |
string |
reason |
取消原因 |
string |
sellerInfo |
收货失败:原因/凭证 |
2.10. Carrier
承运商
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运平台 |
|
delivery_id |
配送活动标识 |
string |
delivery_name |
配送活动名称 |
string |
deliveryman |
送货员 |
|
deliveryman_mobile |
送货员手机 |
string |
exception_reason |
承运异常原因 |
string |
merchant |
承运商家 |
|
state |
承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、dispatched(已派单)、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.11. CarrierModificationRequest
承运商修改请求对象
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_proxy_merchant |
承运代理商家 |
|
carrier_proxy_platform |
承运代理平台 |
|
deliveryman_id |
配送员Id |
string |
deliveryman_mobile |
配送员电话 |
string |
deliveryman_name |
配送员名称 |
string |
merchant |
承运商家 |
|
type |
承运类型: self(门店自送)、thirdparty(平台配送)、express(快递配送) |
enum (self, thirdparty, express) |
2.12. CarrierRequest
更新订单承运商物流状态
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
carrier_proxy_merchant |
承运代理商家 |
|
carrier_proxy_platform |
承运代理平台 |
|
delivery_id |
配送ID |
string |
exception_remark |
承运异常备注 |
string |
freight |
运费 |
number |
ignore_check_carrier_state |
忽略校验承运状态 |
boolean |
operator |
操作人 |
string |
print_info |
运单打印信息 |
|
re_calc_carrier |
是否重新计算承运 |
boolean |
shop_freight |
商家付给承运商的运费 |
|
tags |
标签,会给订单加上标签,已有的标签不会重复添加 |
< OrderTag > array |
waybill_id |
运单号 |
string |
2.13. ChangeItem
来源:换货商品
名称 | 说明 | 类型 |
---|---|---|
details |
商品原料详情 |
< OrderItemDetail > array |
front_item_id |
前台订单行标识 |
string |
front_sku_id |
平台商品编码 |
string |
item_no |
行号 |
string |
quantity |
数量 |
number |
sku_id |
货号 |
string |
2.14. ChangeOrderInfo
换出信息
名称 | 说明 | 类型 |
---|---|---|
change_items |
换出商品行 |
< ChangeItem > array |
change_order_id |
换出订单号 |
string |
2.16. CodeName
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
name |
样例 : |
string |
2.17. ConfirmRefundRequest
确认退款请求对象
名称 | 说明 | 类型 |
---|---|---|
operator_role |
操作角色:platform(平台) |
string |
payments |
退款支付明细 |
< RefundPayment > array |
refundState |
退款状态,none(未退款),refunded(已退款) |
enum (none, refunded) |
2.18. ConfirmReqRefundRequest
确认退款请求对象
名称 | 说明 | 类型 |
---|---|---|
payments |
退款支付明细 |
< RefundPayment > array |
refundState |
退款状态,none(未退款),refunded(已退款) |
enum (none, refunded) |
2.19. Count
名称 | 说明 | 类型 |
---|---|---|
action |
action |
string |
action_name |
actionName |
string |
business_key |
业务key |
string |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
type |
类型 |
string |
value |
value |
string |
2.20. CouponDetail
券信息
名称 | 说明 | 类型 |
---|---|---|
amount |
实际抵用金额 |
number |
code |
券号 |
string |
name |
券名称 |
string |
type |
cash(现金券)、discount(折扣券) |
string |
type_id |
券类型代码 |
string |
use_mode |
用券形式:pay(支付)、discount(优惠) |
string |
value |
折扣率或者现金面额 |
number |
2.21. CouponInfo
券信息
名称 | 说明 | 类型 |
---|---|---|
details |
券使用详情 |
< CouponDetail > array |
use_total |
券抵用总金额 |
number |
2.23. DeliverRequest
配送情况
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商,非空时将更新 |
|
carrier_note |
承运商备注 |
string |
delivery_state |
配送状态,取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投) |
enum (none, shipped, signed, refused, redeliver) |
front_finished_time |
平台订单完成时间,非空时将更新,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_modified |
平台订单最后修改时间,非空时将更新,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operation |
门店作业:accept(接单)、shipping(集货)、recheck(复核)、handover(交接)、cancelShipping(取消集货) |
string |
operation_state |
作业状态 |
string |
operator |
执行操作人 |
string |
pick_info |
订单拣货信息 |
|
print |
是否打印 |
boolean |
selftake_confirmed |
自提确认 |
boolean |
ship_id |
发货码 |
string |
ship_time |
发货时间,传入的话如果本次操作的是发货,则日志的time将记录该时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
waybill_id |
承运单号,非空时将更新 |
string |
2.24. Delivery
配送信息
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商信息 |
|
carrier_note |
承运商备注 |
string |
carrier_proxy_merchant |
承运代理商家 |
string |
carrier_proxy_platform |
承运代理平台 |
string |
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 |
selftake_confirmed |
自提确认 |
boolean |
ship_delivery_mode |
发货及配送方式,可选值:wrhShipCarrierDeli(仓库发货,快递配送)、wrhShipStationDeli(仓库发货,门店配送)、stationShipStationDeli(门店发货,门店配送)、stationShipCarrierDeli(门店发货,快递配送)、vendorShipCarrierDeli(供应商发货,快递配送) |
enum (wrhShipCarrierDeli, wrhShipStationDeli, stationShipStationDeli, stationShipCarrierDeli, vendorShipCarrierDeli) |
ship_id |
发货码 |
string |
ship_mode |
发货方式,wrhShip(仓库发货),stationShip(门店发货),vendorShip(供应商发货) |
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) |
vendor |
发货供应商 |
|
waybill_id |
运单号 |
string |
waybill_print_info |
运单打印信息 |
|
waybills |
样例 : |
< Waybill > array |
wrh |
发货仓库 |
|
wrh_order_id |
仓库单号 |
string |
2.25. DiscountSettleDetail
优惠结算详情
名称 | 说明 | 类型 |
---|---|---|
discount |
承担优惠金额 |
number |
role |
优惠承担方 |
string |
2.26. DiscountShareDetail
整合优惠结算详情
名称 | 说明 | 类型 |
---|---|---|
discount |
承担优惠金额 |
number |
type |
类型 |
string |
2.27. DistributionInfo
分销信息
名称 | 说明 | 类型 |
---|---|---|
distributor |
样例 : IdName |
|
tcOrderId |
分销主订单号 |
string |
2.28. EncryptDetail
加密信息
名称 | 说明 | 类型 |
---|---|---|
encrypt_mobile |
样例 : |
string |
encrypt_name |
样例 : |
string |
encrypt_street |
样例 : |
string |
secretKey |
样例 : |
string |
2.29. ExtraField
自定义字段
名称 | 说明 | 类型 |
---|---|---|
id |
自定义id |
string |
name |
自定义名称 |
string |
value |
自定义值 |
string |
2.30. 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.31. FavFactor
优惠参与信息
名称 | 说明 | 类型 |
---|---|---|
qty |
本商品参与促销总数量 |
number |
sku_items |
来源商品参与优惠明细 |
< FavFactorItem > array |
total |
本商品参与促销总金额 |
number |
2.32. FavFactorItem
参与优惠商品明细
名称 | 说明 | 类型 |
---|---|---|
amount |
参与促销金额 |
number |
item_id |
行标识 |
string |
item_no |
行号 |
integer (int32) |
qty |
参与促销数量 |
number |
2.33. FrontItem
平台商品行信息
名称 | 说明 | 类型 |
---|---|---|
attributes |
属性 |
< FrontItemAttribute > array |
item_id |
平台订单行ID |
string |
sku_id |
平台SKU ID |
string |
spec |
平台商品属性(口味), 多个属性以;或者/分隔显示 |
string |
spec2 |
平台商品的规格,形如:500g、500ml |
string |
spu_id |
平台SPU ID |
string |
tags |
平台标签 |
< IdName > array |
unit |
单位 |
string |
2.34. FrontItemAttribute
平台商品行属性信息
名称 | 说明 | 类型 |
---|---|---|
group |
属性分组 |
string |
price |
属性售价 |
number |
qty |
属性数量 |
number |
values |
属性值 |
< string > array |
2.35. FrontOrder
平台订单信息
名称 | 说明 | 类型 |
---|---|---|
app |
平台应用 |
|
attribute |
属性信息 |
string |
created |
下单时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
dpt_station_time |
平台调度门店时间,用于存储平台分配门店时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
finished_time |
完成时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
inner_order_id |
平台内部单号 |
string |
main_order_id |
平台主订单号,如果平台存在拆单,可以填入拆单的主单号 |
string |
modified |
最后修改时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
order_id |
平台订单号,第三方单号 |
string |
order_type |
订单类型,默认为ECOM(普通订单):ECOM,普通订单;ShareGroup,拼团订单;POINTS_REDEEM,积分换购订单;ENLIST_REDEEM,预约兑换订单;PRESALE,预售订单;COMPENSATION,赔付订单;RELAY,接龙订单 |
|
platform |
平台,其中:自接入平台需要提供约定平台id,申请在鼎力云开通。 |
|
state |
状态 |
string |
station_id |
平台侧的门店编码 |
string |
station_name |
平台侧的门店名称 |
string |
station_order_no |
平台门店订单序号,该平台下单门店的第几单,用于骑手到店取件 |
string |
third_order_id |
第三方订单号 |
string |
wrh_id |
平台发货仓库编码 |
string |
2.36. FrontRtn
平台退货信息
名称 | 说明 | 类型 |
---|---|---|
app |
平台应用id |
|
created |
退单申请时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
creator |
创建人 |
string |
modified |
退单最后修改时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
order_finished |
订单完成时间,临时字段,不存储 |
string (date-time) |
platform |
平台 |
|
return_state |
样例 : |
string |
rtn_id |
平台退货单号 |
string |
source |
来源 |
string |
state |
平台退换货状态 |
string |
stationName |
平台门店名称 |
string |
station_id |
平台门店代码 |
string |
2.37. ICN
ICN对象
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
id |
样例 : |
string |
name |
样例 : |
string |
2.38. IdName
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
2.39. IdWrapper
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
2.40. IdsWrapper
名称 | 说明 | 类型 |
---|---|---|
ids |
样例 : |
< string > array |
2.41. Invoice
发票信息
名称 | 说明 | 类型 |
---|---|---|
apply_qrcode |
开票二维码 |
string |
details |
发票详情 |
< InvoiceDetail > array |
error_reason |
开票失败原因 |
string |
required |
是否需要发票 |
boolean |
result |
开票结果:开票成功、开票失败,申请开票时不传 |
string |
2.42. 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.43. ItemPromotion
商品行促销信息
名称 | 说明 | 类型 |
---|---|---|
apported_discount_amount |
整单优惠分摊金额 |
number |
discount_amount |
商品优惠金额 |
number |
favs |
优惠详情 |
< FavDetail > array |
2.44. MemberInfo
积分信息
名称 | 说明 | 类型 |
---|---|---|
card_no |
实体卡卡号,如果存在多个,以英文逗号隔开 |
string |
member_extra |
额外参数,json字符串 |
string |
member_gid |
会员资料内码 |
string |
member_id |
会员ID |
string |
mobile |
会员电话 |
string |
outer_member_id |
外部会员id |
string |
2.46. ModFieldBigDecimal
名称 | 说明 | 类型 |
---|---|---|
value |
样例 : |
number |
2.47. ModFieldString
名称 | 说明 | 类型 |
---|---|---|
value |
样例 : |
string |
2.48. Option
文案选项
名称 | 说明 | 类型 |
---|---|---|
caption |
说明 |
string |
extra |
扩展信息 |
|
type |
类型:remind(催单)、comment(评论)、rtn.receivefailreason(退单收货失败原因)、adjustCategory(调整分类) |
string |
value |
回复文案 |
string |
2.49. OptionExtra
扩展条件
名称 | 说明 | 类型 |
---|---|---|
auto |
是否开启自动回复 |
boolean |
conditions |
自动回复条件 |
< OptionExtraCondition > array |
2.50. OptionExtraCondition
评价等级条件
名称 | 说明 | 类型 |
---|---|---|
satisfie_level |
评价等级(好评:high;中评:medium;差评:low;) |
string |
2.52. Order
订单
名称 | 说明 | 类型 |
---|---|---|
address_change_fee |
地址变更费 |
number |
adjust_details |
调整详情 |
< AdjustDetail > array |
approve_state |
审核子状态,取值范围:none(未审核)、serviceApproved(客服已审核)、financeApproved(财务已审核)、warehouseApproved(物流已审核)、carrierApproved(承运商已审核) |
enum (none, serviceApproved, financeApproved, warehouseApproved, carrierApproved) |
calc_data |
是否需要反算金额,默认true |
boolean |
cancel_reason |
取消原因 |
string |
cancel_type |
取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消) |
string |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
crm_info |
营销信息 |
|
customer |
客户信息 |
|
customer_note |
客户备注 |
string |
delivery |
配送信息 |
|
encrypt_detail |
加密详情 |
|
exception_codes |
异常代码,sku(商品异常)、amount(金额异常)、shopAmount(货款金额异常)、carrier(承运异常) |
string |
exception_remark |
异常说明 |
string |
exceptions |
异常信息 |
< OrderException > array |
extra_info |
扩展信息,json字符串 |
string |
fault_tolerant_info |
容错信息,json字符串 |
string |
freight_discount |
运费优惠金额 |
number |
front |
平台订单信息 |
|
has_exception |
是否异常 |
boolean |
id |
订单Id,由系统自动生成,不需要填写 |
string |
invoice |
发票信息 |
|
invoice_take_code |
发票提取码,32位 |
string |
is_private |
是否是隐私号,true:小票显示的顾客手机号格式为138*8888,false:原手机号显示 |
boolean |
item_change_records |
换货明细 |
< OrderItemChange > array |
item_count |
商品明细数 |
integer (int32) |
item_logistics |
样例 : |
< OrderItemLogistics > array |
items |
商品行 |
< OrderItem > array |
logs |
订单日志 |
< OrderLog > array |
member_info |
会员积分信息 |
|
mock_info |
样例 : MockInfo |
|
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_store |
客户下单门店 |
|
orig_total |
订单原金额(优惠之前) |
number |
package_discount |
包装优惠金额 |
number |
package_info |
订单打包信息 |
|
payment |
支付信息 |
|
performance_service_fee |
履约服务费 |
number |
pick_info |
订单拣货信息 |
|
print_bills |
打印单据 |
< PrintBill > array |
promotion |
订单促销 |
|
quotas |
订单指标 |
< OrderQuota > array |
real_total |
实际销售商品金额(扣除所有优惠),等于items中pay_amount之和,不包含运费等其他费用,系统会自动重算 |
number |
reason |
黑名单原因 |
string |
reissue_reason |
补发原因 |
string |
responsible_party |
补发责任方 |
string |
sale_order_id |
销售订单号 |
string |
salesman |
推销员 |
|
seller_note |
商家备注 |
string |
selttle_commission |
平台佣金 ,弃用,请使用settle_commission |
number |
settle_amount |
平台的结算金额,平台结算金额=客户实付金额+平台优惠补贴, 为空等于amount |
number |
settle_commission |
平台佣金,平台服务费+履约服务费等服务费用 |
number |
settle_freight |
平台结算运费 |
number |
settle_info |
对账信息 |
|
settle_unit |
结算单位 |
|
shipping_voucher_urls |
上传凭证的url |
< string > array |
shop |
平台商家,平台侧的商家,非门店 |
|
shop_amount |
商品货款金额=商品原金额-商家商品优惠金额 |
number |
sku_quantity |
商品总数 |
number |
source |
来源 |
string |
source_order_id |
来源订单号 |
string |
state |
订单状态,新建可不填,默认取值为:confirmed。取值范围:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering( 配送中)、delivered(配送完成)、canceled(已取消) |
enum (confirmed, prepared, approved, delivering, delivered, canceled) |
suspend_info |
挂起信息 |
|
tags |
订单标签 |
< OrderTag > array |
user_number |
使用人数,餐具数量 |
integer (int32) |
waybill_id |
运单号 |
string |
weight |
订单重量,单位:g |
number |
wish_info |
祝福信息 |
|
wrh_id |
发货仓库编号 |
string |
wrh_state |
仓库状态 |
enum (initial, notified, applyKickBack, shipped) |
2.53. OrderAdjust
名称 | 说明 | 类型 |
---|---|---|
adjust_phase |
调整时机 |
enum (onsale, aftersale) |
adjust_version |
调整版本 |
integer (int64) |
amount |
样例 : |
number |
details |
调整详情 |
< AdjustDetail > array |
id |
单据ID |
string |
items |
调整商品详情 |
< OrderAdjustItem > array |
order_id |
来源单号 |
string |
payments |
调整支付详情 |
< PaymentDetail > array |
reason |
调整原因 |
string |
remark |
调整说明 |
string |
shop |
商家 |
|
state |
状态 |
enum (initial, submitted, approved, rejected) |
2.54. OrderAdjustItem
名称 | 说明 | 类型 |
---|---|---|
details |
调整详情 |
< AdjustDetail > array |
item_no |
调整行号 |
integer (int32) |
item_title |
商品名称 |
string |
order_item_no |
订单商品行行号 |
string |
payAmount |
调整后的商品实付金额 |
number |
quantity |
调整后的数量 |
number |
sku_id |
货号 |
string |
total |
商品金额 |
number |
unit_price |
商品价格 |
number |
2.55. OrderApplyRtnRequest
订单申请退款
名称 | 说明 | 类型 |
---|---|---|
apply_type |
申请类型:weight_diff(缺重退差),stock_none(缺货退款),amount(按金额退,预留),part(部分退),all(整单退) |
string |
approve_state |
审批状态,取值范围:none(未审核),serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
front_app |
平台应用 |
|
items |
申请明细 |
< OrderItemRtnApply > array |
policy |
策略 |
string |
reason |
原因 |
string |
rtn_id |
退单号 |
string |
type |
退货单类型,取值范围:refund(仅退款)、refundAndRtn(退款退货) |
enum (refund, refundAndRtn) |
2.56. OrderApplyRtnResponse
名称 | 说明 | 类型 |
---|---|---|
apply_id |
申请ID |
string |
apply_ids |
多个申请ID |
< string > array |
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.57. OrderCheckItem
订单检查商品行
名称 | 说明 | 类型 |
---|---|---|
item_no |
订单行号 |
string |
item_title |
商品标题 |
string |
pay_amount |
实付金额 |
number |
quantity |
数量 |
number |
sku_id |
商品标识(货号) |
string |
total |
商品金额,等于unit_price * quantity |
number |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
2.58. OrderCheckRequest
订单检测请求
名称 | 说明 | 类型 |
---|---|---|
amount |
总金额 |
number |
carrier_id |
指定承运商ID |
string |
expect_delivery_time |
期望送达时间 |
string (date-time) |
items |
商品明细 |
< OrderCheckItem > array |
order_id |
订单号 |
string |
platform_id |
下单平台ID |
string |
pre_type |
订单预约类型:normal:正常,dsd:定时达,half_day:半日达 |
string |
receiver_address |
收货地址 |
|
receiver_contact |
收货联系方式 |
|
ship_mode |
发货方式,wrhShip(仓库发货),stationShip(门店发货) |
string |
sku_quantity |
总数量 |
number |
station |
配送站点:门店代码、门店名称 |
|
type |
检测类型:addresscheck(地址检测),deliverycheck(配送检测),deliverycalc(配送计算) |
string |
weight |
订单商品总重量,单位:克 |
number |
2.59. OrderCheckResponse
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
delivery_mins |
配送时长,单位分钟 |
number |
distance |
送货距离,单位米 |
number |
freight |
送货运费,单位元 |
number |
message |
样例 : |
string |
pre_delivery_slots |
可选预计送达时间段 |
< OrderPreSlot > array |
pre_delivery_time |
预计送达时间 |
string |
success |
默认值 : |
boolean |
suggest_carrier |
建议承运商 |
2.60. OrderComment
订单评价
名称 | 说明 | 类型 |
---|---|---|
content |
评价内容 |
string |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
details |
评价积分 |
< OrderCommentDetail > array |
dislike_skus |
点踩的商品列表 |
< string > array |
expire_time |
样例 : |
string (date-time) |
extra_info |
评价自定义字段,不同平台不同内容 |
|
front_comment_id |
样例 : |
string |
id |
评价ID |
string |
image_urls |
评价图片 |
< string > array |
labels |
评价标签 |
< string > array |
like_skus |
点赞的商品列表 |
< string > array |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_id |
订单ID |
string |
platform_id |
平台ID |
string |
process_remark |
处理说明 |
string |
process_state |
处理状态 |
string |
remark |
备注 |
string |
reply_content |
回复内容 |
string |
reply_state |
回复状态 |
string |
reply_time |
回复时间 |
string (date-time) |
shop_id |
商家ID |
string |
store |
门店 |
|
tags |
标签 |
< string > array |
time |
评价时间 |
string (date-time) |
2.61. OrderCommentDetail
名称 | 说明 | 类型 |
---|---|---|
labels |
评价标签 |
< string > array |
score |
评价得分 |
integer (int32) |
type |
评价类型 |
string |
2.62. OrderCommentFilter
名称 | 说明 | 类型 |
---|---|---|
commentTimeEnd |
评价时间结束,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
commentTimeStart |
评价时间开始,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
hasContent |
是否有评价内容 |
boolean |
hasReply |
回复状态:none、replied、invalid |
string |
idEq |
评价ID |
string |
id_in |
样例 : |
< string > array |
orderIdIn |
订单ID集合 |
< string > array |
orderIdLike |
订单号模糊搜索 |
string |
platformIdEq |
平台ID |
string |
processStateEq |
处理状态:未处理、处理成功、处理失败 |
string |
processStateNotIn |
状态不存在 |
< string > array |
satisfieLevel |
满意程度(low、medium、high) |
string |
stationIdEq |
门店ID |
string |
tagEq |
标签 |
string |
tagHas |
标签包含……必须完全包含 |
< string > array |
tagIn |
标签在……中,包含一个就行 |
< string > array |
2.63. OrderCommentPaging
订单评价分页对象
名称 | 说明 | 类型 |
---|---|---|
comments |
订单评价列表 |
< OrderComment > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总条数 |
integer (int64) |
2.64. OrderException
名称 | 说明 | 类型 |
---|---|---|
caption |
异常标题 |
string |
code |
异常代码 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
remark |
异常说明 |
string |
time |
异常时间 |
string (date-time) |
2.65. OrderExtraInfo
名称 | 说明 | 类型 |
---|---|---|
delivery_content |
配送评价内容 |
string |
next_content |
追加评价内容 |
string |
next_image_urls |
配送评价图片 |
< string > array |
next_time |
追加评价时间 |
string (date-time) |
2.66. OrderFee
订单费用
名称 | 说明 | 类型 |
---|---|---|
fee |
费用 |
number |
type |
类型:platform_service_fee(平台服务费),performance_service_fee(履约服务费),delivery_extra_fee(配送费),delivery_tips(配送小费),tips(小费),cold_chain_processing_fee(冷链加工费),carrier_call_fee(众包呼单费),carrier_call_tips(呼单小费) |
string |
2.67. OrderFilter
订单过滤器
名称 | 说明 | 类型 |
---|---|---|
address_contains |
地址包含 |
string |
allow_pick_start_time_end |
允许拣货的开始时间 |
string (date-time) |
app_id_eq |
平台应用代码等于 |
string |
approve_states |
审核状态,取值:none(未审核)、serviceApproved(客服已审核)、financeApproved(财务已审核)、warehouseApproved(物流已审核)、carrierApproved(承运商已审核) |
< enum (none, serviceApproved, financeApproved, warehouseApproved, carrierApproved) > array |
bill_id_eq |
凭证单号等于 |
string |
bill_id_like |
凭证单号类似 |
string |
cancel_type |
取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消) |
string |
carrier_id |
承运商号 |
string |
carrier_proxy_platform_eq |
承运代理平台等于 |
string |
carrier_states |
承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
< enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled) > array |
carrier_types |
承运类型,取值范围:self(商家自送)、thirdparty(平台配送)、express(快递配送) |
< enum (self, thirdparty, express) > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
custom_order_state |
自定义订单状态 |
< string > array |
customer_id |
客户代码 |
string |
customer_mobile |
客户手机号,模糊查询 |
string |
customer_mobile_end_with |
顾客手机号码截止于 |
string |
customer_name |
客户姓名 |
string |
deliver_shipped_operator |
发货人 |
string |
delivered_time_end |
妥投结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
delivered_time_start |
妥投起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
delivering_time_end |
发货起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
delivering_time_start |
发货起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
delivery_id |
配送ID |
string |
delivery_states |
配送状态,取值:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投) |
< enum (none, shipped, signed, refused, redeliver) > array |
delivery_types |
配送类型,取值:selftake(到店自提)、deliver(送货上门) |
< enum (selftake, deliver) > array |
deliveryman_name |
配送人姓名 |
string |
exception_code_contains |
异常代码 |
string |
fornt_order_type_id |
平台订单类型 |
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_main_order_id_eq |
平台主订单号等于 |
string |
front_main_order_id_in |
平台主订单号在……之中 |
< string > array |
front_main_order_id_start_with |
平台主订单号起始于 |
string |
front_order_id |
平台订单号 |
string |
front_order_id_prefix |
平台订单号起始搜索 |
string |
front_order_ids |
平台订单号 |
< string > array |
front_sku_id |
平台商品编码,查询订单明细时才有用 |
string |
front_station_id_in |
平台门店ID在…范围内 |
< string > array |
front_station_order_no_eq |
平台门店订单序号等于 |
string |
handover_operator |
交接人 |
string |
hasInvoice |
是否拥有发票 |
boolean |
has_billing |
是否有凭证信息,false搜索没有、true搜索有 |
boolean |
has_customer_note |
是否有顾客信息,false搜索没有、true搜索有 |
boolean |
has_delivery_exception |
是否配送异常 |
boolean |
has_exception |
是否异常 |
boolean |
have_return |
存在退货但未签收 |
boolean |
index_modified_end |
索引最后修改时间结束于,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
index_modified_start |
索引最后修改时间起始于,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
invalid |
是否无效订单 |
boolean |
member_mobile_eq |
会员电话等于 |
string |
member_mobile_or_mobile_eq |
会员电话或者收货人手机号等于 |
string |
modified_end |
修改结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
modified_start |
修改起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operation_handover_time_end |
交接终止时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operation_handover_time_start |
交接起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operation_shipping_time_end |
集货终止时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operation_shipping_time_start |
集货起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
operation_state |
门店作业状态,取值范围:none(空)、shipping(已集货)、handover(已交接) |
string |
operation_states |
门店作业状态,取值范围:none(空)、shipping(已集货)、handover(已交接) |
< string > array |
order_id |
订单号 |
string |
order_id_or_front_station_order_no_eq |
订单id或平台门店订单序号等于 |
string |
order_ids |
订单号 |
< string > array |
payment_out_pay_id |
第三方支付流水号(商户订单号) |
string |
payment_states |
付款状态,取值范围:notPay(未付款)、earnest(已付定金)、paid(已付全款) |
< enum (notPay, earnest, paid) > array |
payment_types |
付款类型,取值范围:cod(货到付款)、online(在线支付)、earnest(预售) |
< enum (cod, online, earnest) > array |
pick_info_is_auto_picked_finish |
订单拣货信息-是否自动拣货完成 |
boolean |
pick_info_operator_id_eq |
订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单 |
string |
pick_info_operator_id_in |
订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单 |
< string > array |
pick_info_operator_name_like |
订单拣货信息-拣货员名称 |
string |
pick_info_source_eq |
订单拣货信息-记录来源 |
string |
pick_info_time_end |
订单拣货信息-拣货时间 |
string (date-time) |
pick_info_time_start |
订单拣货信息-拣货时间 |
string (date-time) |
platform_id |
平台ID |
string |
platform_ids |
平台ID |
< string > array |
prePage |
上一页 |
integer (int32) |
pre_end_delivery_time_end |
预计送达结束时间end,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
pre_end_delivery_time_start |
预计送达开始时间start,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
pre_start_delivery_time_end |
预计送达开始时间end,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
pre_start_delivery_time_start |
预计送达开始时间start,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
pre_type |
预处理类型:normal:正常,dsd:定时达 |
string |
product_contains |
商品包括 |
string |
prom_id |
优惠ID等于 |
string |
prom_id_in |
优惠ID在……之中 |
< string > array |
prom_key |
优惠Key等于 |
string |
prom_key_in |
优惠Key在……之中 |
< string > array |
prom_name_like |
优惠名称类似于 |
string |
receiver_mobile |
收货人手机号码,起始于 |
string |
receiver_mobile_end_with |
收货人手机号码截止于 |
string |
receiver_mobile_like |
收货人手机号码模糊搜索 |
string |
receiver_name |
收货人 |
string |
receiver_private_mobile_end_with |
收货人隐私号结束于 |
string |
refund_state |
退款状态,取值范围:none(未退款)、refunded(已退款) |
string |
salesman_id_eq |
分销员代码等于 |
string |
selftake_code |
提货码 |
string |
ship_mode |
发货方式,wrhShip(仓库发货),stationShip(门店发货),vendorShip(供应商发货) |
string |
shipping_operator |
集货人 |
string |
shop_id |
商家ID |
string |
sku_id |
商品编码 |
string |
sku_id_in |
订单明细货号在……之中,最多指定100个货号 |
< string > array |
sku_title |
商品标题 |
string |
source |
订单来源 |
string |
source_order_id_eq |
源订单号等于 |
string |
source_order_id_in |
源订单号集合 |
< string > array |
states |
订单状态,取值:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
< enum (confirmed, prepared, approved, delivering, delivered, canceled) > array |
station_ids |
门店ID |
< string > array |
suspended |
是否挂起 |
boolean |
type_eq |
订单类型 |
string |
vendor_code_eq |
供应商代码等于 |
string |
vendor_code_in |
供应商代码集合 |
< string > array |
vendor_code_start_with |
供应商代码起始于 |
string |
waybill_id |
运单号 |
string |
wrh_id_in |
发货仓库ID集合 |
< string > array |
wrh_id_start_with |
发货仓库ID起始于 |
string |
2.69. OrderInvoiceResultRequest
发票结果更新请求对象
名称 | 说明 | 类型 |
---|---|---|
apply_qrcode |
开票二维码 |
string |
error_reason |
开票失败原因 |
string |
result |
开票结果:开票成功、开票失败 |
string |
serial_no |
流水号 |
string |
time |
开票日期 |
string (date-time) |
url |
电子发票图片地址 |
string |
2.70. OrderItem
商品行
名称 | 说明 | 类型 |
---|---|---|
apported_discount_amount |
整单优惠分摊金额,如:订单满减,整单分摊到明细 |
number |
barcode |
商品条码 |
string |
consume_scores |
消费积分 |
number |
cost_price |
成本价 |
number |
details |
原料商品明细 |
< OrderItemDetail > array |
discount_amount |
商品优惠金额,如:商品立减优惠 |
number |
extra_info |
扩展信息,json格式。美团拼好饭加价金额(singleIncreasePrice)、如果存在 inv_mgr = false 的话,表示该商品为非库存管理商品 |
string |
fault_tolerant_info |
容错信息,json字符串 |
string |
front |
前端商品信息 |
|
image_url |
商品图片信息 |
string |
is_collocation |
是否搭配商品(加料),如奶茶+珍珠,珍珠是奶茶的加料商品 |
boolean |
is_gift |
默认值 : |
boolean |
item_id |
订单商品行唯一标识 |
string |
item_no |
订单行号 |
string |
item_title |
商品标题 |
string |
orig_barcode |
转换前商品条码 |
string |
orig_extra_info |
原商品行扩展信息 |
|
orig_image_url |
转换前商品图片信息 |
string |
orig_item |
定制:订单原商品信息,用于多规格、组合商品场景,记录用户下单时的商品信息 |
|
orig_item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
orig_mas_sku_id |
样例 : |
string |
orig_price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
orig_qty |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
orig_sku_id |
转换前的货号:用于多规格转换场景 |
string |
orig_weight |
转换前商品重量,单位g |
number |
package_info |
商品打包信息 |
|
package_qty |
包装盒数量 |
number |
package_total |
包装费用 |
number |
pay_amount |
实付金额,等于total - apported_discount_amount - discount_amount |
number |
price |
售价(促销价),为空等于pay_amount/quantity |
number |
product_id |
商品代码 |
string |
promotion |
商品促销 |
|
purchase_price |
采购价 |
number |
quantity |
数量 |
number |
real_quantity |
实际拣货商品数量 |
number |
real_weight |
实际称重,明细总重量,单位g |
number |
relation_item_id |
关联商品行号,如奶茶+珍珠,记录关联的奶茶的item_id |
string |
relation_sku_id |
关联商品货号,如奶茶+珍珠,记录关联的奶茶的sku_id |
string |
salesman |
推销员 |
|
service_options |
服务项目, 多个项目以/分隔显示 |
string |
settle_discountAmount |
平台优惠金额 |
number |
settle_price |
平台结算价格,为空等于售价 |
number |
settle_total |
平台结算金额 |
number |
shop_price |
商家货款价格 |
number |
shop_total |
商家货款金额=商品原金额-商家商品优惠 |
number |
sku_id |
商品标识(货号) |
string |
spec |
商品规格 |
string |
tags |
标签 |
< OrderItemTag > array |
total |
商品金额,等于unit_price * quantity |
number |
trace_code_details |
溯源码明细,与traceCodes(溯源码)字段相比,二者不能同时使用,优先使用traceCodeDetails,traceCodeDetails无值,在使用traceCodes |
< OrderItemTraceCodeDetail > array |
trace_codes |
溯源码 |
< string > array |
unit |
单位:个、份等 |
string |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
uuid |
样例 : |
string |
weight |
单个商品重量,单位g |
number |
2.71. OrderItemChange
换货明细
名称 | 说明 | 类型 |
---|---|---|
change_items |
目标商品行 |
< OrderItem > array |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
items |
来源商品行 |
< OrderItem > array |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
reason |
原因 |
string |
2.72. OrderItemDetail
原料商品信息
名称 | 说明 | 类型 |
---|---|---|
fault_tolerant_info |
容错信息,json字符串 |
string |
front_spec |
平台属性 |
string |
id |
原料商品货号 |
string |
package_info |
包装信息 |
|
quantity |
需要原料商品数量,C=2A+3B,原料商品数量=组合商品数量*基数,2C时,A:2*2,B:2*3 |
number |
ratio |
原料商品基数,C=2A+3B,A:2,B:3 |
number |
real_quantity |
实际拣货商品数量 |
number |
title |
名称 |
string |
trace_code_details |
溯源码明细,与traceCodes(溯源码)字段相比,二者不能同时使用,优先使用traceCodeDetails,traceCodeDetails无值,在使用traceCodes |
< OrderItemTraceCodeDetail > array |
trace_codes |
溯源码 |
< string > array |
2.73. OrderItemLogistics
订单明细物流信息
名称 | 说明 | 类型 |
---|---|---|
logistics_code |
样例 : |
string |
qty |
样例 : |
number |
sku_id |
样例 : |
string |
2.74. OrderItemRtnApply
退款申请明细对象
名称 | 说明 | 类型 |
---|---|---|
item_no |
订单行号 |
string |
quantity |
数量 |
number |
real_total_weight |
实拣总重量,单位g |
number |
refund_amount |
退款金额 |
number |
sku_id |
商品标识 |
string |
weight |
缺重重量,单位g |
number |
weights |
缺重重量详情,多个数量不同缺重时使用,单位g |
< number > array |
2.76. OrderItemTraceCodeDetail
溯源码
名称 | 说明 | 类型 |
---|---|---|
batch_no |
批号 |
string |
code |
溯源码 |
string |
production_date |
生产日期 |
string (date-time) |
qpc_str |
规格 |
string |
qty |
数量 |
number |
valid_date |
有效期 |
string (date-time) |
2.77. OrderKdTrace
订单快递跟踪
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
code |
样例 : |
string |
details |
订单快递跟踪详情 |
< OrderKdTraceDetail > array |
message |
样例 : |
string |
state |
承运状态:initial(初始状态)、created(已下单)、 dispatched(已派单)、createdFailed(下单失败)、pickup(已揽件)、pickupFailed(揽件失败)、 delivering(配送中)、delivered(配送完成)、canceled(已取消) |
enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled) |
success |
默认值 : |
boolean |
waybill_id |
快递单号 |
string |
2.78. OrderKdTraceDetail
订单快递跟踪详情
名称 | 说明 | 类型 |
---|---|---|
address |
地点 |
string |
message |
内容 |
string |
status |
状态 |
string |
time |
时间 |
string (date-time) |
2.79. OrderList
订单集合对象
名称 | 说明 | 类型 |
---|---|---|
empty |
默认值 : |
boolean |
orders |
订单列表 |
< Order > array |
2.80. OrderLog
订单日志
名称 | 说明 | 类型 |
---|---|---|
action |
操作 |
string |
action_caption |
操作标题 |
string |
message |
操作说明 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
rtn_id |
退换货单号 |
string |
tenant_id |
租户ID |
string |
time |
操作时间 |
string (date-time) |
2.81. OrderOrigItem
原商品行信息
名称 | 说明 | 类型 |
---|---|---|
barcode |
转换前条码 |
string |
combined_id |
如果是组合商品,需要传组合标识ID,可以用组合商品ID作为标识 |
string |
image_url |
转换前图片地址 |
string |
item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
quantity |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
sku_id |
转换前的货号:用于多规格、组合商品转换标品场景 |
string |
type |
类型,多规格multi、组合combined |
string |
weight |
重量 |
number |
2.82. OrderPackageInfo
订单打包信息
名称 | 说明 | 类型 |
---|---|---|
details |
包装明细 |
< PackageDetail > array |
package_type |
指定打包袋类型:保温袋、纸袋、PLA环保袋 |
string |
required |
是否需要打包袋 |
boolean |
type |
单据类型 |
string |
2.83. OrderPaging
订单分页对象
名称 | 说明 | 类型 |
---|---|---|
orders |
订单列表 |
< Order > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总条数 |
integer (int64) |
2.84. OrderPickInfo
名称 | 说明 | 类型 |
---|---|---|
allow_pick_start_time |
允许拣货的开始时间 |
string (date-time) |
auto_picked_finish |
自动拣货完成 |
boolean |
operator_id |
拣货员ID |
string |
operator_name |
拣货员名称 |
string |
source |
记录来源 |
string |
time |
拣货时间 |
string (date-time) |
2.85. OrderPreSlot
订单预计送达信息
名称 | 说明 | 类型 |
---|---|---|
pre_date |
预计送达日期 |
string |
pre_ends |
预计送达时间 |
< string > array |
2.87. OrderQuota
订单指标
名称 | 说明 | 类型 |
---|---|---|
action |
操作:expect_shipping |
string |
action_name |
操作名称:期望拣货完成时间 |
string |
remark |
备注 |
string |
time |
日期 |
string (date-time) |
2.88. OrderReissueRequest
订单补发请求
名称 | 说明 | 类型 |
---|---|---|
receiver |
收货信息 |
|
reissue_order_items |
补发商品明细 |
< ReissueOrderItem > array |
reissue_reason |
补发原因 |
string |
responsible_party |
责任方,carrier代表承运商责任 |
string |
seller_note |
备注说明 |
string |
source_order_id |
来源订单号 |
string |
2.89. OrderReissueResponse
补发订单响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
样例 : |
string |
success |
默认值 : |
boolean |
2.90. OrderRemind
名称 | 说明 | 类型 |
---|---|---|
count |
平台催单次数 |
integer (int32) |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
front_remind_id |
平台催单Id |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_id |
订单ID |
string |
platform_id |
平台ID |
string |
remind_id |
催单Id |
string |
reply_content |
回复内容 |
string |
reply_operator |
回复人 |
string |
reply_state |
回复状态,未回复、已回复、已失效 |
string |
reply_time |
回复时间 |
string (date-time) |
shop_id |
店铺ID |
string |
store |
门店 |
|
time |
催单时间 |
string (date-time) |
2.91. OrderRemindFilter
名称 | 说明 | 类型 |
---|---|---|
id_eq |
id等于 |
string |
id_in |
idIn |
< string > array |
order_id_eq |
订单Id等于 |
string |
order_id_in |
订单IdIn |
< string > array |
platform_id_eq |
平台Id等于 |
string |
reply_state_eq |
回复状态 |
string |
store_id_eq |
门店Id等于 |
string |
2.92. OrderRemindPaging
催单分页对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
reminds |
订单列表 |
< OrderRemind > array |
total |
总条数 |
integer (int64) |
2.93. OrderSelftakeCheckRequest
自提检查请求对象
名称 | 说明 | 类型 |
---|---|---|
front_order_id |
平台订单号 |
string |
platform_id |
平台ID |
string |
selftake_code |
自提码 |
string |
selftake_qrcode |
自提二维码 |
string |
store_id |
门店ID |
string |
2.94. OrderSelftakeCheckResponse
自提检查返回结果对象
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
订单号 |
string |
success |
默认值 : |
boolean |
2.95. OrderSelftakeRequest
自提请求对象
名称 | 说明 | 类型 |
---|---|---|
selftake_qrcode |
自提二维码(订单号和自提二维码不能同时为空) |
string |
store_id |
门店ID |
string |
2.96. OrderSelftakeV2Request
自提请求对象
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号(订单号和自提二维码不能同时为空) |
string |
platform_id |
平台ID(自提二维码不为空时必填) |
string |
selftake_qrcode |
自提二维码(订单号和自提二维码不能同时为空) |
string |
store_id |
门店ID |
string |
2.97. OrderSelftakeV2Response
自提请求响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
订单号 |
string |
success |
默认值 : |
boolean |
2.98. OrderSettle
订单结算单
名称 | 说明 | 类型 |
---|---|---|
amount |
客户实付金额 |
number |
bottom_service_fee |
保底服务费 |
number |
cod_amount |
货到付款金额 |
number |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
delivery_type_id |
配送方式id |
string |
delivery_type_name |
配送方式名称 |
string |
discount |
商家优惠金额 |
number |
discount_amount |
优惠总金额 |
number |
discounts |
订单级优惠详情 |
< OrderSettleItemDiscount > array |
freight |
原运费 |
number |
freight_commission |
运费佣金 |
number |
freight_discount |
运费优惠金额 |
number |
front_settle_id |
平台对账ID |
string |
front_state |
平台单据状态 |
string |
front_type_id |
单据类型ID,不同平台ID不同 |
string |
front_type_name |
单据类型名称,不同平台名称不同 |
string |
invoice_fee |
开票金额 |
number |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_created |
下单时间 |
string (date-time) |
order_finish_time |
完成时间 |
string (date-time) |
order_id |
订单ID |
string |
other_fees |
其他费用 |
< OrderFee > array |
package_box |
原餐盒费 |
number |
package_fee |
原打包费 |
number |
pay_amount |
付款金额 |
number |
performance_service_fee |
履约服务费 |
number |
platform_freight_discount |
平台运费优惠金额 |
number |
platform_id |
平台ID |
string |
platform_promotion_settle |
平台推广结算 |
number |
platform_service_fee |
平台服务费 |
number |
platform_service_rate |
平台服务费率,记小数,举例:0.02=20% |
number |
platform_subsidy_suspend |
平台补贴暂扣 |
number |
refund_id |
平台退款ID |
string |
refund_time |
退款时间 |
string (date-time) |
selttle_commission |
平台结算佣金,拼写错误,建议使用:settle_commission |
number |
settle |
结算金额 |
number |
settle_amount |
平台结算金额(商家应收款) |
number |
settle_commission |
平台结算佣金 |
number |
settle_date |
结账日期 |
string (date-time) |
settle_discount |
平台结算优惠金额,平台优惠补贴 |
number |
settle_freight |
平台结算运费 |
number |
settle_id |
对账ID |
string |
settle_state |
结算状态:已入账|未入账 |
string |
shop_discount |
商家商品优惠金额贴 |
number |
shop_freight_discount |
商家运费优惠金额贴 |
number |
shop_id |
平台商家ID |
string |
shop_package_fee |
商家打包费 |
number |
sp_store_id |
平台门店ID |
string |
station_id |
配送门店ID |
string |
station_name |
配送门店名称 |
string |
sub_front_type_id |
单据子类型ID,不同平台ID不同 |
string |
sub_front_type_name |
单据子类型名称,不同平台名称不同 |
string |
total |
原商品金额 |
number |
2.99. OrderSettleDiscount
对账优惠信息
名称 | 说明 | 类型 |
---|---|---|
amount |
优惠金额 |
number |
details |
优惠结算详情 |
< DiscountSettleDetail > array |
scope |
优惠范围 |
string |
2.100. OrderSettleFilter
查询指定对账数据过滤器
名称 | 说明 | 类型 |
---|---|---|
created_end |
创建时间结束于 |
string (date-time) |
created_start |
创建时间起始于 |
string (date-time) |
front_type_name_eq |
账单类型等于 |
string |
front_type_name_start_with |
账单类型起始于 |
string |
id_end_no_equal |
对账ID小于 |
string |
ids |
对账id数组 |
< string > array |
modified_end |
最后修改时间结束于 |
string (date-time) |
modified_start |
最后修改时间起始于 |
string (date-time) |
order_id_eq |
订单ID等于 |
string |
order_id_in |
订单ID数组 |
< string > array |
order_ids |
订单ID数组 |
< string > array |
order_start_with |
订单ID起始于 |
string |
platform_id_eq |
平台ID等于 |
string |
platform_id_in |
平台ID数组 |
< string > array |
settle_date_end |
账单日期结束于 |
string (date-time) |
settle_date_start |
账单日期起始于 |
string (date-time) |
shop_id_eq |
平台商家ID等于 |
string |
sp_store_id_eq |
平台门店ID等于 |
string |
station_id_eq |
门店ID等于 |
string |
station_id_in |
门店ID数组 |
< string > array |
2.101. OrderSettleInfo
对账信息
名称 | 说明 | 类型 |
---|---|---|
discounts |
优惠结算明细 |
< OrderSettleDiscount > array |
settlable |
是否可结算 |
boolean |
settle_date |
账单日期 |
string (date-time) |
station_settle_mode |
门店分账模式:online(线上分账模式)、offline(线下分账模式) |
string |
2.102. OrderSettleItemDiscount
订单级优惠详情
名称 | 说明 | 类型 |
---|---|---|
act_id |
活动代码 |
string |
act_name |
活动名称 |
string |
amount |
商家承担金额 |
number |
discount_amount |
优惠金额 |
number |
front_amount |
平台承担金额 |
number |
front_discount_detail_type_id |
平台优惠类型详情ID |
string |
front_discount_detail_type_name |
平台优惠类型详情名称 |
string |
front_discount_type_id |
平台优惠类型ID |
string |
front_discount_type_name |
平台优惠类型名称 |
string |
radio |
商家承担比例,[0,1] |
number |
type |
类型:order,item |
string |
2.103. OrderSettleItemFilter
查询指定订单明细结算数据过滤器
名称 | 说明 | 类型 |
---|---|---|
item_id_in |
明细行ID列表 |
< string > array |
order_id_eq |
订单ID等于 |
string |
platform_id_eq |
平台ID等于 |
string |
shop_id_eq |
平台商家ID等于 |
string |
2.104. OrderSettleItemOrderList
明细结算数据列表对象
名称 | 说明 | 类型 |
---|---|---|
orders |
明细结算数据列表 |
< 明细结算数据列表 > array |
2.105. OrderSettleItemPaging
订单明细结算数据查询对象
名称 | 说明 | 类型 |
---|---|---|
items |
订单明细结算数据列表 |
< 订单明细结算数据 > array |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
2.106. OrderSettleList
订单结算单列表对象
名称 | 说明 | 类型 |
---|---|---|
items |
订单结算单列表 |
< OrderSettle > array |
2.107. OrderSettlePaging
对账数据查询对象
名称 | 说明 | 类型 |
---|---|---|
items |
订单结算单列表 |
< OrderSettle > array |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
2.108. OrderStoreMod
订单下单门店
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
order_store |
下单门店 |
2.109. OrderStoreModError
修改订单下单门店失败明细
名称 | 说明 | 类型 |
---|---|---|
id |
订单号 |
string |
message |
原因 |
string |
2.110. OrderStoreModRequest
修改订单下单门店
名称 | 说明 | 类型 |
---|---|---|
mods |
订单修改列表,一次修改记录不能超过100 |
< OrderStoreMod > array |
2.111. OrderStoreModResponse
修改订单下单门店响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
errors |
失败明细,如果sucess=false,errors为空表示整体失败,否则errors记录具体失败明细 |
< OrderStoreModError > array |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.112. OrderSubmitResponse
订单新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
样例 : |
string |
success |
默认值 : |
boolean |
2.115. PackageDetail
打包商品明细
名称 | 说明 | 类型 |
---|---|---|
amount |
打包袋金额 |
number |
qty |
打包袋数量 |
number |
sku_id |
打包袋ID |
string |
sku_name |
打包袋名称 |
string |
2.116. PackageInfo
商品打包信息
名称 | 说明 | 类型 |
---|---|---|
packageName |
打包袋名称 |
string |
quantity |
包装盒数量 |
number |
thermosphere |
温层 |
string |
total |
包装费用 |
number |
2.117. PayRequest
支付请求对象
名称 | 说明 | 类型 |
---|---|---|
details |
支付方式详情 |
< PaymentDetail > array |
pay_bill_id |
支付账单号 |
string |
pay_state |
付款状态:notPay(未付款)、earnest(已付定金)、paid(已付全款) |
enum (notPay, earnest, paid) |
pay_time |
付款时间 |
string (date-time) |
payee |
付款人 |
2.118. 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.119. 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.121. PrintBill
打印单据
名称 | 说明 | 类型 |
---|---|---|
content |
内容 |
string |
created |
单据创建时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
deleted |
默认值 : |
boolean |
deleted_time |
样例 : |
string (date-time) |
name |
模板小票名称 |
string |
outerId |
外部Id,目前作为yilianyun打印的唯一标识 |
string |
printer |
打印机类型:JPOS(JPOS打印机),yilianyun(易联云打印机),默认JPOS |
string |
sku_id |
样例 : |
string |
ticket_type |
票据类型:小票、杯贴 |
string |
title |
显示名称 |
string |
type |
样例 : |
string |
2.123. Refund
退款信息
名称 | 说明 | 类型 |
---|---|---|
amount |
实际退货金额(包含运费) |
number |
classification |
退款类别,取值范围:normal(正常)、balance(补差),为空表示正常 |
enum (normal, balance) |
extra |
退款其他费用,退货取件费:rtn_pickup_freight |
< ExtraField > array |
freight |
退运费 |
number |
package_total |
包装费用 |
number |
part_refund |
是否部分退 |
boolean |
payments |
退款支付明細 |
< RefundPayment > array |
refund_phase |
退款阶段,取值范围:onsale(售中)、aftersale(售后) |
enum (onsale, aftersale) |
settle_amount |
结算金额 |
number |
settle_commission |
平台结算佣金 |
number |
settle_fieight |
结算运费 |
number |
shop_amount |
商家货款金额 |
number |
state |
退款状态,取值范围:none(未退款)、refunded(已退款) |
enum (none, refunded) |
2.124. RefundPayment
退款支付明细
名称 | 说明 | 类型 |
---|---|---|
account_name |
账号名称 |
string |
account_no |
账号 |
string |
amount |
退款金额 |
number |
code |
支付方式代码 |
string |
discount_amount |
退款优惠金额 |
number |
extra_info |
扩展信息,json字符串 |
string |
name |
支付方式名称 |
string |
out_pay_id |
第三方支付流水号 |
string |
pay_id |
支付id |
string |
score |
积分数量 |
number |
2.125. ReissueOrderItem
补发商品明细
名称 | 说明 | 类型 |
---|---|---|
item_no |
行号 |
string |
quantity |
数量 |
number |
sku_id |
货号 |
string |
2.126. ReplyRemindRequest
名称 | 说明 | 类型 |
---|---|---|
reply_content |
回复内容 |
string |
reply_operator |
回复操作人 |
string |
reply_time |
回复时间 |
string (date-time) |
2.127. ReqFrontMod
修改平台信息
名称 | 说明 | 类型 |
---|---|---|
extend_props |
属性信息 |
string |
logistic |
物流信息 |
|
logs |
订单日志 |
< SaleOrderLog > array |
state |
状态 |
string |
wrh |
仓库信息 |
2.128. ReqReturnRequest
退货请求对象
名称 | 说明 | 类型 |
---|---|---|
return_state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
waybills |
运单信息 |
< WaybillInfo > array |
2.129. ReturnDelivery
退货信息
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
return_mobile |
退货联系人 |
string |
returner |
退货人 |
|
state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
station |
退回门店 |
|
station_type |
退回站点类型,取值范围:store(门店)、wrh(仓库)、vendor(供应商) |
string |
vendor |
退回供应商 |
|
waybill_id |
承运单号 |
string |
wrh |
退回仓库 |
|
wrh_rtn_id |
仓库退货单号 |
string |
2.130. ReturnRequest
退货请求对象
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
operator_role |
操作角色 |
string |
return_state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
waybill_id |
承运单号,非空时将更新 |
string |
2.131. Rtn
退换货单
名称 | 说明 | 类型 |
---|---|---|
address_change_fee |
地址变更费 |
number |
appeal |
是否申诉 |
boolean |
apply_id |
申请ID |
string |
apply_reason |
申请原因 |
string |
apply_system |
申请方 |
string |
approve_state |
审批状态,取值范围:none(未审核),serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
cancel_reason |
取消申请原因 |
string |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
crm_info |
营销信息 |
|
customer |
客户 |
|
customer_note |
客户留言 |
string |
delivery |
退货信息 |
|
exception_codes |
异常代码,sku(商品异常) |
string |
exception_remark |
异常说明 |
string |
exception_time |
异常时间 |
string (date-time) |
front |
平台退货信息 |
|
has_exception |
是否异常 |
boolean |
id |
退货订单号,不能重复,为空自动生成 |
string |
items |
商品行 |
< RtnItem > array |
member_info |
会员积分信息 |
|
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_id |
原订单号 |
string |
package_info |
打包信息 |
|
print_bills |
退单打印数据 |
< PrintBill > array |
promotion |
退单促销 |
|
refund |
退款信息 |
|
req_id |
申请单ID(废弃字段) |
string |
rtn_req_id |
销售退单号 |
string |
seller_info |
收货失败:原因/凭证 |
|
settle_info |
对账信息 |
|
settle_unit |
结算单位 |
|
shop |
平台商家 |
|
sku_quantity |
商品总数 |
number |
state |
退货单状态,新建可不填,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消),为空时取默认值confirmed |
enum (confirmed, approved, finished, canceled) |
tags |
订单标签 |
< OrderTag > array |
type |
退货单类型,取值范围:refund(仅退款)、refundAndRtn(退款退货);为空默认为退款退货 |
enum (refund, refundAndRtn) |
voucher_urls |
凭证Url(图片) |
< string > array |
wrh_id |
发货仓库编号 |
string |
wrh_state |
仓库状态,取值参考RtnWrhState |
string |
2.132. RtnApproveRequest
退单审核请求对象
名称 | 说明 | 类型 |
---|---|---|
approve_state |
审核状态:none(未审核),serviceApproved(客服已审核),serviceRefuse(客服已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
item_infos |
明细信息 |
< 退单审核请求对象-明细信息 > array |
operator_role |
操作角色:platform(平台) |
string |
reason |
原因 |
string |
turn_to_type |
转换为哪种类型 |
enum (refund, refundAndRtn) |
2.133. RtnFilter
退单过滤器
名称 | 说明 | 类型 |
---|---|---|
app_id_eq |
平台应用代码等于 |
string |
appeal |
是否申诉 |
boolean |
approve_states |
审核状态,取值范围:none(未审核)、serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
< enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) > array |
bill_id_eq |
凭证单号等于 |
string |
bill_id_like |
凭证单号类似 |
string |
carrier_states |
承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
< enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled) > array |
carrier_types |
承运类型,取值范围:self(商家自送)、thirdparty(平台配送)、express(快递配送) |
< enum (self, thirdparty, express) > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
customer_Mobile |
客户电话 |
string |
customer_Name |
客户姓名 |
string |
customer_mobile_like |
客户电话模糊搜索 |
string |
deliver_rtn_end |
退货终止时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
deliver_rtn_start |
退货起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
fake_refund_date |
退款完成日期,只支持es,是用索引最后修改时间和退款状态=refunded来匹配的,格式为:yyyy-MM-dd |
string (date-time) |
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 |
平台订单ID |
string |
front_rtn_id |
平台退换货ID |
string |
front_sku_id |
平台商品编码 |
string |
front_station_order_no_eq |
门店订单号 |
string |
has_billing |
是否有凭证信息 |
boolean |
has_exception |
是否异常 |
boolean |
index_modified_end |
索引最后修改时间结束于,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
index_modified_start |
索引最后修改时间起始于,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
order_id |
订单号起始于 |
string |
order_id_in |
订单号 |
< string > array |
pick_info_operator_id_eq |
订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单 |
string |
pick_info_operator_id_in |
订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单 |
< string > array |
pick_info_operator_name_like |
订单拣货信息-拣货员名称 |
string |
platform_id |
平台ID |
string |
platform_ids |
平台ID集合 |
< string > array |
pre_page |
上一次页数 |
integer (int32) |
product_contains |
商品包括 |
string |
refund_phase |
申请阶段 |
string |
refund_states |
退款状态,取值范围:none(未审核)、refunded(已退款) |
< enum (none, refunded) > array |
return_states |
退货状态,取值范围:none(未审核)、customerShipped(客户已发货)、received(已收货) |
< enum (none, customerShipped, received) > array |
rtn_Id |
退单号起始于 |
string |
rtn_ids |
退单号 |
< string > array |
shop_id |
店铺ID |
string |
sku_id |
商品编码 |
string |
states |
退货单状态,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消) |
< enum (confirmed, approved, finished, canceled) > array |
station_id |
门店ID |
string |
station_ids |
门店ID |
< string > array |
station_type |
退回站点 |
string |
types |
退货类型 |
< enum (refund, refundAndRtn) > array |
vendor_code_eq |
供应商代码等于 |
string |
vendor_code_in |
供应商代码集合 |
< string > array |
vendor_code_start_with |
供应商代码起始于 |
string |
waybill_id |
退回物流单号 |
string |
wrh_id_in |
退回仓库code集合 |
< string > array |
wrh_id_start_with |
退回仓库code起始于 |
string |
2.134. RtnItem
退货商品行
名称 | 说明 | 类型 |
---|---|---|
barcode |
商品条码 |
string |
details |
退款商品行明细 |
< RtnItemDetail > array |
extra_info |
扩展信息,json字符串 |
string |
front_item_id |
平台订单行ID |
string |
front_sku_id |
前台商品标识 |
string |
front_unit |
单位 |
string |
image_url |
商品图片信息 |
string |
is_collocation |
是否搭配商品(加料) |
boolean |
is_gift |
默认值 : |
boolean |
item_id |
行唯一标识 |
string |
item_no |
行号 |
string |
item_title |
商品标题 |
string |
order_item_id |
订单行标识id |
string |
orig_barcode |
转换前商品条码 |
string |
orig_image_url |
转换前商品图片信息 |
string |
orig_item |
订单原商品信息,用于多规格、组合商品场景,记录用户下单时的商品信息 |
|
orig_item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
orig_mas_sku_id |
样例 : |
string |
orig_price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
orig_qty |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
orig_sku_id |
转换前的货号:用于多规格转换场景 |
string |
orig_spec |
转换前的规格:用于多规格、组合商品转换标品场景 |
string |
orig_unit |
转换前的单位:用于多规格、组合商品转换标品场景 |
string |
origin_sku_id |
替换前的商品标识,只有界面使用 |
string |
product_id |
商品代码 |
string |
promotion |
商品退促销 |
|
purchase_price |
采购价 |
number |
quantity |
退货数量 |
number |
real_qty |
实际数量(已废弃) |
number |
real_quantity |
实际拣货商品数量 |
number |
real_weight |
实际称重,明细总重量,单位g |
number |
refund_amount |
退款金额 (订单优惠后的金额) |
number |
relation_item_id |
关联商品行号 |
string |
relation_sku_id |
关联的货号 |
string |
settle_price |
结算价格 |
number |
settle_total |
结算金额 |
number |
shop_price |
货款价格 |
number |
shop_total |
货款金额 |
number |
sku_id |
商品标识 |
string |
spec |
商品规格 |
string |
tags |
标签 |
< 退单明细标签 > array |
total |
退款金额 |
number |
trace_code_details |
溯源码明细 |
< OrderItemTraceCodeDetail > array |
unit |
单位:个、份等 |
string |
unit_price |
价格 |
number |
uuid |
样例 : |
string |
2.135. RtnItemDetail
退款商品行明细
名称 | 说明 | 类型 |
---|---|---|
id |
商品货号 |
string |
quantity |
商品数量 |
number |
ratio |
原料比例,数值3表示,一个组合商品,包含3个原料商品 |
number |
real_quantity |
样例 : |
number |
title |
名称 |
string |
trace_code_details |
溯源码明细 |
< OrderItemTraceCodeDetail > array |
2.138. RtnModificationRequest
修改退货单请求对象
名称 | 说明 | 类型 |
---|---|---|
address_change_fee |
地址变更费 |
number |
apply_reason |
申请原因 |
string |
carrier_type |
退单配送状态 |
enum (self, thirdparty, express) |
customer_note |
客户留言 |
string |
freight |
运费 |
number |
items |
退换货明细行 |
< RtnItem > array |
modify_item_detail |
是否修改商品原料 |
boolean |
package_total |
包装费 |
number |
refund_extra |
退款其他费用,退货取件费:rtn_pickup_freight |
< ExtraField > array |
rtnId |
退换货单ID |
string |
settle_amount |
结算金额 |
number |
settle_commission |
本退单退回佣金 |
number |
voucher_urls |
凭证Url(图片) |
< string > array |
2.140. RtnOrigItem
原商品行信息
名称 | 说明 | 类型 |
---|---|---|
barcode |
转换前条码 |
string |
combined_id |
如果是组合商品,需要传组合标识ID,可以用组合商品ID作为标识 |
string |
image_url |
转换前图片地址 |
string |
item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
quantity |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
sku_id |
转换前的货号:用于多规格、组合商品转换标品场景 |
string |
type |
类型,多规格multi、组合combined |
string |
2.141. RtnPaging
退单分页对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
页大小 |
integer (int32) |
rtns |
退单列表 |
< Rtn > array |
total |
总条数 |
integer (int64) |
2.142. RtnPrintData
退单打印数据
名称 | 说明 | 类型 |
---|---|---|
bills |
每联的打印数据 |
< PrintBill > array |
front_rtn_id |
前端平台退单ID |
string |
rtn_id |
退单号 |
string |
time |
打印数据的生成时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
2.143. RtnPrintDataList
退单打印数据列表对象
名称 | 说明 | 类型 |
---|---|---|
rtns |
退单打印数据列表 |
< RtnPrintData > array |
2.145. RtnRefundUpdateRequest
修改退款信息
名称 | 说明 | 类型 |
---|---|---|
payments |
退款支付明細 |
< RefundPayment > array |
2.146. RtnReq
退换货申请单
名称 | 说明 | 类型 |
---|---|---|
appeal |
是否申诉 |
boolean |
apply_reason |
申请原因 |
string |
approve_state |
审批状态,取值范围:none(未审核),serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
cancel_reason |
取消申请原因 |
string |
change_order_info |
换出信息 |
|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
customer |
客户 |
|
customer_note |
客户留言 |
string |
delivery |
配送信息 |
|
exception_codes |
异常代码,sku(商品异常) |
string |
exception_remark |
异常说明 |
string |
extra_info |
扩展信息,json字符串 |
string |
front |
平台退货信息 |
|
has_exception |
是否异常 |
boolean |
id |
申请单ID,不能重复,为空自动生成 |
string |
items |
商品行 |
< RtnReqItem > array |
logs |
退换货申请单日志 |
< SaleOrderLog > array |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_id |
原订单号 |
string |
promotion |
退单促销 |
|
refund |
退款信息 |
|
seller_node |
商家备注 |
string |
shop |
平台商家店铺,非门店 |
|
state |
退货单状态,新建可不填,取值范围:confirmed(已生成)、prepared(已预处理),approved(审核通过)、rejected(已拒绝)、finished(已完成)、canceled(已取消),为空时取默认值confirmed |
enum (confirmed, perpared, approved, finished, canceled, rejected) |
station |
退货站点 |
|
tags |
订单标签 |
< OrderTag > array |
type |
申请类型,取值范围:refund(仅退款申请)、refundAndRtn(退款退货申请)、change(换货申请) |
enum (refund, refundAndRtn, change) |
voucher_urls |
凭证Url(图片) |
< string > array |
wrh_id |
退回仓库编号 |
string |
wrh_state |
仓库状态,取值参考RtnWrhState |
string |
2.147. RtnReqApproveRequest
退单审核请求对象
名称 | 说明 | 类型 |
---|---|---|
approve_state |
审核状态:none(未审核),serviceApproved(客服已审核),serviceRefuse(客服已拒绝),financeApproved(财务已审核),financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
reason |
原因 |
string |
2.148. RtnReqDelivery
配送信息
名称 | 说明 | 类型 |
---|---|---|
returner |
退货人 |
|
state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
station |
退回门店 |
|
station_type |
退回站点类型,取值范围:store(门店)、wrh(仓库)、vendor(供应商) |
string |
waybills |
运单信息 |
< WaybillInfo > array |
wrh |
仓库 |
2.149. RtnReqEsFilter
退换货申请单ES过滤器
名称 | 说明 | 类型 |
---|---|---|
approve_states |
审核状态,取值范围:none(未审核)、serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
< enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
customer_Mobile |
客户电话 |
string |
customer_Name |
客户姓名 |
string |
customer_mobile_like |
客户电话模糊搜索 |
string |
customer_name_like |
客户姓名类似于 |
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 |
平台订单ID |
string |
has_exception |
是否异常 |
boolean |
order_id |
订单号 |
string |
order_id_in |
订单号 |
< string > array |
order_id_start_with |
订单号起始于 |
string |
platform_id |
平台ID |
string |
platform_ids |
平台ID集合,仅支持es |
< string > array |
pre_page |
上一次页数 |
integer (int32) |
return_states |
退货状态,仅支持es,取值范围:none(未审核)、customerShipped(客户已发货)、received(已收货) |
< enum (none, customerShipped, received) > array |
rtn_req_id |
退换货申请单号 |
string |
rtn_req_id_start_with |
退换货申请单号起始于 |
string |
shop_id |
店铺ID |
string |
states |
退货单状态,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消) |
< enum (confirmed, perpared, approved, finished, canceled, rejected) > array |
station_id |
门店ID,仅支持es |
string |
station_ids |
门店ID,仅支持es |
< string > array |
types |
退货类型 |
< enum (refund, refundAndRtn, change) > array |
waybill_id_condition |
下属退回运单号中运单号精确包含,仅支持es |
string |
2.150. RtnReqFilter
退换货申请单过滤器
名称 | 说明 | 类型 |
---|---|---|
approve_states |
审核状态,取值范围:none(未审核)、serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
< enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
customer_Mobile |
客户电话 |
string |
customer_Name |
客户姓名 |
string |
customer_mobile_like |
客户电话模糊搜索 |
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 |
平台订单ID |
string |
has_exception |
是否异常 |
boolean |
order_id |
订单号 |
string |
order_id_in |
订单号 |
< string > array |
order_id_start_with |
订单号起始于 |
string |
platform_id |
平台ID |
string |
pre_page |
上一次页数 |
integer (int32) |
rtn_req_id |
退换货申请单号 |
string |
rtn_req_id_start_with |
退换货申请单号起始于 |
string |
shop_id |
店铺ID |
string |
states |
退货单状态,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消) |
< enum (confirmed, perpared, approved, finished, canceled, rejected) > array |
station_ids |
门店ID,仅支持es |
< string > array |
types |
退货类型 |
< enum (refund, refundAndRtn, change) > array |
2.151. RtnReqFront
平台退换货申请单信息
名称 | 说明 | 类型 |
---|---|---|
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,申请在鼎力云开通。 |
|
rtn_id |
平台退货单号 |
string |
shop |
店铺 |
|
state |
状态 |
string |
station_order_no |
平台门店订单序号 |
string |
third_order_id |
通道系统订单号,第三方单号 |
string |
wrh |
仓库信息 |
2.152. RtnReqItem
退货申请单商品行
名称 | 说明 | 类型 |
---|---|---|
apported_discount_amount |
整单优惠分摊金额,如:订单满减,整单分摊到明细 |
number |
barcode |
商品条码 |
string |
combined |
默认值 : |
boolean |
details |
样例 : |
< RtnReqItemDetail > array |
discount_amount |
商品优惠金额,如:商品立减优惠 |
number |
front |
前端商品信息 |
|
front_item_id |
平台订单行ID |
string |
front_sku_id |
前台商品标识 |
string |
front_unit |
单位 |
string |
gift |
默认值 : |
boolean |
image_Url |
商品图片信息 |
string |
item_id |
行唯一标识 |
string |
item_no |
订单行号 |
string |
item_title |
商品标题 |
string |
orig_barcode |
转换前商品条码 |
string |
orig_image_url |
转换前商品图片信息 |
string |
orig_item |
订单原商品信息,用于多规格、组合商品场景,记录用户下单时的商品信息 |
|
orig_item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
orig_price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
orig_qty |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
orig_sku_id |
转换前的货号:用于多规格转换场景 |
string |
origin_sku_id |
替换前的商品标识,只有界面使用 |
string |
package_total |
包装费用 |
number |
price |
售价(促销价) |
number |
product_id |
商品代码 |
string |
purchase_price |
采购价 |
number |
quantity |
数量 |
number |
refund_amount |
退款金额 (订单优惠后的金额) |
number |
rtn_id |
关联退回单号 |
string |
rtn_state |
退回单状态,取值范围:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering( 配送中)、delivered(配送完成)、canceled(已取消) |
string |
settle_price |
结算价格 |
number |
settle_total |
结算金额 |
number |
shop_price |
货款价格 |
number |
shop_total |
货款金额 |
number |
sku_id |
商品标识(货号) |
string |
spec |
商品规格 |
string |
station_id |
样例 : |
string |
station_name |
样例 : |
string |
total |
商品金额,等于unit_price * quantity |
number |
unit |
单位:个、份等 |
string |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
uuid |
样例 : |
string |
2.153. RtnReqItemDetail
退款商品行明细
名称 | 说明 | 类型 |
---|---|---|
id |
商品货号 |
string |
quantity |
商品数量 |
number |
ratio |
原料比例,数值3表示,一个组合商品,包含3个原料商品 |
number |
real_quantity |
样例 : |
number |
title |
名称 |
string |
2.155. RtnReqModRequest
修改退货单请求对象
名称 | 说明 | 类型 |
---|---|---|
apply_reason |
申请原因 |
string |
change_items |
换货明细行 |
< ChangeItem > array |
customer_note |
客户留言 |
string |
front |
平台信息 |
|
items |
退货明细行 |
< RtnReqItem > array |
seller_node |
商家备注 |
string |
type |
申请类型 |
enum (refund, refundAndRtn, change) |
waybills |
运单信息 |
< WaybillInfo > array |
wrh_id |
退回仓库编号 |
string |
2.156. RtnReqOrigItem
原商品行信息
名称 | 说明 | 类型 |
---|---|---|
barcode |
转换前条码 |
string |
combined_id |
如果是组合商品,需要传组合标识ID,可以用组合商品ID作为标识 |
string |
image_url |
转换前图片地址 |
string |
item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
quantity |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
sku_id |
转换前的货号:用于多规格、组合商品转换标品场景 |
string |
type |
类型,多规格multi、组合combined |
string |
2.157. RtnReqPaging
退换货申请单分页对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
页大小 |
integer (int32) |
rtnReqs |
退换货申请单列表 |
< RtnReq > array |
total |
总条数 |
integer (int64) |
2.159. RtnReqSubmitResponse
退换货申请单新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
id |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.160. RtnSettleInfo
对账信息
名称 | 说明 | 类型 |
---|---|---|
settlable |
是否可结算 |
boolean |
settle_date |
账单日期 |
string (date-time) |
station_settle_mode |
门店分账模式:online(线上分账模式)、offline(线下分账模式) |
string |
2.161. RtnSettleInfoUpdateRequest
修改结算信息
名称 | 说明 | 类型 |
---|---|---|
settlable |
默认值 : |
boolean |
settle_date |
样例 : |
string (date-time) |
2.162. RtnSubmitResponse
退单新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
rtn_id |
样例 : |
string |
success |
默认值 : |
boolean |
2.163. RtnUpdateDeliveryRequest
修改物流物流退回信息请求对象
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
mobile |
手机号 |
string |
state |
退货状态:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
waybill_id |
承运单号 |
string |
2.164. 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.165. 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_order_no |
订单序号 |
string |
third_order_id |
通道系统订单号,第三方单号 |
string |
wrh |
仓库 |
2.166. 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.167. 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.168. 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.169. 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.170. 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.171. SaleOrderItemDetail
销售订单组合明细原料
名称 | 说明 | 类型 |
---|---|---|
id |
原料货号 |
string |
quantity |
需要原料商品数量,C=2A+3B,原料商品数量=组合商品数量*基数 |
number |
ratio |
原料商品基数 |
number |
title |
原料名称 |
string |
upc |
国际码 |
string |
2.172. SaleOrderList
销售订单
名称 | 说明 | 类型 |
---|---|---|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
sale_orders |
销售订单 |
< SaleOrder > array |
2.173. SaleOrderLockDetail
销售订单占货明细
名称 | 说明 | 类型 |
---|---|---|
state |
none |
enum (none, part, all) |
stock_type |
wrh |
string |
2.174. 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.175. SaleOrderPaging
销售单分页对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
saleOrders |
销售单列表 |
< SaleOrder > array |
total |
总条数 |
integer (int64) |
2.176. SaleOrderSubmitResponse
销售单新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
sale_order_id |
样例 : |
string |
success |
默认值 : |
boolean |
2.177. 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.179. SelftakeRule
自提规则
名称 | 说明 | 类型 |
---|---|---|
def |
规则内容 |
|
platform_id |
平台ID |
string |
shop_id |
商家ID |
string |
source |
规则来源,取值:ptm_shop(平台商家)、ptm_store(平台门店) |
string |
state |
是否开通:applying(未开通)、opened(已开通) |
enum (applying, opened) |
store_id |
门店ID |
string |
2.181. SellerInfo
收货失败:原因/凭证
名称 | 说明 | 类型 |
---|---|---|
seller_note |
收货失败原因 |
string |
seller_voucher_urls |
卖家收货失败凭证:图片地址 |
< string > array |
2.182. SettleUnit
结算单位
名称 | 说明 | 类型 |
---|---|---|
code |
单位代码,取值门店代码 |
string |
name |
单位门店,取值门店名称 |
string |
type |
类型:store |
string |
2.183. StoreOperationRequest
门店作业请求
名称 | 说明 | 类型 |
---|---|---|
operation |
作业动作:accept(接单)、shipping(集货)、recheck(复核)、handover(交接)、cancelShipping(取消集货) |
string |
operation_state |
作业状态 |
string |
pick_info |
订单拣货信息 |
|
shipping_voucher_urls |
拣货凭证 |
< string > array |
store_id |
门店ID |
string |
2.184. StoreOperationRtnRule
名称 | 说明 | 类型 |
---|---|---|
allow_float |
默认值 : |
boolean |
allow_part_refund |
默认值 : |
boolean |
limtRtnApproveTimeRange |
样例 : |
string |
manual_receive |
默认值 : |
boolean |
2.185. StoreOperationRule
名称 | 说明 | 类型 |
---|---|---|
def |
规则内容 |
|
platform_id |
平台ID |
string |
shop_id |
商家ID |
string |
source |
样例 : |
string |
state |
是否开通:applying(未开通)、opened(已开通) |
enum (applying, opened) |
store_id |
门店ID |
string |
type |
样例 : |
string |
2.186. StoreOperationRuleDef
名称 | 说明 | 类型 |
---|---|---|
pick_rule |
样例 : 门店作业拣货规则 |
|
rtn_rule |
2.187. StoreOperationRuleFilter
名称 | 说明 | 类型 |
---|---|---|
platformIdEq |
样例 : |
string |
shopIdEq |
样例 : |
string |
stateEq |
样例 : |
string |
storeIdEq |
样例 : |
string |
storeIdIn |
样例 : |
< string > array |
typeEq |
样例 : |
string |
2.188. StoreOperationRuleSave
名称 | 说明 | 类型 |
---|---|---|
def |
def |
|
platform_id |
平台ID |
string |
shop_id |
商家代码 |
string |
store_id |
门店代码 |
string |
type |
类型 |
string |
2.189. SuspendInfo
挂起信息
名称 | 说明 | 类型 |
---|---|---|
caption |
挂起原因标题,显示用 |
string |
code |
挂起原因代码,每一种挂起原因用代码表示 |
string |
suspended |
是否挂起 |
boolean |
time |
挂起时间 |
string (date-time) |
2.190. TaggingRequest
更新订单标签请求
名称 | 说明 | 类型 |
---|---|---|
add_tags |
要新增的标签 |
< string > array |
remove_tags |
要移除的标签 |
< string > array |
2.192. UpdateReplyContentRequest
名称 | 说明 | 类型 |
---|---|---|
reply_content |
回复内容 |
string |
2.194. WaybillInfo
运单
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
station |
站点 |
|
station_type |
站点类型 |
string |
suggest_station |
建议站点 |
|
suggest_station_type |
建议站点类型 |
string |
virtual_station |
虚拟站点 |
|
virtual_station_type |
虚拟站点类型 |
string |
waybill_id |
运单号 |
string |
2.195. WaybillPrintData
运单打印详情
名称 | 说明 | 类型 |
---|---|---|
data |
数据 |
string |
type |
request|response |
string |
2.196. WaybillPrintInfo
运单打印数据
名称 | 说明 | 类型 |
---|---|---|
datas |
打印数据 |
< WaybillPrintData > array |
2.197. WishInfo
祝福信息
名称 | 说明 | 类型 |
---|---|---|
type |
1-含义:用户选择商家代打印贺卡 2-含义:用户选择空白贺卡 3-含义:用户选择不需要贺卡 |
string |
wish |
祝福语 |
string |
2.198. soms分页查询结果Count
名称 | 说明 | 类型 |
---|---|---|
data |
数据 |
< Count > array |
page |
页码 |
integer (int32) |
pageCount |
页数 |
integer (int32) |
pageSize |
页面大小 |
integer (int32) |
total |
总数 |
integer (int64) |
2.199. 明细结算数据列表
名称 | 说明 | 类型 |
---|---|---|
items |
订单明细结算数据 |
< 订单明细结算数据 > array |
order_id |
订单ID |
string |
2.200. 统计服务过滤器
名称 | 说明 | 类型 |
---|---|---|
actionEq |
action |
string |
actionIn |
action在……之中 |
< string > array |
actionNameLike |
actionName |
string |
businessKeyEq |
业务key |
string |
businessKeyIn |
业务key在……之中 |
< string > array |
modifiedBegin |
最后修改时间起始于 |
string (date-time) |
modifiedEnd |
最后修改时间结束于 |
string (date-time) |
typeEq |
类型 |
string |
typeIn |
类型在……之中 |
< string > array |
2.201. 联系方式(soms)
联系方式
名称 | 说明 | 类型 |
---|---|---|
email |
邮箱 |
string |
fax |
传真 |
string |
mobile |
手机(mobile和telephone建议给值mobile) |
string |
name |
姓名 |
string |
private_mobile |
脱敏手机号 |
string |
private_name |
脱敏名称 |
string |
telephone |
电话 |
string |
2.202. 订单数据库查询条件
名称 | 说明 | 类型 |
---|---|---|
created_end |
创建时间截止于 |
string (date-time) |
created_start |
创建时间起始于 |
string (date-time) |
front_created_end |
下单时间截止于 |
string (date-time) |
front_created_start |
下单时间起始于 |
string (date-time) |
need_count_total |
是否计算总数 |
boolean |
operation_state_in |
门店作业状态范围 |
< string > array |
order_id_eq |
订单号等于 |
string |
order_id_or_front_station_order_no_eq |
订单号或门店订单号等于 |
string |
pick_info_operator_id_eq |
拣货Id人等于 |
string |
pick_info_operator_id_in |
订单拣货信息-拣货员ID,若传is null则查询没有这个字段或字段为空的订单 |
< string > array |
state_in |
状态范围 |
< string > array |
station_id_in |
门店代码范围,最多200个 |
< string > array |
2.203. 订单明细结算数据
名称 | 说明 | 类型 |
---|---|---|
amount |
商品金额 |
number |
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
discount_amount |
商家承担金额 |
number |
discount_radio |
商家承担比例 |
number |
discounts |
订单级优惠列表 |
< OrderSettleItemDiscount > array |
fav_amount |
优惠总金额 |
number |
front_discount_amount |
平台承担金额 |
number |
front_discount_radio |
平台承担比例 |
number |
front_price |
平台商品价格 |
number |
front_score_amount |
平台积分金额 |
number |
front_sku_id |
平台商品编码 |
string |
item_id |
结算行id |
string |
item_no |
行号 |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_created |
下单时间 |
string (date-time) |
order_id |
订单ID |
string |
pay_amount |
顾客实付金额 |
number |
platform_id |
平台ID |
string |
price |
价格 |
number |
quantity |
数量 |
number |
shop_id |
店铺ID |
string |
sku_id |
商品平台编码 |
string |
station_id |
门店代码 |
string |
station_name |
门店名称 |
string |
total |
商品原价总金额 |
number |
unit_price |
原价 |
number |
2.204. 退单审核请求对象-明细信息
名称 | 说明 | 类型 |
---|---|---|
detail_infos |
原料信息 |
< 退单审核请求对象-明细原料信息 > array |
item_id |
行Id |
string |
item_no |
行号 |
string |
order_item_id |
订单行Id |
string |
real_quantity |
实际数量 |
number |
sku_id |
货号 |
string |
2.205. 退单审核请求对象-明细原料信息
名称 | 说明 | 类型 |
---|---|---|
real_quantity |
实际退回数量 |
number |
sku_id |
原料货号 |
string |
2.206. 退单明细标签
名称 | 说明 | 类型 |
---|---|---|
name |
名称 |
string |
2.207. 门店作业拣货规则
名称 | 说明 | 类型 |
---|---|---|
allow_pick_time |
限制拣货时间,允许提前多久分钟开始拣货,单位分钟 |
number |