版权所有©,上海海鼎信息工程股份有限公司,2016-2022,保留所有权利。
接入指南
接口开发规范
-
协议规则
传输方式:采用HTTPS传输 提交方式: 参数以HTTP REQUEST PAYLOAD形式进行提交。 设置Content-Type为“application/json” 设置Accept为“application/json” 数据格式:传入以及返回数据以JSON格式表达 字符编码:采用UTF-8字符编码
-
安全规范
认证:采用HTTP Basic Authentication 进行身份认证
通知回调
-
用途
通知回调方式是由鼎立云主动通知的方式来回调接入系统,相比传统的由接入系统轮询鼎立云的方式,回调方式更及时高效,特别是在一些对时间要求比较高的场景中,回调性能更好,且能减少系统压力。
-
回调说明
接入系统需要提供一个可被公网访问的URL地址,出于传输安全的需要,建议使用https方式但不进行证书校验)。 接入系统可以订阅不同的通知主题,不同的主题可以使用不同的回调地址,回调方式也可以和轮询方式同时使用。
-
格式内容说明
消息字段 |
字段名称 |
说明 |
|
id |
消息ID |
消息的唯一标识 |
|
group |
消息分组 |
用于消息业务类型的分组 |
|
content |
消息内容,json字符串 |
用于传递消息关键业务信息,如订单号 |
|
time |
消息时间 |
消息产生时间 |
-
消息示例
{
"id": "1",
"group": "order",
"topic": "order.shipped",
"content": "{ \"order_id\": \"44546546512132\" }",
"time": "2019-04-30 10:00:00"
"tag": "store:001"
}
接入系统收到回调后请返回成功:
{
"success": true
}
如果接收失败,可以返回错误,鼎力云将会延时重试推送10次,超过10次后此通知将被抛弃:
{
"success": false,
"message": "错误信息"
}
为了获得更好的性能,接入系统响应回调通知要求在200ms之内完成,对于处理时间比较长的任务,建议先收下通知再异步处理。
接入平台授权
-
授权信息说明
平台(platform_id) 开通新平台,需要约定平台ID,用于管理订单履约规则。 平台商家(shop_id) 开通新平台,需要指定一个平台商家,用于管理订单履约规则。 租户申请(tenant_id) 不同商户调用不同URL。 如SAAS生产:提交订单:http://api.u.hd123.com/{tenant_id}/soms/orderservice/order 接口用户名(user) 调用鼎力云接口的用户名 接口密码(password) 调用鼎力云接口的密码
-
沙箱授权申请
开发联调过程中,由项目工程负责人内部发起流程申请。
-
商户授权申请
上线申请过程中,由项目工程负责人内部发起流程申请。
业务场景
平台订单对接
接入方作为【平台】的角色,接入中台,由中台完成订单履约
-
门店配送订单流程
说明: 提交订单后: 订单状态->已确认;配送状态->未配送 门店作业:门店接单->接单(accepted);门店备货->接单(shipping); 更新配送状态(shipped): 订单状态->配送中(delivering);配送状态->已发货(shipped) 更新配送状态(signed): 订单状态->配送完成(delivered);配送状态->已妥投(signed)
相关接口: link:http://apidoc.hd123.com/public/soms/dly-doc/mcyp/#_soms_orderservice_newsubmit[提交订单]
相关消息: link:http://apidoc.hd123.com/public/soms/dly-doc/mcyp/#%E5%8F%AF%E8%AE%A2%E9%98%85%E7%9A%84%E9%80%9A%E7%9F%A5%E5%88%97%E8%A1%A8[order.state.changed]
-
订单发货前整单取消
说明: 提交订单: 订单状态->已确认;配送状态->未配送 取消订单: 订单状态->已取消;配送状态->未配送
-
订单发货后整单退
说明: 提交订单后: 订单状态->已确认;配送状态->未配送 更新配送状态(shipped): 订单状态->配送中;配送状态->已发货 取消订单: 订单挂起,生成退货单 确认收到退货: 订单状态->配送完成;配送状态->已拒收
-
仅退款流程
说明: 提交退款单(type=refund): 退单状态->已生成;退款状态->未退款 退款同意: 退单状态->已完成;退款状态->已退款 退款拒绝: 退款状态->已取消;退款状态->未退款
-
退款退货流程
说明: 提交退单(type=refundAndRtn): 退单状态->已生成;退货状态->未退货 确认退状态: 退单状态->已完成;退货状态->已退货
-
订单预占货
image:images/stock.png
-
订单预占货取消
平台资料对接
资料层级结构
说明: 平台商家:一个平台可以开通多个店铺(品牌、商家),一个店铺对应一个平台商家。 如:友客客户有两个品牌入驻了美团:友客、益欣,对于美团来说这两个品牌是两个商家,那在中台,友客和益欣就是同一个平台下的两个平台商家。 平台门店:一个平台商家可以关联多个门店,每个平台门店映射一个线下门店 平台商品:一个平台可以售卖的商品范围 平台门店商品:平台下的某个门店可以售卖的商品范围
未启用资料中台的场景
提交平台门店
说明: 平台门店:表示【本平台】要上线的门店范围,不在范围内的门店,不会同步该平台的库存、价格
提交平台商品
说明: 平台商品:表示【本平台】要上线的商品范围,设置平台商品,可以缩小同步给该平台的库存、价格范围,提升同步效率
启用资料中台的场景
资料中台开放平台文档: http://apidoc.hd123.com/public/mas/1.0.0/
平台门店
消息通知:platform_shop.changed.notify
查询API:/v2/{tenant}/service/platformcategory/query
平台分类
消息通知:platform_category.changed.notify
查询API:/v2/{tenant}/service/platformcategory/query
平台商品
消息通知:platform_front_spu.changed.notify
查询API:/v2/{tenant}/service/platformfrontspu/{platformId}/{frontSpuId}
平台门店商品
消息通知:platform_shop_sku.changed.notify
查询API:/v2/{tenant}/service/platformShopSku/query
效果示例:
平台价格更新对接
价格变化通知
通知示例:
{
"id": "1",
"group": "sku",
"topic": "store.pricechanged",
"scope": "store:0001",
"content": {
"skus": [
{
"store_id": "1001",
"sku_id": "10001",
"price": 100
},
{
"store_id": "1001",
"sku_id": "10002",
"price": 150
}
]
},
"time": "2019-04-30 10:00:00"
}
接入系统收到回调后请返回成功:
{
"success": true
}
如果接收失败,可以返回错误,鼎力云将会延时重试推送3次,超过3次后此通知将不再重试:
{
"success": false,
"message": "错误信息"
}
平台库存更新对接
库存变化通知
通知示例:
{
"id": "1",
"group": "sku",
"topic": "store.skuchanged",
"scope": "store:0001",
"content": {
"skus": [
{
"store_id": "1001",
"sku_id": "10001",
"qty": 100
},
{
"store_id": "1001",
"sku_id": "10002",
"qty": 150
}
]
},
"time": "2019-04-30 10:00:00"
}
接入系统收到回调后请返回成功:
{
"success": true
}
如果接收失败,可以返回错误,鼎力云将会延时重试推送3次,超过3次后此通知将不再重试:
{
"success": false,
"message": "错误信息"
}
门店履约端接入
接入方作为【门店履约方】的角色,接入中台,完成线上单据的履约操作
-
订单流程
说明: 新订单通知 获取打印数据,打印小票 查询订单详情 拣货操作 送货操作 送达确认 自提确认
-
仅退款流程
说明: 新退款通知 查询退款详情 同意退款 拒绝退款
-
退款退货流程
说明: 新退货通知 查询退货详情 同意退款 拒绝退款 确认收货成功 确认收货失败
ERP接入
接入方作为【ERP】的角色,接入中台,完成资料同步、销售单据结算等流程
-
资料流程
说明: 通过门店同步接口,同步门店信息给鼎力云 通过品牌同步接口,同步品牌信息给鼎力云 通过类目同步解耦,同步商品类目信息给鼎力云 通过主档同步接口,同步商品主档信息给鼎力云 通过商品同步接口,同步商品信息给鼎力云 通过门店商品同步接口,同步门店商品信息给鼎力云 通过门店商品库存更新接口,同步库存信息给鼎力云 通过门店商品价格更新接口,同步价格信息给鼎力云
-
批发单流程
说明: 订单发货通知 查询订单详情
-
仅退款批发退流程
说明: 退款确认通知 查询退单详情
-
退款退货批发退流程
说明: 退货收货通知 查询退单详情
-
平台对账数据流程
说明: 新订单对账消息通知 查询账单详情
促销场景
促销是线下商家典型采用的促销场景,包含多种促销模版。
概念:
促销活动:是指定时间段发生的一次促销行为。
促销模型:目前支持四种类型的促销模型:打折、满减、特价、赠送。
促销模版:在特定促销模型下变化出来的具体促销内容,比如特价分为单品特价、组合特价等。
-
单品特价
模版名:single_price 说明:A从原先的价格X元直接降为Y元 示例:购买商品69010020045,原价20元,特价10元
{ "sku_id": "69010020045", "std_price": 20.00, "price": 10.00 }
-
组合特价
模版名:group_price 说明:商品A,B,C任选m件n元 示例:购买商品69010020045、69303401295任选2件10元
{ "sku_ids": ["69010020045", "69303401295"], "buy_qty": 2, "price": 10.00 }
-
捆绑特价
模版名:package_price 说明:购买A商品X件,并且购买B商品m个或者C商品n个特价Y元 示例:购买2件商品69120434096,再任选1件691111111或692222222,特价10.00
{ "fixed_sku_id": "69120434096", "fixed_qty": 2, "optional_skus": [ { "sku_id": "691111111", "qty": 1 }, { "sku_id": "692222222", "qty": 1 } ], "price": 10.00 }
-
单品折扣
模版名:single_discount 说明:购买A商品直接X折 示例:购买商品69010020045享受6折
{ "sku_id": "69010020045", "discount": 0.6 }
-
单品满数量折扣
模版名:qty_discount 说明:购买A商品满X个打Y折 示例:购买商品69010020045满5件享受6折
{ "sku_id": "69010020045", "min_qty": 5, "discount": 0.6 }
-
单品满金额折扣
模版名:amount_discount 说明:购买A商品满X元打Y折 示例:购买商品69010020045满100元享受6折
{ "sku_id": "69010020045", "min_amount": 100.00, "discount": 0.6 }
-
单品满数量减
模版名:qty_reduce 说明:购买A商品满X个减Y元 示例:购买商品69010020045满2件减5元
{ "sku_id": "69010020045", "min_qty": 2, "reduce_amount": 5.00 }
-
单品满金额减
模版名:amount_reduce 说明:购买A商品满X元减Y元 示例:购买商品69010020045满100元立减5元
{ "sku_id": "69010020045", "min_amount": 100.00, "reduce_amount": 5.00 }
-
单品满赠
模版名:single_gift 说明:买n个商品A送m个商品B(或A本身),赠品无售价,多买多送 示例:购买商品69111111每2件送1件赠品69222222
{ "buy_sku_id": "69111111", "buy_qty": 2, "gift_sku_id": "69222222", "gift_qty": 1 }
-
单品满数量赠
模版名:qty_gift 说明:购买A商品满X个送B赠品Y个,只送一次 示例:购买商品69111111满2件送1件赠品69222222
{ "buy_sku_id": "69111111", "min_qty": 2, "gift_sku_id": "69222222", "gift_qty": 1 }
-
单品满金额赠
模版名:amount_gift 说明:购买A商品满X元送B赠品Y个,只送一次 示例:购买商品69111111满100元送1件赠品69222222
{ "buy_sku_id": "69111111", "min_amount": 100.00, "gift_sku_id": "69222222", "gift_qty": 1 }
可订阅的通知列表
-
订单类消息
order.shipped(订单发货),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.shipped", "content": "{ \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\"}", "time": "2019-04-30 10:00:00" }
消息内容说明
字段 字段名称 说明 order_id
海鼎订单号
唯一标识
front_order_id
平台订单号
平台维度唯一标识
order.canceled(订单取消),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.canceled", "content": "{ \"order_id\": \"44546546512132\", \"front_order_id\": \"44546546512132\" }", "time": "2019-04-30 10:00:00" }
order.signed(订单签收),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.signed", "content": "{ \"order_id\": \"44546546512132\" ,\"front_order_id\": \"44546546512132\"}", "time": "2019-04-30 10:00:00" }
order.refused(订单拒收),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.refused", "content": "{ \"order_id\": \"44546546512132\" ,\"front_order_id\": \"44546546512132\"}", "time": "2019-04-30 10:00:00" }
return.received(退货单收货),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "return.received", "content": "{ \"order_id\": \"44546546512132\", \"front_order_id\": \"44546546512132\", \"rtn_id\": \"4565121321212125\" }", "time": "2019-04-30 10:00:00" }
store.order.created(门店新订单),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "store.order.created", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\" }", "time": "2019-04-30 10:00:00" }
store.return.created(门店新退货),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "store.return.created", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\", \"rtn_id\": \"84544465646545645\"}", "time": "2019-04-30 10:00:00" }
store.order.shipped(门店订单发货),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.shipped", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\" }", "time": "2019-04-30 10:00:00" }
store.return.received(门店退货单收货),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "return.received", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\", \"front_order_id\": \"44546546512132\", \"rtn_id\": \"4565121321212125\" }", "time": "2019-04-30 10:00:00" }
store.order.operation(门店配送作业),其中operation取值:shipping=门店集货,cancalShipping=门店取消集货,示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "store.order.operation", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\", \"operation\": \"shipping\" }", "time": "2019-04-30 10:00:00" }
refund.refunded(退款完成)示例:
{ "id": "4028fe8153b876e50153b8779b2a0002", "group": "order", "topic": "refund.refunded", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\", \"rtn_id\": \"1232142353\",\"front_order_id\": \"6578681232142353\" }", "time": "2019-04-30 10:00:00" }
ordersettle.created(对账单生成消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "ordersettle.created", "content": "{ \"order_id\": \"44546546512132\"}", "time": "2019-04-30 10:00:00" }
order.state.changed(订单状态变化消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.state.changed", "content": "{ \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\",\"state\": \"delivering\"}", "time": "2018-12-13 00:00:00" }
order.deliverystate.changed(订单配送状态变化消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.deliverystate.changed", "content": "{ \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\",\"delivery_state\": \"shipped\"}", "time": "2018-12-13 00:00:00" }
order.exception.changed(订单异常变化消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.exception.changed", "content": "{ \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\",\"has_exception\": \"true\",\"exception_reason\": \"异常原因\"}", "time": "2018-12-13 00:00:00" }
order.carrierstate.changed(订单承运状态变化消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.carrierstate.changed", "content": "{ \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\",\"carrier_state\": \"pickup\"}", "time": "2018-12-13 00:00:00" }
return.state.changed(退单状态变化消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "return.state.changed", "content": "{\"rtn_id\": \"44546546512132\", \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\",\"state\": \"finished\"}", "time": "2018-12-13 00:00:00" }
order.selftake.check(自提检查接口),其中front_order_id和order_id非必传,示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.selftake.check", "content": "{\"store_id\": \"0001\",\"selftake_code\": \"自提码\",\"platform_id\": \"youzan\",\"front_order_id\": \"平台订单号",\"order_id\": \"订单号"}", "time": "2018-12-13 00:00:00" }
order.operation.changed(订单门店作业状态变化消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.operation.changed", "content": "{ \"order_id\": \"44546546512132\",\"front_order_id\": \"44546546512132\",\"operation_state\": \"shipping\"}", "time": "2018-12-13 00:00:00" }
order.item.changed(订单换货消息),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "order.item.changed", "content": "{\"platform_id\": \"youzan\",\"front_order_id\": \"平台订单号",\"order_id\": \"订单号"}", "time": "2018-12-13 00:00:00" }
store.order.canceled(门店订单取消),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "store.order.canceled", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\", \"front_order_id\": \"44546546512132\" }", "time": "2019-04-30 10:00:00" }
-
承运类消息
store.order.carrierexception(承运异常),示例: pickupFailed:揽件失败
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "order", "topic": "store.order.carrierexception", "tag": "store:001", "content": "{ \"order_id\": \"44546546512132\", \"carrier_state\": \"pickupFailed\" }", "time": "2019-04-30 10:00:00" }
-
支付类消息
pay.order.success(订单支付成功),示例:
{ "id": "2c92819657c1a6860157c1a9f9220007", "group": "pay", "topic": "pay.order.success", "content": "{\"payAmount\":0.01,\"storeNo\":\"0088\",\"billType\":\"pay\",\"orderUuid\":\"111110016acc4916834fad23354b5fb9\",\"payNo\":\"2016101421001004080274676406\",\"orderAmount\":0.01,\"orderNumber\":\"0088161014132716708\",\"uuid\":\"cf8705ee0e194f41b11b475b1d50816b\",\"payAccountId\":\"2088002495582085\",\"payChannelName\":\"支付宝\",\"payTime\":\"2016-10-14 13:27:16\",\"payChannel\":\"aliPay\",\"tenantId\":\"testbn01\",\"sourceOrderUuid\":\"testbn01\",\"remark\":\"支付成功\",\"payState\":\"paySuccess\"}", "time": "2019-04-30 10:00:00" }
-
营销类消息
activity.audited(活动发布),示例:
{ "id": "2c92819657c1a6860157c1a9f9220007", "group": "mp", "topic": "activity.audited", "content": "{ \"activity_id\": \"201708050001\" }", "tag": "store:1001", "time": "2019-04-30 10:00:00" }
activity.stopped(活动下架),示例:
{ "id": "2c92819657c1a6860157c1a9f9220007", "group": "mp", "topic": "activity.stopped", "content": "{ \"activity_id\": \"201708050001\" }", "tag": "store:1001", "time": "2019-04-30 10:00:00" }
coupon.consumed(券核销),示例:
{ "id": "2c92819657c1a6860157c1a9f9220007", "group": "equity", "topic": "coupon.consumed", "content": "{ \"coupon_code\": \"201708050001\" }", "time": "2019-04-30 10:00:00" }
tran.created(新交易),示例:
{ "id": "4028fe8153b876e50153b8779b2a0001", "group": "member", "topic": "tran.created", "content": "{\"tran_time\":\"2017-07-26 17:17:00\",\"person_id\":\"00111\",\"pos_no\":\"0001\",\"face_id\":\"111100\",\"store_id\":\"0001\",\"tran_id\":\"qyh0000201707270007\",\"member_code\":\"8888170508000005\"}", "time": "2019-04-30 10:00:00" }
常见问题
授权相关
-
订单中心授权
沙箱授权(由项目经理发起内部流程申请以下沙箱资源) 租户ID(tenant_id):租户ID,商户的唯一表示 服务地址(url): https://sandbox.api.u.hd123.com/{tenant_id} 接口用户名(user):*** 接口密码(password):*** 平台(platform_id):用于区分不同平台 平台商家(shop_id):用于区分平台商家的不同用户 测试门店(station_id):用于联调时使用的测试门店
正式环境授权(由项目经理发起内部流程申请正式环境资源) 租户ID(tenant_id):租户ID,商户的唯一表示 服务地址(url): https://api.u.hd123.com/{tenant_id} 接口用户名(user):*** 接口密码(password):*** 平台(platform_id):用于区分不同平台 平台商家(shop_id):用于区分平台商家的不同用户
-
营销中心授权
联系对接的项目经理处理
-
支付中心授权
联系对接的项目经理处理
API相关
-
订单中心
平台结算价settle_total 平台结算价:平台和商家联合促销的情况,优惠金额由商家和平台共同承担的场景。平台结算价=客户实付商品金额+平台优惠分摊金额
订单金额 客户购买A、B、C上个商品,原价为A(120元),B(200元)、C(300元)。A商品促销价为100元。整单优惠60(其中平台优惠18,商家优惠42)。那么A商品优惠占比= (A的实付金额100)/(A+B+C)=1/6;B商品优惠占比=(B的实付金额200)/(A+B+C)=2/6;C商品优惠占比=(C的实付金额300)/(A+B+C)=3/6。 A的金额如下: 整单分摊金额apt_dis_amount=60*1/6=10元。 实付金额pay_amount=100-10=90元。 单品促销金额discount_amount=120-100=20元。 平台结算金额settle_total=90+(18*1/6)=93元。 B的金额如下: 整单分摊金额apt_dis_amount=60*2/6=20元。 实付金额pay_amount=200-20=180元。 单品促销金额discount_amount=0元。 平台结算金额settle_total=180+(18*2/6)=186元 C的金额如下: 整单分摊金额apt_dis_amount=60-A的整单分摊-B的整单分摊=30(为了防止除不尽的情况,最后一个商品行的整单分摊金额用减法)。 实付金额pay_amount=300-30=270元。 单品促销金额discount_amount=0元。 平台结算金额settle_total=270+(18*3/6)=279元 订单的金额如下: 订单的实付金额real_total=90+180+270=540元。 订单的平台结算金额settle_amount=93+186+279=558元。
预占货订单 商家是多平台共享库存,希望在下单的时候(未付款)就扣减其他平台的库存。
回调地址 鼎力云订单状态变化、库存变化、价格变化等都是通过推送消息给第三方的方式实现的。第三方平台对接需要提供接收消息的回调地址。 消息内容参考:https://u.hd123.com/view/module/doc.html#nf-api-1=
1. 接口定义
1.1. 商品服务
1.1.1. 分页查询品牌
POST /{tenant_id}/invc/itemservice/brands/query
1.1.1.1. 说明
分页查询品牌
1.1.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码,必须>=0 |
integer (int32) |
Query |
page_size |
分页大小,范围是[1,1000] |
integer (int32) |
Query |
sort_key |
排序字段:modified,id,name |
string |
Body |
filter |
过滤器 |
1.1.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/invc/itemservice/brands/query?desc=true&page=0&page_size=0
请求 body
{
"name_like" : "aaa",
"key_like" : "aaa",
"parent_id" : "aaa",
"ids" : [ "string" ],
"parent_ids" : [ "string" ],
"parent_id_is_null" : false,
"modified_start" : "2020-06-17 10:00:00",
"modified_end" : "2020-06-17 10:00:00"
}
1.1.1.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 0,
"brands" : [ {
"id" : "3434343434",
"name" : "耐克",
"remark" : "无",
"parentId" : "324232"
} ],
"page_count" : 10,
"page_size" : 10
}
1.1.2. 分页查询类别
POST /{tenant_id}/invc/itemservice/categories/query
1.1.2.1. 说明
分页查询类别
1.1.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
string |
|
Query |
desc |
boolean |
|
Query |
page |
integer (int32) |
|
Query |
page_size |
integer (int32) |
|
Query |
sort_key |
排序字段:modified,id,name |
string |
Body |
body |
1.1.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/invc/itemservice/categories/query
请求 body
{
"parentId" : "string",
"modifiedStart" : "2020-06-17 10:00:00",
"modifiedEnd" : "2020-06-17 10:00:00",
"name_like" : "string",
"key_like" : "string",
"ids" : [ "string" ],
"parent_ids" : [ "string" ],
"parent_id_is_null" : true
}
1.1.2.5. HTTP响应示例
响应 200
{
"total" : 0,
"page" : 0,
"categories" : [ {
"id" : "string",
"name" : "string",
"remark" : "string",
"parentId" : "string",
"sap_code" : "string"
} ],
"page_count" : 0,
"page_size" : 0
}
1.1.3. 批量上传商品图片
POST /{tenant_id}/invc/itemservice/sku/images/update
1.1.3.1. 说明
批量上传商品图片。
1.1.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
sku_images |
商品图片列表,每次更新不超过100条 |
1.1.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.3.4. HTTP请求示例
请求 path
/string/invc/itemservice/sku/images/update?operator=string
请求 body
{
"sku_images" : [ {
"sku_id" : "string",
"image" : {
"name" : "a.jpg",
"url" : "http://aa.png",
"sort" : 1,
"image_base64" : "xxxx"
},
"sub_images" : [ {
"name" : "a.jpg",
"url" : "http://aa.png",
"sort" : 1,
"image_base64" : "xxxx"
} ],
"detail_images" : [ {
"name" : "a.jpg",
"url" : "http://aa.png",
"sort" : 1,
"image_base64" : "xxxx"
} ]
} ],
"upload_type" : "string"
}
1.1.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.4. 指定货号查询商品
GET /{tenant_id}/invc/itemservice/sku/{id}
1.1.4.1. 说明
指定货号查询商品
1.1.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
商品ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分:desc(商品详情) |
string |
1.1.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.4.4. HTTP请求示例
请求 path
/string/invc/itemservice/sku/string
1.1.4.5. HTTP响应示例
响应 200
{
"id" : "484844554",
"barcode" : "1152",
"upc" : "69...",
"name" : "矿泉水",
"remark" : "无",
"disp" : false,
"size" : {
"unit" : "mm",
"height" : 12.0,
"width" : 15.0,
"length" : 12.0
},
"weight" : {
"unit" : "kg",
"value" : 12.0
},
"packing" : {
"spec" : "1*1",
"quantity" : 12.0,
"spec2" : "200ml",
"unit" : "瓶"
},
"title" : "矿泉水",
"desc" : "好喝",
"gid" : "145555",
"capacity" : 0.001,
"created" : "2018-11-11 21:12:55",
"creator" : "123",
"modifier" : "123",
"product_id" : "1515151",
"product_type" : "fresh",
"brand_id" : "1515444444",
"category_id" : "44848444484",
"retail_price" : 15.15,
"member_price" : 53.22,
"suggest_price" : 53.22,
"image_url" : "http://aa.png",
"sub_image_urls" : [ "string" ],
"detail_image_urls" : [ "string" ],
"tax_rate" : 0.13,
"tax_sort_code" : "string",
"combined_items" : [ {
"id" : "string",
"title" : "string",
"price" : 0.0,
"quantity" : 0.0,
"product_type" : "normal"
} ],
"customs_fields" : [ {
"id" : "1212",
"name" : "143434",
"value" : "1212"
} ],
"input_codes" : [ {
"type" : "EAN",
"code" : "232323",
"qpc" : 0.0,
"unit" : "string",
"weight" : 0.0,
"qpc_str" : "string"
} ],
"is_inv_unit" : true,
"sku_combined_tag" : {
"enabled" : false,
"code" : "20-2-10",
"qty" : 2.0,
"price" : 19.9999
},
"kind_types" : [ "string" ],
"capacity_unit" : "string",
"invc_unit" : "string",
"state" : "string",
"modified" : "2018-11-11 21:12:55",
"first_arriving_time" : "2018-11-11 21:12:55"
}
1.1.5. 批量取商品信息
POST /{tenant_id}/invc/itemservice/skus
1.1.5.1. 说明
批量取商品信息
1.1.5.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Path |
tenant_id |
string |
Body |
body |
1.1.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.5.5. HTTP响应示例
响应 200
{
"skus" : [ {
"id" : "484844554",
"barcode" : "1152",
"upc" : "69...",
"name" : "矿泉水",
"remark" : "无",
"disp" : false,
"size" : {
"unit" : "mm",
"height" : 12.0,
"width" : 15.0,
"length" : 12.0
},
"weight" : {
"unit" : "kg",
"value" : 12.0
},
"packing" : {
"spec" : "1*1",
"quantity" : 12.0,
"spec2" : "200ml",
"unit" : "瓶"
},
"title" : "矿泉水",
"desc" : "好喝",
"gid" : "145555",
"capacity" : 0.001,
"created" : "2018-11-11 21:12:55",
"creator" : "123",
"modifier" : "123",
"product_id" : "1515151",
"product_type" : "fresh",
"brand_id" : "1515444444",
"category_id" : "44848444484",
"retail_price" : 15.15,
"member_price" : 53.22,
"suggest_price" : 53.22,
"image_url" : "http://aa.png",
"sub_image_urls" : [ "string" ],
"detail_image_urls" : [ "string" ],
"tax_rate" : 0.13,
"tax_sort_code" : "string",
"combined_items" : [ {
"id" : "string",
"title" : "string",
"price" : 0.0,
"quantity" : 0.0,
"product_type" : "normal"
} ],
"customs_fields" : [ {
"id" : "1212",
"name" : "143434",
"value" : "1212"
} ],
"input_codes" : [ {
"type" : "EAN",
"code" : "232323",
"qpc" : 0.0,
"unit" : "string",
"weight" : 0.0,
"qpc_str" : "string"
} ],
"is_inv_unit" : true,
"sku_combined_tag" : {
"enabled" : false,
"code" : "20-2-10",
"qty" : 2.0,
"price" : 19.9999
},
"kind_types" : [ "string" ],
"capacity_unit" : "string",
"invc_unit" : "string",
"state" : "string",
"modified" : "2018-11-11 21:12:55",
"first_arriving_time" : "2018-11-11 21:12:55"
} ]
}
1.1.6. 分页查询商品,使用es索引
POST /{tenant_id}/invc/itemservice/skus/es_query
1.1.6.1. 说明
分页查询商品,使用es索引,推荐使用
1.1.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,从0开始,必须>=0 |
integer (int32) |
Query |
page_size |
分页大小,范围是[1,1000] |
integer (int32) |
Query |
sort_key |
排序字段,取值范围:title(名称)、barcode(条码)、skuId(货号)、modified(最后修改时间) |
string |
Body |
filter |
查询过滤器 |
1.1.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.1.6.4. HTTP请求示例
请求 path
/string/invc/itemservice/skus/es_query?desc=true&page=0&page_size=0
请求 body
{
"barcode" : "43454",
"codes" : [ "string" ],
"barcodes" : [ "string" ],
"name_like" : "aaa",
"key_like" : "aaa",
"brand_id" : "54564",
"category_id" : "32434",
"code_type" : "string",
"sku_ids" : [ "string" ],
"product_ids" : [ "string" ],
"exclude_sku_ids" : "aaa",
"title_like" : "aaa",
"barcode_like" : "123",
"sku_id_from" : "12",
"sku_id_like" : "233",
"barcode_from" : "aaa",
"product_types" : [ "normal" ],
"modified_start" : "2018-11-11 21:12:55",
"modified_end" : "2018-11-11 21:12:55",
"created_start" : "2018-11-11 21:12:55",
"created_end" : "2018-11-11 21:12:55",
"fetch_parts" : "combinedItems",
"kinds_in" : [ "string" ],
"pre_page" : 1
}
1.1.6.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 0,
"skus" : [ {
"id" : "484844554",
"barcode" : "1152",
"upc" : "69...",
"name" : "矿泉水",
"remark" : "无",
"disp" : false,
"size" : {
"unit" : "mm",
"height" : 12.0,
"width" : 15.0,
"length" : 12.0
},
"weight" : {
"unit" : "kg",
"value" : 12.0
},
"packing" : {
"spec" : "1*1",
"quantity" : 12.0,
"spec2" : "200ml",
"unit" : "瓶"
},
"title" : "矿泉水",
"desc" : "好喝",
"gid" : "145555",
"capacity" : 0.001,
"created" : "2018-11-11 21:12:55",
"creator" : "123",
"modifier" : "123",
"product_id" : "1515151",
"product_type" : "fresh",
"brand_id" : "1515444444",
"category_id" : "44848444484",
"retail_price" : 15.15,
"member_price" : 53.22,
"suggest_price" : 53.22,
"image_url" : "http://aa.png",
"sub_image_urls" : [ "string" ],
"detail_image_urls" : [ "string" ],
"tax_rate" : 0.13,
"tax_sort_code" : "string",
"combined_items" : [ {
"id" : "string",
"title" : "string",
"price" : 0.0,
"quantity" : 0.0,
"product_type" : "normal"
} ],
"customs_fields" : [ {
"id" : "1212",
"name" : "143434",
"value" : "1212"
} ],
"input_codes" : [ {
"type" : "EAN",
"code" : "232323",
"qpc" : 0.0,
"unit" : "string",
"weight" : 0.0,
"qpc_str" : "string"
} ],
"is_inv_unit" : true,
"sku_combined_tag" : {
"enabled" : false,
"code" : "20-2-10",
"qty" : 2.0,
"price" : 19.9999
},
"kind_types" : [ "string" ],
"capacity_unit" : "string",
"invc_unit" : "string",
"state" : "string",
"modified" : "2018-11-11 21:12:55",
"first_arriving_time" : "2018-11-11 21:12:55"
} ],
"page_count" : 10,
"page_size" : 10
}
1.2. 平台商家授权服务
1.2.1. 获取平台授权信息
GET /{tenant_id}/storedelivery/authservice/{platform_id}/{shop_id}/authinfo
1.2.1.1. 说明
获取平台授权信息
1.2.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
platform_id |
平台ID |
string |
Path |
shop_id |
商家ID |
string |
Path |
tenant_id |
租户ID |
string |
1.2.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.2.1.4. HTTP请求示例
请求 path
/string/storedelivery/authservice/string/string/authinfo
1.2.1.5. HTTP响应示例
响应 200
{
"message" : "string",
"success" : true,
"data" : {
"platform_id" : "1001001",
"shop_id" : "1001001",
"app_key" : "1001001",
"app_secret" : "1001001",
"session_key" : "1001001"
}
}
1.3. 采购建议单服务
1.3.1. 提交建议
POST /{tenant_id}/soms/purchasesuggestservice/suggest
1.3.1.1. 说明
提交建议
1.3.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
suggest |
单据 |
1.3.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.1.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "88822222222",
"state" : "string",
"vendor" : {
"code" : "string",
"name" : "string"
},
"purchaser" : {
"code" : "string",
"name" : "string"
},
"items" : [ {
"qty" : 1.0,
"sku_id" : "00321",
"relation_qty" : 0.0
} ],
"remark" : "销售触发采购",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"ship_state" : "shipped",
"ship_wrh" : {
"code" : "string",
"name" : "string"
},
"expect_ship_time" : "2022-03-05 08:00:00",
"ship_time" : "2022-03-05 08:00:00",
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"relation_items" : [ {
"qty" : 0.0,
"order_type" : "order(订单),saleorder(销售订单)",
"order_id" : "string",
"suggest_id" : "string",
"sku_id" : "string"
} ]
}
1.3.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"id" : "88822222222"
}
1.3.2. 查询采购建议单
POST /{tenant_id}/soms/purchasesuggestservice/suggest/query
1.3.2.1. 说明
查询采购建议单
1.3.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 |
排序字段,取值范围:expectShipTime(期望发货时间)、created(创建时间) |
string |
Body |
filter |
查询条件 |
1.3.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.2.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/query?desc=true&page=0&page_size=0
请求 body
{
"state" : "string",
"id" : "32323232323323",
"ids" : "32323232323323",
"id_refix" : "32323232323323",
"created_start" : "2016-03-02 12:00:01",
"created_end" : "2016-03-02 12:00:01",
"expect_ship_time_start" : "2016-03-02 12:00:01",
"expect_ship_time_end" : "2016-03-02 12:00:01",
"ship_time_start" : "2016-03-02 12:00:01",
"ship_time_end" : "2016-03-02 12:00:01",
"vendor_code" : "12",
"ship_wrh_code" : "12",
"purchaser_code" : "8568",
"receive_wrh_code" : "8568",
"lock_state" : "32323232323323",
"ship_state" : "32323232323323",
"order_id_in" : [ "string" ],
"sku_id_in" : [ "string" ]
}
1.3.2.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"list" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "88822222222",
"state" : "string",
"vendor" : {
"code" : "string",
"name" : "string"
},
"purchaser" : {
"code" : "string",
"name" : "string"
},
"items" : [ {
"qty" : 1.0,
"sku_id" : "00321",
"relation_qty" : 0.0
} ],
"remark" : "销售触发采购",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"ship_state" : "shipped",
"ship_wrh" : {
"code" : "string",
"name" : "string"
},
"expect_ship_time" : "2022-03-05 08:00:00",
"ship_time" : "2022-03-05 08:00:00",
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"relation_items" : [ {
"qty" : 0.0,
"order_type" : "order(订单),saleorder(销售订单)",
"order_id" : "string",
"suggest_id" : "string",
"sku_id" : "string"
} ]
} ],
"page_count" : 5,
"page_size" : 20
}
1.3.3. 查询采购建议单关联明细
POST /{tenant_id}/soms/purchasesuggestservice/suggest/relationitem/query
1.3.3.1. 说明
查询采购建议单关联明细
1.3.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 |
排序字段 |
string |
Body |
filter |
查询条件 |
1.3.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.3.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/relationitem/query?desc=true&page=0&page_size=0
请求 body
{
"suggest_id" : "32323232323323",
"order_id_eq" : "32323232323323",
"sku_id_eq" : "32323232323323",
"sku_id_in" : [ "string" ],
"order_id_in" : [ "string" ]
}
1.3.3.5. HTTP响应示例
响应 200
{
"echoCode" : 0,
"echoMessage" : "string",
"success" : true,
"page" : 0,
"pageSize" : 0,
"pageCount" : 0,
"total" : 0,
"data" : [ {
"qty" : 0.0,
"order_type" : "order(订单),saleorder(销售订单)",
"order_id" : "string",
"suggest_id" : "string",
"sku_id" : "string"
} ]
}
1.3.4. 取指定采购建议单
GET /{tenant_id}/soms/purchasesuggestservice/suggest/{id}
1.3.4.1. 说明
取指定采购建议单
1.3.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
单据id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。需要返回的部分,items(商品详情),relationitems(关联商品详情) |
string |
1.3.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.4.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/string
1.3.4.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "88822222222",
"state" : "string",
"vendor" : {
"code" : "string",
"name" : "string"
},
"purchaser" : {
"code" : "string",
"name" : "string"
},
"items" : [ {
"qty" : 1.0,
"sku_id" : "00321",
"relation_qty" : 0.0
} ],
"remark" : "销售触发采购",
"lock_state" : "占货状态:none(缺货)、part(部分占货)、all(全部占货)",
"ship_state" : "shipped",
"ship_wrh" : {
"code" : "string",
"name" : "string"
},
"expect_ship_time" : "2022-03-05 08:00:00",
"ship_time" : "2022-03-05 08:00:00",
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"relation_items" : [ {
"qty" : 0.0,
"order_type" : "order(订单),saleorder(销售订单)",
"order_id" : "string",
"suggest_id" : "string",
"sku_id" : "string"
} ]
}
1.3.5. 审核采购建议单
POST /{tenant_id}/soms/purchasesuggestservice/suggest/{id}/action/approve
1.3.5.1. 说明
审核采购建议单
1.3.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.3.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.5.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/string/action/approve?operator=string
1.3.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.3.6. 完成采购建议单
POST /{tenant_id}/soms/purchasesuggestservice/suggest/{id}/action/finish
1.3.6.1. 说明
完成采购建议单
1.3.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.3.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.6.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/string/action/finish?operator=string
1.3.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.3.7. 占货
POST /{tenant_id}/soms/purchasesuggestservice/suggest/{id}/lock
1.3.7.1. 说明
占货
1.3.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.3.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.7.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/string/lock?operator=string
1.3.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"data" : { }
}
1.3.8. 添加关联明细
POST /{tenant_id}/soms/purchasesuggestservice/suggest/{id}/relationitem
1.3.8.1. 说明
添加关联明细
1.3.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
关联明细列表 |
1.3.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.8.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/string/relationitem?operator=string
请求 body
{
"data" : [ {
"qty" : 0.0,
"order_type" : "order(订单),saleorder(销售订单)",
"order_id" : "string",
"suggest_id" : "string",
"sku_id" : "string"
} ]
}
1.3.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"data" : { }
}
1.3.9. 发货
POST /{tenant_id}/soms/purchasesuggestservice/suggest/{id}/ship
1.3.9.1. 说明
发货
1.3.9.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.3.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.3.9.4. HTTP请求示例
请求 path
/string/soms/purchasesuggestservice/suggest/string/ship?operator=string
1.3.9.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"data" : { }
}
1.4. 评论服务
1.4.1. 提交订单评价
POST /{tenant_id}/soms/commentservice/comment
1.4.1.1. 说明
提交订单评价
1.4.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order_comment |
订单评价 |
1.4.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.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.4.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.4.2. 查询评价
POST /{tenant_id}/soms/commentservice/comment/query
1.4.2.1. 说明
查询评价
1.4.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.4.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.2.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/query?desc=true&page=0&page_size=0
请求 body
{
"platformIdEq" : "jdo2o",
"stationIdEq" : "string",
"idEq" : "string",
"orderIdIn" : [ "string" ],
"processStateEq" : "string",
"processStateNotIn" : [ "string" ],
"processStateIn" : [ "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" ],
"created_start" : "2016-03-02 12:00:01",
"created_end" : "2016-03-02 12:00:01"
}
1.4.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.4.3. 获取评价
GET /{tenant_id}/soms/commentservice/comment/{id}
1.4.3.1. 说明
获取评价
1.4.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
评论Id |
string |
Path |
tenant_id |
租户ID |
string |
1.4.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.3.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/string
1.4.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.4.4. 更新评价回复
POST /{tenant_id}/soms/commentservice/comment/{id}/reply
1.4.4.1. 说明
更新评价回复
1.4.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
评论Id |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
更新评价回复request |
1.4.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.4.4.4. HTTP请求示例
请求 path
/string/soms/commentservice/comment/string/reply?operator=string
请求 body
{
"reply_content" : "string"
}
1.4.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.5. 自提规则服务
1.5.1. 获取自提规则
GET /{tenant_id}/soms/selftakeruleservice/selftakerule
1.5.1.1. 说明
获取自提规则
1.5.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家ID |
string |
Query |
store_id |
门店ID |
string |
1.5.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.5.1.4. HTTP请求示例
请求 path
/string/soms/selftakeruleservice/selftakerule?platform_id=string&shop_id=string
1.5.1.5. HTTP响应示例
响应 200
{
"state" : "applying",
"def" : {
"check_selftake_code" : true
},
"source" : "ptm_store",
"platform_id" : "meituan",
"shop_id" : "33454",
"store_id" : "0001"
}
1.6. 订单占货服务
1.6.1. 订单批量占货
POST /{tenant_id}/invc/orderstockservice/batchlock
1.6.1.1. 说明
订单批量占货,同时成功,同时失败,支持返回缺货明细,pre_lock类型的占货,不支持部分占货
1.6.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
占货参数 |
1.6.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.1.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/batchlock?operator=string
请求 body
{
"orders" : [ {
"items" : [ {
"sku_id" : "12",
"qty" : 32.0
} ],
"order_id" : "4545454545454542",
"platform_id" : "jdo2o",
"shop_id" : "12121212",
"shop_name" : "百度外卖",
"store_id" : "43435545",
"store_name" : "aaa",
"request_id" : "3232323",
"lock_type" : "3232323"
} ],
"allow_part" : false
}
1.6.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"details" : [ {
"order_id" : "4545454545454542",
"lock_id" : "string",
"stock_state" : "locked",
"lock_result" : "none",
"outoflock_items" : [ {
"sku_id" : "string"
} ]
} ],
"lock_result" : "none"
}
1.6.2. 批量订单释放占货
POST /{tenant_id}/invc/orderstockservice/batchunlock
1.6.2.1. 说明
批量订单释放占货
1.6.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
占货参数 |
1.6.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.2.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/batchunlock?operator=string
请求 body
{
"unlocks" : [ {
"reason" : "订单取消",
"order_id" : "4545454545454542"
} ]
}
1.6.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"errors" : [ {
"id" : "string",
"code" : "string",
"message" : "string"
} ]
}
1.6.3. 订单占货
POST /{tenant_id}/invc/orderstockservice/lock
1.6.3.1. 说明
订单占货
1.6.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
param |
占货参数 |
1.6.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.3.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/lock?operator=string
请求 body
{
"items" : [ {
"sku_id" : "12",
"qty" : 32.0
} ],
"order_id" : "4545454545454542",
"platform_id" : "jdo2o",
"shop_id" : "12121212",
"shop_name" : "百度外卖",
"store_id" : "43435545",
"store_name" : "aaa",
"request_id" : "3232323",
"lock_type" : "3232323"
}
1.6.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"stock_state" : "locked",
"lock_result" : "none",
"lock_id" : "string"
}
1.6.4. 查询订单占货
GET /{tenant_id}/invc/orderstockservice/order/lockresult
1.6.4.1. 说明
查询订单占货
1.6.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
订单号 |
string |
1.6.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.4.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/order/lockresult?order_id=string
1.6.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"stock_state" : "locked",
"lock_result" : "none",
"lock_id" : "string"
}
1.6.5. 获取指定货号平台商家占用门店库存记录
GET /{tenant_id}/invc/orderstockservice/orderstocks
1.6.5.1. 说明
获取指定货号平台商家占用门店库存记录
1.6.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
platform_id |
平台id |
string |
Query |
shop_id |
商家id |
string |
Query |
shop_id |
门店id |
string |
Query |
sku_ids |
货号集合,记录数大小[1,100] |
< string > array(multi) |
1.6.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.5.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/orderstocks?platform_id=string&shop_id=string&sku_ids=string
1.6.5.5. HTTP响应示例
响应 200
{
"skus" : [ {
"available" : 155.0,
"sku_id" : "54654",
"fixed_qty" : 10.0,
"stock_qty" : 12.0,
"change_time" : "2019-07-30 00:00:00",
"task_id" : "54654"
} ]
}
1.6.6. 订单发货|出库
PUT /{tenant_id}/invc/orderstockservice/ship/{order_id}
1.6.6.1. 说明
订单发货|出库
1.6.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.6.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.6.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/ship/string?operator=string
1.6.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.6.7. 订单释放库存
POST /{tenant_id}/invc/orderstockservice/unlock
1.6.7.1. 说明
订单释放库存
1.6.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Query |
order_id |
订单号 |
string |
Query |
request_id |
标识一次占货请求,如果不为空表示释放某一次请求的占货结果,如果为空表示释放订单的占货结果 |
string |
1.6.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.6.7.4. HTTP请求示例
请求 path
/string/invc/orderstockservice/unlock?operator=string&order_id=string
1.6.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.7. 属性服务
1.7.1. 保存属性服务
POST /{tenant_id}/soms/optionservice/option
1.7.1.1. 说明
保存属性服务
1.7.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
option |
属性 |
1.7.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.7.1.4. HTTP请求示例
请求 path
/string/soms/optionservice/option?operator=string
请求 body
{
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
}
1.7.2. 保存属性服务
POST /{tenant_id}/soms/optionservice/option/batchsave
1.7.2.1. 说明
保存属性服务
1.7.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
options |
属性 |
< Option > array |
1.7.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.7.2.4. HTTP请求示例
请求 path
/string/soms/optionservice/option/batchsave?operator=string
请求 body
[ {
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
} ]
1.7.3. 删除属性服务
POST /{tenant_id}/soms/optionservice/option/{type}/delete
1.7.3.1. 说明
删除属性服务
1.7.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Path |
type |
类型 |
string |
Query |
value |
值 |
string |
1.7.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.7.3.4. HTTP请求示例
请求 path
/string/soms/optionservice/option/string/delete
1.7.4. 根据多类型获取属性服务
POST /{tenant_id}/soms/optionservice/options/getByTypes
1.7.4.1. 说明
根据多类型获取属性服务
1.7.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Body |
types |
类型:remind(催单)、comment(评论) |
1.7.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.4.4. HTTP请求示例
请求 path
/string/soms/optionservice/options/getByTypes
请求 body
{
"data" : [ "string" ]
}
1.7.4.5. HTTP响应示例
响应 200
{
"options" : [ {
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
} ]
}
1.7.5. 获取属性服务
GET /{tenant_id}/soms/optionservice/options/{type}/getall
1.7.5.1. 说明
获取属性服务
1.7.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Path |
type |
类型:remind(催单)、comment(评论) |
string |
1.7.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.5.4. HTTP请求示例
请求 path
/string/soms/optionservice/options/string/getall
1.7.5.5. HTTP响应示例
响应 200
{
"options" : [ {
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
} ]
}
1.7.6. 获取属性服务
GET /{tenant_id}/soms/optionservice/options/{type}/getoption
1.7.6.1. 说明
获取属性服务
1.7.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Path |
type |
类型:remind(催单)、comment(评论) |
string |
Query |
value |
值 |
string |
1.7.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.7.6.4. HTTP请求示例
请求 path
/string/soms/optionservice/options/string/getoption
1.7.6.5. HTTP响应示例
响应 200
{
"type" : "comment",
"caption" : "说明",
"value" : "欢迎下次光临",
"extra" : {
"auto" : true,
"conditions" : [ {
"satisfie_level" : "欢迎下次光临"
} ]
}
}
1.8. 退货服务
1.8.1. 提交退货单
POST /{tenant_id}/soms/returnservice/rtn
1.8.1.1. 说明
提交退货单
1.8.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
rtn |
退货单 |
1.8.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
}
1.8.1.5. HTTP响应示例
响应 200
{
"id" : "string"
}
1.8.2. 根据前端系统单号取单个退货单
GET /{tenant_id}/soms/returnservice/rtn/front/{rtn_id}
1.8.2.1. 说明
根据前端系统单号取单个退货单
1.8.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
rtn_id |
前端退货单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Query |
platform_id |
平台ID |
string |
1.8.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.2.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/front/string?parts=string&platform_id=string
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
}
1.8.3. 提交退货单
POST /{tenant_id}/soms/returnservice/rtn/submit
1.8.3.1. 说明
新提交退货单接口
1.8.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
rtn |
退货单 |
1.8.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
}
1.8.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"rtn_id" : "string"
}
1.8.4. 取指定退货单
GET /{tenant_id}/soms/returnservice/rtn/{id}
1.8.4.1. 说明
取指定退货单
1.8.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退换货id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细)、crm(营销信息)、prom(促销详情)、packageBag(打包袋详情) |
string |
1.8.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.4.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
}
1.8.5. 审核退换货
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/approve
1.8.5.1. 说明
审核退换货
1.8.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
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/returnservice/rtn/string/action/approve?operator=string
请求 body
{
"reason" : "已发货,不能退",
"approve_state" : "serviceApproved",
"operator_role" : "platform"
}
1.8.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.6. 取消退货单
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/cancel
1.8.6.1. 说明
取消退货单
1.8.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
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/returnservice/rtn/string/action/cancel?operator=string
请求 body
{
"sellerInfo" : {
"seller_note" : "收货失败原因",
"seller_voucher_urls" : "卖家收货失败凭证:图片地址"
},
"reason" : "我不想要了",
"operator_role" : "string",
"approve_state" : "none"
}
1.8.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.7. 确认退货状态
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/deliver
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/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"
},
"stationType" : "string",
"station" : {
"id" : "string",
"name" : "string"
},
"return_state" : "none",
"carrier_note" : "note",
"operator_role" : "string"
}
1.8.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.8. 回传仓库踢回结果
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/kickbackresult
1.8.8.1. 说明
回传仓库踢回结果
1.8.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
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/returnservice/rtn/string/action/kickbackresult?operator=string
请求 body
{
"success" : true,
"msg" : "string"
}
1.8.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.9. 修改退货单
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/modify
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/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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"freight" : 12.03,
"modify_item_detail" : false,
"apply_reason" : "不想要了",
"customer_note" : "haha",
"voucher_urls" : [ "string" ],
"settle_amount" : 12.03,
"package_total" : 12.03,
"address_change_fee" : 10.01
}
1.8.9.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.10. 通知仓库
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/notifywrh
1.8.10.1. 说明
通知仓库
1.8.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.10.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.10.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/action/notifywrh?operator=string
1.8.10.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.11. 确认退款
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/refund
1.8.11.1. 说明
确认退款
1.8.11.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退货单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.11.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.11.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/action/refund?operator=string
请求 body
{
"refundState" : "refunded",
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"operator_role" : "platform"
}
1.8.11.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.12. 转换退单类型
POST /{tenant_id}/soms/returnservice/rtn/{id}/action/transfer/type
1.8.12.1. 说明
转换退单类型
1.8.12.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退换货id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.12.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.12.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/action/transfer/type?operator=string
请求 body
{
"change_reason" : "漏发",
"change_type" : "refundAndRtn"
}
1.8.12.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.13. 修改退单权益接口
POST /{tenant_id}/soms/returnservice/rtn/{id}/mod/crminfo
1.8.13.1. 说明
修改退单权益接口
1.8.13.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退货单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
权益请求 |
1.8.13.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.13.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtn/string/mod/crminfo?operator=string
请求 body
{
"score" : 0.0
}
1.8.13.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.14. 修改物流物流退回信息
POST /{tenant_id}/soms/returnservice/rtn/{id}/updatertndelivery
1.8.14.1. 说明
修改物流物流退回信息
1.8.14.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退换货id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.8.14.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.14.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.8.14.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.8.15. 批量取退货单
GET /{tenant_id}/soms/returnservice/rtns
1.8.15.1. 说明
批量取退货单
1.8.15.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Query |
rtnIds |
退货单订单号集合,最多100个 |
< string > array(multi) |
1.8.15.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.15.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns?rtnIds=string
1.8.15.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
} ]
}
1.8.16. 根据前端系统单号取多个退货单
GET /{tenant_id}/soms/returnservice/rtns/front/{front_rtn_id}
1.8.16.1. 说明
根据前端系统单号取多个退货单
1.8.16.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
front_rtn_id |
前端退货单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
Query |
platform_id |
平台ID |
string |
1.8.16.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.16.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/front/string?parts=string&platform_id=string
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
} ]
}
1.8.17. 查指定前端系统订单号的退货单
GET /{tenant_id}/soms/returnservice/rtns/frontorder
1.8.17.1. 说明
查指定前端系统订单号的退货单
1.8.17.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
订单ID |
string |
Query |
platform_id |
平台ID |
string |
1.8.17.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.17.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/frontorder?order_id=string&platform_id=string
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
} ]
}
1.8.18. 查指定订单的退货单
GET /{tenant_id}/soms/returnservice/rtns/order
1.8.18.1. 说明
查指定订单的退货单
1.8.18.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
订单ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
1.8.18.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.18.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/order?order_id=string
1.8.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
} ]
}
1.8.19. 批量获取退单打印(JPOS打印方)
GET /{tenant_id}/soms/returnservice/rtns/printbills
operation.deprecated |
1.8.19.1. 说明
批量获取退单打印(JPOS打印方)
1.8.19.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
ids |
退单号集合 |
< string > array(multi) |
Query |
name |
打印联的名称,为空则打印全部联。取值有:外卖退单 |
string |
1.8.19.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.19.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/printbills?ids=string
1.8.19.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"
} ],
"time" : "2016-03-02 12:00:01",
"rtn_id" : "20160122000006",
"front_rtn_id" : "20160122000006"
} ]
}
1.8.20. 查询退货单(ES查询)
POST /{tenant_id}/soms/returnservice/rtns/query
1.8.20.1. 说明
查询退货单(ES查询,推荐使用)
1.8.20.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.20.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.8.20.4. HTTP请求示例
请求 path
/string/soms/returnservice/rtns/query?desc=true&page=0&page_size=0
请求 body
{
"platform_id" : "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" ],
"refund_phases" : [ "onsale" ],
"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_third_rtn_id_eq" : "123213123",
"front_third_rtn_id_in" : [ "string" ],
"platform_group_eq" : "O2O",
"member_grade_eq" : "12253",
"has_billing_exception" : false
}
1.8.20.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" : "189389928893"
}
},
"delivery" : {
"station" : {
"id" : "string",
"name" : "string"
},
"state" : "none",
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "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"
},
"station_type" : "string",
"carrier_note" : "note",
"wrh_rtn_id" : "XXXXXXXXX",
"waybill_id" : "XXXXXXXXX",
"return_mobile" : "18856556655",
"is_buyer_received" : false
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"pay_id" : "3223232323",
"out_pay_id" : "3223232323"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_amount" : 12.03,
"settle_fieight" : 12.03,
"package_total" : 12.03,
"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" : "已退货",
"type" : {
"id" : "string",
"name" : "string"
},
"creator" : "254145",
"rtn_id" : "123456",
"third_rtn_id" : "12212456112",
"station_id" : "254145",
"platform_group" : "string"
},
"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
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"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_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",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"tags" : "标签",
"salesman_type" : "author",
"salesman_id" : "123",
"salesman_name" : "榕榕",
"is_gift" : true
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"tags" : [ {
"name" : "首单"
} ],
"member_info" : {
"card_no" : "22323",
"member_grade" : "12253"
},
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"type_change_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
}
},
"wrh_state" : "initial",
"wrh_id" : "string",
"wrh_name" : "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"
} ],
"settle_info" : {
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"address_change_fee" : 120.01
} ],
"page_count" : 0,
"page_size" : 0
}
1.9. 统计服务
1.9.1. 提交count
POST /{tenant_id}/soms/countservice/count
1.9.1.1. 说明
提交count
1.9.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
count |
统计 |
1.9.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.9.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.9.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.9.2. 查询统计
POST /{tenant_id}/soms/countservice/count/query
1.9.2.1. 说明
查询统计
1.9.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.9.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.9.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.9.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.9.3. 获取count
GET /{tenant_id}/soms/countservice/count/{business_key}
1.9.3.1. 说明
获取count
1.9.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
business_key |
业务key |
string |
Path |
tenant_id |
租户ID |
string |
Query |
action |
操作类型 |
string |
Query |
type |
类型 |
string |
1.9.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.9.3.4. HTTP请求示例
请求 path
/string/soms/countservice/count/string?action=string&type=string
1.9.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.9.4. 计数加1
POST /{tenant_id}/soms/countservice/count/{business_key}/add
1.9.4.1. 说明
计数加1
1.9.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
business_key |
业务key |
string |
Path |
tenant_id |
租户Id |
string |
Query |
action |
操作类型 |
string |
Query |
operator |
string |
|
Query |
type |
类型 |
string |
1.9.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.9.4.4. HTTP请求示例
请求 path
/string/soms/countservice/count/string/add?action=string&type=string
1.9.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.10. 订单调整服务
1.10.1. 取指定调整单
GET /{tenant_id}/soms/orderadjustservice/orderadjust/{id}
1.10.1.1. 说明
取指定调整单
1.10.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
adjustId |
单据ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分 |
string |
1.10.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.10.1.4. HTTP请求示例
请求 path
/string/soms/orderadjustservice/orderadjust/{id}
1.10.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.11. 客户提货服务
1.11.1. 获取门店订单可用承运商
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/availablecarriers
1.11.1.1. 说明
获取门店订单可用承运商
1.11.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
id |
订单号 |
string |
1.11.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.1.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/availablecarriers
1.11.1.5. HTTP响应示例
响应 200
{
"carriers" : [ {
"id" : "string",
"name" : "string"
} ]
}
1.11.2. 取得订单投递失败的可选原因
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/deliverfailreasons
1.11.2.1. 说明
取得订单投递失败的可选原因
1.11.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
type |
投递失败原因类型,取值范围:refused(客户拒收)、redeliver(未妥投) |
string |
1.11.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.2.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/deliverfailreasons
1.11.2.5. HTTP响应示例
响应 200
{
"reasons" : [ {
"type" : "redeliver",
"reason" : "原因说明"
} ]
}
1.11.3. 取得订单上架异常的可选原因
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/listingexceptionreasons
1.11.3.1. 说明
取得订单上架异常的可选原因
1.11.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.3.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/listingexceptionreasons
1.11.3.5. HTTP响应示例
响应 200
{
"values" : [ "string" ],
"empty" : true
}
1.11.4. 取单个客户订单
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}
1.11.4.1. 说明
取单个客户订单
1.11.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
store_id |
门店 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
fetch_parts |
需要返回的订单部分,取值范围:items(商品详情)、item.details(组合商品详情)、paymentDetails(支付详情)、invoiceDetails(发票详情)、quota(订单指标) |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
1.11.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.4.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string?operator_id=string
1.11.4.5. HTTP响应示例
响应 200
{
"id" : "1001001",
"status" : "confirming",
"total" : 12.03,
"items" : [ {
"quantity" : 12.0,
"total" : 12.25,
"itemCustomField" : {
"sfield1" : "aaa",
"sfield2" : "bbb",
"sfield3" : "ccc",
"sfield4" : "ddd",
"sfield5" : "eee",
"sfield6" : "ggg",
"sfield7" : "eee",
"sfield8" : "fff",
"nfield1" : 23.0,
"nfield2" : 34.0,
"item_code" : "323231"
},
"tags" : [ {
"name" : "首单"
} ],
"item_no" : "1",
"item_code" : "32323",
"item_name" : "可乐",
"spec" : "1*1",
"barcode" : "32323",
"unit_price" : 32.05,
"fav_price" : 12.54,
"fav_total" : 12.25,
"image_url" : "http://aaa/bbb.png",
"details" : [ {
"id" : "323231",
"title" : "aaa",
"quantity" : 12.0,
"ratio" : 0.25
} ],
"orig_item" : {
"quantity" : 12.0,
"item_code" : "32323",
"item_name" : "可乐",
"qpc" : "1*1",
"unit" : "份"
},
"fault_tolerant_info" : "string"
} ],
"mobile" : "15855885589",
"salechannel" : "mdj",
"deliveryman" : "李三",
"quotas" : [ {
"action" : "expect_shipping",
"time" : "2021-09-26 16:40:19",
"remark" : "无",
"action_name" : "期望拣货完成时间"
} ],
"tags" : [ {
"name" : "首单"
} ],
"store_id" : "0002",
"type_caption" : "一小时达",
"ship_location" : "store",
"ship_location_caption" : "上海",
"customer_info" : "string",
"private_customer_info" : "string",
"payment_type" : "货到付款",
"delivery_type" : "送货上门",
"status_caption" : "已取消",
"create_time" : "2017-11-27 18:38:42",
"ship_time" : "2017-11-27 18:38:42",
"sign_time" : "2017-11-27 18:38:42",
"exception_type" : "stopped",
"exception_info" : "string",
"invoice" : {
"required" : false,
"details" : [ {
"amount" : 12.02,
"content" : "某某公司",
"title" : "plain"
} ]
},
"freight" : 12.03,
"expected_delivered_date" : "2014-02-03",
"expected_delivered_time_slot" : "11:00-12:00",
"payable_amount" : 12.02,
"customer_note" : "无",
"private_mobile" : "189389928893",
"private_street" : "脱敏地址**",
"salechannel_name" : "美到家",
"cancel_type" : "customerCancel",
"carrier_type" : "express",
"carrier_state" : "pickupFailed",
"deliveryman_mobile" : "15655895658",
"carrier_id" : "self",
"carrier_name" : "顺丰",
"waybill_id" : "123456",
"carrier_exception_remark" : "门店不存在",
"multi_store" : false,
"fault_tolerant_info" : "string",
"shop_id" : "string",
"packages" : [ {
"sku_id" : "2015456648",
"barcode" : "6931798836288",
"sku_name" : "可降解打包袋(大号)",
"qty" : 1.0,
"amount" : 0.5
} ]
}
1.11.5. 调整承运商
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/carrier
1.11.5.1. 说明
调整承运商
1.11.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
detail |
承运商详情 |
1.11.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.5.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/carrier?operator_id=string
请求 body
{
"action" : "recall",
"carrier_type" : "express",
"carrier_id" : "sf",
"carrier_name" : "顺丰速运",
"deliveryman_id" : "32332",
"deliveryman" : "李某",
"deliveryman_mobile" : "1565586545"
}
1.11.6. 更新承运商配送信息
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/carrier/update
1.11.6.1. 说明
更新承运商配送信息
1.11.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
detail |
承运商详情 |
1.11.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.6.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/carrier/update?operator_id=string
请求 body
{
"carrier_id" : "sf",
"carrier_name" : "顺丰速运",
"waybill_id" : "32332"
}
1.11.7. 订单取消接单(冲账)检查
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/delistingcheck
1.11.7.1. 说明
订单取消接单(冲账)检查
1.11.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.7.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/delistingcheck
1.11.7.5. HTTP响应示例
响应 200
{
"accepted" : true,
"message" : "恭喜您,验证通过"
}
1.11.8. 提货检查
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/delivercheck
1.11.8.1. 说明
提货检查
1.11.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
check_code |
验证码 |
string |
1.11.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.8.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/delivercheck
1.11.8.5. HTTP响应示例
响应 200
{
"accepted" : true,
"message" : "恭喜您,验证通过"
}
1.11.9. 订单接单(上架)检查
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/listingcheck
1.11.9.1. 说明
订单接单(上架)检查
1.11.9.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.9.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/listingcheck
1.11.9.5. HTTP响应示例
响应 200
{
"accepted" : true,
"message" : "恭喜您,验证通过"
}
1.11.10. 报告上架异常
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/listingexception
1.11.10.1. 说明
报告上架异常
1.11.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
detail |
上架异常详情 |
1.11.10.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.10.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/listingexception?operator_id=string
请求 body
{
"reason" : "商品不存在,上架异常"
}
1.11.11. 修改商品明细
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/mod/items
1.11.11.1. 说明
修改商品明细
1.11.11.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
mod |
修改商品明细请求 |
1.11.11.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.11.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/mod/items?operator_id=string
请求 body
{
"type" : "weight_diff",
"reason" : "补差",
"items" : [ {
"quantity" : 12.0,
"details" : [ {
"field" : "total,fav_total,quantity",
"before" : "10",
"after" : "12"
} ],
"item_no" : "1",
"item_code" : "32323"
} ],
"payments" : [ {
"name" : "支付宝",
"amount" : 12.03,
"card_number" : "22121",
"store_pay" : false,
"need_cash" : false
} ]
}
1.11.12. 付款检查
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/paycheck
1.11.12.1. 说明
付款检查
1.11.12.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.12.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.12.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/paycheck
1.11.12.5. HTTP响应示例
响应 200
{
"accepted" : true,
"message" : "恭喜您,验证通过"
}
1.11.13. 取订单的打印数据
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/printdata
1.11.13.1. 说明
取订单的打印数据
1.11.13.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
names |
打印模版名称name:拣货单、外卖订单、运单,长度不超过40,打印多个用英文逗号隔开如:拣货单,外卖订单。不传表示打印全部 |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
1.11.13.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.13.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/printdata?operator_id=string
1.11.13.5. HTTP响应示例
响应 200
{
"parts" : [ "string" ],
"order_id" : "21212",
"time" : "2019-07-03 13:06:46"
}
1.11.14. 指定订单号查询退款申请列表
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/refunds
1.11.14.1. 说明
指定订单号查询退款申请列表
1.11.14.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.14.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.14.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/refunds
1.11.14.5. HTTP响应示例
响应 200
{
"values" : [ {
"order_id" : "32323",
"refundReq_id" : "32323",
"refund_total" : 12.02,
"products" : [ {
"skuId" : "00212",
"qty" : 12.0,
"total" : 12.25
} ],
"payment_details" : [ {
"name" : "支付宝",
"amount" : 12.03,
"card_number" : "22121",
"store_pay" : false,
"need_cash" : false
} ]
} ]
}
1.11.15. 确认自提
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/selftake
1.11.15.1. 说明
确认自提,仅支持非货到付款自提
1.11.15.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
1.11.15.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.15.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/selftake?operator_id=string
1.11.16. 确认自提
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/selftake/confirm
1.11.16.1. 说明
确认自提,支持货到付款和非货到付款自提
1.11.16.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
detail |
自提详情 |
1.11.16.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.16.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/selftake/confirm?operator_id=string
请求 body
{
"payments" : [ {
"name" : "支付宝",
"amount" : 12.03,
"card_number" : "22121",
"store_pay" : false,
"need_cash" : false
} ]
}
1.11.17. 门店拒绝配送指定的订单
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/station_refuse
1.11.17.1. 说明
门店拒绝配送指定的订单
1.11.17.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Query |
reason |
拒绝原因 |
string |
1.11.17.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.17.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/station_refuse?operator_id=string
1.11.18. 订单取消接单(冲账)
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/status/delisting
1.11.18.1. 说明
订单取消接单(冲账)
1.11.18.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
1.11.18.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.18.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/status/delisting?operator_id=string
1.11.19. 订单客户签收
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/status/delivered
1.11.19.1. 说明
订单客户签收
1.11.19.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
detail |
签收详情 |
1.11.19.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.19.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/status/delivered?operator_id=string
请求 body
{
"payments" : [ {
"name" : "支付宝",
"amount" : 12.03,
"card_number" : "22121",
"store_pay" : false,
"need_cash" : false
} ],
"deliver_id" : "22121",
"deliver_name" : "李某",
"on_duty_emps" : [ {
"id" : "string",
"name" : "string"
} ]
}
1.11.20. 订单投递失败
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/status/deliverfailed
1.11.20.1. 说明
订单投递失败
1.11.20.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
detail |
投递失败的原因 |
1.11.20.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.20.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/status/deliverfailed?operator_id=string
请求 body
{
"type" : "refused",
"reason" : "商品破损"
}
1.11.21. 订单送货登记
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/status/delivering
1.11.21.1. 说明
订单送货登记
1.11.21.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
1.11.21.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.21.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/status/delivering?operator_id=string
1.11.22. 订单备货(上架)
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/status/listing
1.11.22.1. 说明
订单备货(上架)
1.11.22.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
carrier_id |
承运商ID |
string |
Query |
carrier_name |
承运商名称 |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Query |
picking_operator_id |
备货人ID,长度不超过20 |
string |
1.11.22.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.22.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/status/listing?operator_id=string
1.11.23. 订单申请
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{id}/{action}/apply
1.11.23.1. 说明
订单申请
1.11.23.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
action |
动作:cancel,refund |
string |
Path |
id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
request |
订单申请请求 |
1.11.23.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.23.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/string/apply?operator_id=string
请求 body
{
"reason" : "不要了",
"items" : [ {
"quantity" : 2.0,
"order_item_no" : "1",
"item_code" : "0001"
} ]
}
1.11.24. 获取盲盒活动商品范围
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/blindbox/skurange
1.11.24.1. 说明
获取盲盒活动商品范围
1.11.24.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单Id |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator_name |
string |
|
Body |
body |
1.11.24.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.24.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/blindbox/skurange
请求 body
{
"sku_id" : "202214816_7"
}
1.11.24.5. HTTP响应示例
响应 200
{
"limit" : true,
"id_names" : [ {
"id" : "string",
"name" : "string"
} ]
}
1.11.25. 获取订单的运单列表
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/carrierorders
1.11.25.1. 说明
获取订单的运单列表
1.11.25.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.25.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.25.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/carrierorders
1.11.25.5. HTTP响应示例
响应 200
{
"success" : true,
"message" : "string",
"order_id" : "123434354",
"waybill_id" : "123434354",
"carrier_orders" : [ {
"deliveryman" : "123434354",
"created" : "2022-08-30 00:00:00",
"modified" : "2022-08-30 00:00:00",
"details" : [ {
"time" : "2022-04-07 08:39:07",
"address" : "福建,厦门市",
"message" : "顺丰速运 已收取快件",
"status" : "在途"
} ],
"carrier_id" : "sf",
"carrier_name" : "顺丰速运",
"waybill_id" : "32332",
"deliveryman_phone" : "123434354",
"carrier_state" : "created",
"exception_remark" : "运力不足"
} ]
}
1.11.26. 订单解密
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/decrypt
1.11.26.1. 说明
订单解密
1.11.26.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单Id |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
request |
解密请求 |
1.11.26.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.26.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/decrypt?operator_id=string
1.11.26.5. HTTP响应示例
响应 200
{
"receiver_mobile" : "string",
"receiver_street" : "string",
"customer_info" : "string"
}
1.11.27. 修改订单盲盒明细
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/mod/blindboxs
1.11.27.1. 说明
修改订单盲盒明细
1.11.27.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单Id |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator_name |
string |
|
Body |
body |
1.11.27.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.27.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/mod/blindboxs
请求 body
{
"data" : [ {
"sku_id" : "202214816_7"
} ]
}
1.11.27.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.11.28. 打包袋检查
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/packagebag/check
1.11.28.1. 说明
打包袋检查
1.11.28.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Body |
request |
打包袋检查请求 |
1.11.28.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.28.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/packagebag/check
请求 body
{
"skus" : [ {
"sku_id" : "string",
"qty" : 0.0
} ]
}
1.11.28.5. HTTP响应示例
响应 200
{
"result" : "string",
"message" : "string",
"skus" : [ {
"success" : true,
"message" : "string",
"sku_id" : "string"
} ]
}
1.11.29. 打包袋修改
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/packagebag/modfiy
1.11.29.1. 说明
打包袋修改(全量覆盖)
1.11.29.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单号 |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
request |
打包袋修改请求 |
1.11.29.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.29.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/packagebag/modfiy?operator_id=string
请求 body
{
"skus" : [ {
"sku_id" : "string",
"qty" : 0.0
} ]
}
1.11.29.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.11.30. 获取抖音电子面单打印数据
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/order/{order_id}/waybill/printinfo
1.11.30.1. 说明
获取抖音电子面单打印数据
1.11.30.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单号 |
string |
Path |
store_id |
门店 |
string |
Path |
tenant_id |
租户ID |
string |
1.11.30.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.30.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/order/string/waybill/printinfo
1.11.30.5. HTTP响应示例
响应 200
{
"message" : "string",
"success" : true,
"data" : {
"waybill_infos" : {
"sign" : "string",
"order_id" : "string",
"track_no" : "string",
"print_data" : "string"
},
"template_info" : {
"version" : "string",
"template_type" : "string",
"template_code" : "string",
"template_name" : "string",
"template_url" : "string",
"preview_url" : "string",
"template_id" : "string"
}
}
}
1.11.31. 分页查询异常订单
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/orders/exceptions
1.11.31.1. 说明
分页查询异常订单
1.11.31.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Query |
page |
页码,大于等于0 |
integer (int32) |
Query |
page_size |
分页大小,范围[0,100] |
integer (int32) |
Query |
type |
异常类型,取值是:redeliver-未妥投,refused-客户拒收,timeout-超期未提,stopped=发货后取消, listingexception=上架异常 不传则取全部异常类型的订单。 |
string |
1.11.31.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.31.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/orders/exceptions?operator_id=string&page=0&page_size=0
1.11.31.5. HTTP响应示例
响应 200
{
"paging" : {
"page" : 0,
"page_size" : 20,
"page_count" : 20,
"record_count" : 20,
"has_more" : false
},
"records" : [ {
"id" : "1001001",
"status" : "confirming",
"total" : 12.03,
"items" : [ {
"quantity" : 12.0,
"total" : 12.25,
"itemCustomField" : {
"sfield1" : "aaa",
"sfield2" : "bbb",
"sfield3" : "ccc",
"sfield4" : "ddd",
"sfield5" : "eee",
"sfield6" : "ggg",
"sfield7" : "eee",
"sfield8" : "fff",
"nfield1" : 23.0,
"nfield2" : 34.0,
"item_code" : "323231"
},
"tags" : [ {
"name" : "首单"
} ],
"item_no" : "1",
"item_code" : "32323",
"item_name" : "可乐",
"spec" : "1*1",
"barcode" : "32323",
"unit_price" : 32.05,
"fav_price" : 12.54,
"fav_total" : 12.25,
"image_url" : "http://aaa/bbb.png",
"details" : [ {
"id" : "323231",
"title" : "aaa",
"quantity" : 12.0,
"ratio" : 0.25
} ],
"orig_item" : {
"quantity" : 12.0,
"item_code" : "32323",
"item_name" : "可乐",
"qpc" : "1*1",
"unit" : "份"
},
"fault_tolerant_info" : "string"
} ],
"mobile" : "15855885589",
"salechannel" : "mdj",
"deliveryman" : "李三",
"quotas" : [ {
"action" : "expect_shipping",
"time" : "2021-09-26 16:40:19",
"remark" : "无",
"action_name" : "期望拣货完成时间"
} ],
"tags" : [ {
"name" : "首单"
} ],
"store_id" : "0002",
"type_caption" : "一小时达",
"ship_location" : "store",
"ship_location_caption" : "上海",
"customer_info" : "string",
"private_customer_info" : "string",
"payment_type" : "货到付款",
"delivery_type" : "送货上门",
"status_caption" : "已取消",
"create_time" : "2017-11-27 18:38:42",
"ship_time" : "2017-11-27 18:38:42",
"sign_time" : "2017-11-27 18:38:42",
"exception_type" : "stopped",
"exception_info" : "string",
"invoice" : {
"required" : false,
"details" : [ {
"amount" : 12.02,
"content" : "某某公司",
"title" : "plain"
} ]
},
"freight" : 12.03,
"expected_delivered_date" : "2014-02-03",
"expected_delivered_time_slot" : "11:00-12:00",
"payable_amount" : 12.02,
"customer_note" : "无",
"private_mobile" : "189389928893",
"private_street" : "脱敏地址**",
"salechannel_name" : "美到家",
"cancel_type" : "customerCancel",
"carrier_type" : "express",
"carrier_state" : "pickupFailed",
"deliveryman_mobile" : "15655895658",
"carrier_id" : "self",
"carrier_name" : "顺丰",
"waybill_id" : "123456",
"carrier_exception_remark" : "门店不存在",
"multi_store" : false,
"fault_tolerant_info" : "string",
"shop_id" : "string",
"packages" : [ {
"sku_id" : "2015456648",
"barcode" : "6931798836288",
"sku_name" : "可降解打包袋(大号)",
"qty" : 1.0,
"amount" : 0.5
} ]
} ]
}
1.11.32. 批量查询打印接口
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/orders/printdatas
1.11.32.1. 说明
批量查询打印接口
1.11.32.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
ids |
订单号 |
< string > array(multi) |
Query |
names |
打印模版名称name:拣货单、外卖订单、运单,长度不超过40,打印多个用英文逗号隔开如:拣货单,外卖订单。不传表示打印全部 |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
1.11.32.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.32.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/orders/printdatas?ids=string&operator_id=string
1.11.32.5. HTTP响应示例
响应 200
{
"orders" : [ {
"parts" : [ "string" ],
"order_id" : "21212",
"time" : "2019-07-03 13:06:46"
} ]
}
1.11.33. 分页查询订单
POST /{tenant_id}/storedelivery/deliverservice/store/{store_id}/orders/query
1.11.33.1. 说明
分页查询订单
1.11.33.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
definition |
查询定义 |
1.11.33.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.33.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/orders/query?operator_id=string
请求 body
{
"conditions" : [ {
"name" : "aaa",
"param" : "2018-05-04 14:25:25"
} ],
"orders" : [ {
"field" : "created",
"direction" : "asc"
} ],
"page" : 0,
"page_size" : 10
}
1.11.33.5. HTTP响应示例
响应 200
{
"paging" : {
"page" : 0,
"page_size" : 20,
"page_count" : 20,
"record_count" : 20,
"has_more" : false
},
"records" : [ {
"id" : "1001001",
"status" : "confirming",
"total" : 12.03,
"items" : [ {
"quantity" : 12.0,
"total" : 12.25,
"itemCustomField" : {
"sfield1" : "aaa",
"sfield2" : "bbb",
"sfield3" : "ccc",
"sfield4" : "ddd",
"sfield5" : "eee",
"sfield6" : "ggg",
"sfield7" : "eee",
"sfield8" : "fff",
"nfield1" : 23.0,
"nfield2" : 34.0,
"item_code" : "323231"
},
"tags" : [ {
"name" : "首单"
} ],
"item_no" : "1",
"item_code" : "32323",
"item_name" : "可乐",
"spec" : "1*1",
"barcode" : "32323",
"unit_price" : 32.05,
"fav_price" : 12.54,
"fav_total" : 12.25,
"image_url" : "http://aaa/bbb.png",
"details" : [ {
"id" : "323231",
"title" : "aaa",
"quantity" : 12.0,
"ratio" : 0.25
} ],
"orig_item" : {
"quantity" : 12.0,
"item_code" : "32323",
"item_name" : "可乐",
"qpc" : "1*1",
"unit" : "份"
},
"fault_tolerant_info" : "string"
} ],
"mobile" : "15855885589",
"salechannel" : "mdj",
"deliveryman" : "李三",
"quotas" : [ {
"action" : "expect_shipping",
"time" : "2021-09-26 16:40:19",
"remark" : "无",
"action_name" : "期望拣货完成时间"
} ],
"tags" : [ {
"name" : "首单"
} ],
"store_id" : "0002",
"type_caption" : "一小时达",
"ship_location" : "store",
"ship_location_caption" : "上海",
"customer_info" : "string",
"private_customer_info" : "string",
"payment_type" : "货到付款",
"delivery_type" : "送货上门",
"status_caption" : "已取消",
"create_time" : "2017-11-27 18:38:42",
"ship_time" : "2017-11-27 18:38:42",
"sign_time" : "2017-11-27 18:38:42",
"exception_type" : "stopped",
"exception_info" : "string",
"invoice" : {
"required" : false,
"details" : [ {
"amount" : 12.02,
"content" : "某某公司",
"title" : "plain"
} ]
},
"freight" : 12.03,
"expected_delivered_date" : "2014-02-03",
"expected_delivered_time_slot" : "11:00-12:00",
"payable_amount" : 12.02,
"customer_note" : "无",
"private_mobile" : "189389928893",
"private_street" : "脱敏地址**",
"salechannel_name" : "美到家",
"cancel_type" : "customerCancel",
"carrier_type" : "express",
"carrier_state" : "pickupFailed",
"deliveryman_mobile" : "15655895658",
"carrier_id" : "self",
"carrier_name" : "顺丰",
"waybill_id" : "123456",
"carrier_exception_remark" : "门店不存在",
"multi_store" : false,
"fault_tolerant_info" : "string",
"shop_id" : "string",
"packages" : [ {
"sku_id" : "2015456648",
"barcode" : "6931798836288",
"sku_name" : "可降解打包袋(大号)",
"qty" : 1.0,
"amount" : 0.5
} ]
} ]
}
1.11.34. 退款(含退款详情)
PUT /{tenant_id}/storedelivery/deliverservice/store/{store_id}/refund/{id}
1.11.34.1. 说明
退款(含退款详情)
1.11.34.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
退换货申请单ID |
string |
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Body |
details |
退款支付方式详情 |
1.11.34.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.11.34.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/refund/string?operator_id=string
请求 body
{
"payments" : [ {
"name" : "支付宝",
"amount" : 12.03,
"card_number" : "22121",
"store_pay" : false,
"need_cash" : false
} ]
}
1.11.35. 取得可以用的销售渠道
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/salechannels
1.11.35.1. 说明
取得可以用的销售渠道
1.11.35.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
1.11.35.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.35.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/salechannels
1.11.35.5. HTTP响应示例
响应 200
{
"channels" : [ {
"id" : "string",
"name" : "string"
} ]
}
1.11.36. 自提检查
GET /{tenant_id}/storedelivery/deliverservice/store/{store_id}/selftake/check
1.11.36.1. 说明
自提检查
1.11.36.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
store_id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator_id |
操作人ID,长度不超过20 |
string |
Query |
operator_name |
操作人姓名,长度不超过50 |
string |
Query |
salechannel |
订单来源:取值范围:mdj(美到家)、jdo2o(京东到家)、tbkb(淘宝口碑) |
string |
Query |
selftake_code |
自提码 |
string |
1.11.36.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.11.36.4. HTTP请求示例
请求 path
/string/storedelivery/deliverservice/store/string/selftake/check?operator_id=string&salechannel=string&selftake_code=string
1.11.36.5. HTTP响应示例
响应 200
{
"accepted" : true,
"message" : "恭喜您,验证通过"
}
1.12. 订单服务
1.12.1. 获取催单
GET /{tenant_id}/soms/orderremindservice/orderremind/{id}
1.12.1.1. 说明
获取催单
1.12.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
催单ID |
string |
Path |
tenant_id |
租户Id |
string |
1.12.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.1.4. HTTP请求示例
请求 path
/string/soms/orderremindservice/orderremind/string
1.12.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.12.2. 催单回复
POST /{tenant_id}/soms/orderremindservice/remind/{id}/reply
1.12.2.1. 说明
催单回复
1.12.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
催单ID |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
催单 |
1.12.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.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.12.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.3. 查询催单
POST /{tenant_id}/soms/orderremindservice/reminds/query
1.12.3.1. 说明
查询催单
1.12.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.12.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.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.12.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.12.4. 订单占货情况检查
POST /{tenant_id}/soms/orderservice/check/order/stock/lock
1.12.4.1. 说明
订单占货情况检查
1.12.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Body |
body |
1.12.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.4.4. HTTP请求示例
请求 path
/string/soms/orderservice/check/order/stock/lock
请求 body
{
"order_ids" : [ "string" ]
}
1.12.4.5. HTTP响应示例
响应 200
{
"success" : true,
"message" : "string",
"data" : [ {
"success" : true,
"message" : "string",
"order_id" : "string",
"stock_state" : "initial(未占货),locked(已占货),shipped(已发货),aborted(已作废)",
"lock_result" : "lockPart(部分占货)、lockAll(全部成功)、none(未占货)",
"lock_items" : [ {
"sku_id" : "string",
"qty" : 0.0,
"type" : "wrh(仓库库存)、store(门店库存)",
"result" : "lockPart(部分占货)、lockAll(全部成功)、none(未占货)"
} ]
} ]
}
1.12.5. 提交订单(旧版)
POST /{tenant_id}/soms/orderservice/order
1.12.5.1. 说明
提交订单(旧版)
1.12.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order |
订单 |
1.12.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.5.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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
}
1.12.5.5. HTTP响应示例
响应 200
{
"id" : "string"
}
1.12.6. 自提检查
POST /{tenant_id}/soms/orderservice/order/action/selftake/check
1.12.6.1. 说明
自提检查
1.12.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.12.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.6.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/action/selftake/check?operator=string
请求 body
{
"store_id" : "232434",
"platform_id" : "meituan",
"selftake_code" : "123456",
"front_order_id" : "5745323545453"
}
1.12.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "5745323545453"
}
1.12.7. 订单检测
POST /{tenant_id}/soms/orderservice/order/check
1.12.7.1. 说明
addresscheck:检测地址是否可送、deliverycheck:检测承运商是否能送、deliverycalc:计算预计配送信息
1.12.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
订单检测 |
1.12.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.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" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"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" : "189389928893"
},
"pre_type" : "normal",
"expect_delivery_time" : "2022-03-02 14:00:01",
"sku_quantity" : 10.0,
"carrier_id" : "meituan",
"ship_mode" : "stationShip"
}
1.12.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.12.8. 批量修改订单下单门店
POST /{tenant_id}/soms/orderservice/order/mod/store
1.12.8.1. 说明
批量修改订单下单门店
1.12.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
修改内容 |
1.12.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.8.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/mod/store?operator=string
请求 body
{
"mods" : [ {
"order_id" : "1212",
"order_store" : {
"id" : "string",
"name" : "string"
}
} ]
}
1.12.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"errors" : [ {
"id" : "1212",
"message" : "订单不存在"
} ]
}
1.12.9. 批量取指定订单
GET /{tenant_id}/soms/orderservice/order/orders
1.12.9.1. 说明
批量取订单,级联信息可以通过parts获取
1.12.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.12.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.9.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/orders?id=string
1.12.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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
} ],
"empty" : true
}
1.12.10. 补发订单
POST /{tenant_id}/soms/orderservice/order/reissue
1.12.10.1. 说明
补发订单
1.12.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
订单补发请求 |
1.12.10.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.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" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"source_order_id" : "121212",
"responsible_party" : "carrier",
"reissue_reason" : "弄丢了",
"reissue_order_items" : [ {
"quantity" : 13.0,
"item_no" : "1",
"sku_id" : "132323"
} ],
"seller_note" : "商家备注"
}
1.12.10.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "string"
}
1.12.11. 提交订单(新版)
POST /{tenant_id}/soms/orderservice/order/submit
1.12.11.1. 说明
提交订单(新版)
1.12.11.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
order |
订单 |
1.12.11.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.11.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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
}
1.12.11.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"order_id" : "string"
}
1.12.12. 取指定订单
GET /{tenant_id}/soms/orderservice/order/{id}
1.12.12.1. 说明
取指定订单
1.12.12.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(运单打印信息)、exceptions(异常信息) |
string |
1.12.12.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.12.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/{id}
1.12.12.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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
}
1.12.13. 取消订单
POST /{tenant_id}/soms/orderservice/order/{id}/action/cancel
1.12.13.1. 说明
发货前,用户申请取消订单会直接取消订单;发货后用户申请取消订单会自动生成退货订单,退货订单收货后,订单变成客户拒收。
1.12.13.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
取消订单请求对象 |
1.12.13.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.13.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/cancel?operator=string
请求 body
{
"type" : "customerCancel",
"reason" : "不想要了",
"frontRtnId" : "599565656"
}
1.12.13.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.14. 更新订单承运信息
POST /{tenant_id}/soms/orderservice/order/{id}/action/carrier
1.12.14.1. 说明
更新订单承运信息
1.12.14.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.12.14.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.14.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
}
1.12.14.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.15. 更新订单配送状态
POST /{tenant_id}/soms/orderservice/order/{id}/action/deliver
1.12.15.1. 说明
更新订单配送状态
1.12.15.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.12.15.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.15.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_state" : "订单完成",
"ship_time" : "2022-07-18 20:34:00"
}
1.12.15.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.16. 确认自提
POST /{tenant_id}/soms/orderservice/order/{id}/action/selftake
1.12.16.1. 说明
确认自提
1.12.16.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.12.16.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.16.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/selftake?operator=string
请求 body
{
"store_id" : "454534"
}
1.12.16.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.17. 订单发货
POST /{tenant_id}/soms/orderservice/order/{id}/action/ship
1.12.17.1. 说明
订单发货,支持多个运单号
1.12.17.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
订单发货 |
1.12.17.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.17.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/action/ship?operator=string
请求 body
{
"waybills" : [ {
"number" : "string",
"carrier" : {
"id" : "string",
"name" : "string"
},
"weight" : {
"unit" : "string",
"value" : 0.0
},
"products" : [ {
"skuId" : "string",
"itemTitle" : "string",
"quantity" : 0.0
} ]
} ],
"wrh" : {
"id" : "string",
"name" : "string"
},
"operator" : "laowang"
}
1.12.17.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.18. 更新订单门店作业状态
POST /{tenant_id}/soms/orderservice/order/{id}/action/storeoperation
1.12.18.1. 说明
更新订单门店作业状态
1.12.18.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
门店作业请求 |
1.12.18.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.18.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(已交接)"
}
1.12.18.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.19. 商家主动发起退款
POST /{tenant_id}/soms/orderservice/order/{id}/applyrtn
1.12.19.1. 说明
商家主动发起退款
1.12.19.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
request |
申请请求对象 |
1.12.19.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.19.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,
"item_no" : "1",
"sku_id" : "2123",
"refund_amount" : 12.03
} ],
"front_app" : {
"id" : "string",
"name" : "string"
},
"rtn_id" : "54132321623",
"apply_type" : "weight_diff",
"approve_state" : "none"
}
1.12.19.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.20. 取消承运商配送申请
POST /{tenant_id}/soms/orderservice/order/{id}/cancel/carrier
1.12.20.1. 说明
取消承运商配送申请
1.12.20.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
取消承运商调度请求 |
1.12.20.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.20.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/cancel/carrier?operator=string
请求 body
{
"reason" : "客户不要了",
"carrier_id" : "343434343",
"auto_dispatch" : true
}
1.12.20.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.21. 获取订单配送踪迹
GET /{tenant_id}/soms/orderservice/order/{id}/delivery/trace
1.12.21.1. 说明
获取承运商配送轨迹:顺丰快递、美团快递、蜂鸟快递、京东快递等
1.12.21.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
1.12.21.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.21.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/delivery/trace
1.12.21.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"deliveryman" : "123434354",
"longitude" : 111.5,
"latitude" : 355.5,
"traces" : [ {
"time" : "2022-04-07 08:39:07",
"address" : "福建,厦门市",
"message" : "顺丰速运 已收取快件",
"status" : "在途"
} ],
"order_id" : "123434354",
"waybill_id" : "123434354",
"deliveryman_phone" : "123434354",
"trace_url" : "http://aaa/bbb",
"pre_delivery_time" : "2022-04-05 11:11:11"
}
1.12.22. 获取快递订单物流轨迹信息
GET /{tenant_id}/soms/orderservice/order/{id}/kd/trace
1.12.22.1. 说明
获取快递订单物流轨迹信息,支持快递100
1.12.22.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.12.22.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.22.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/kd/trace?operator=string
1.12.22.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"state" : "canceled",
"carrier" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : "123434354",
"longitude" : 111.5,
"latitude" : 355.5,
"details" : [ {
"time" : "2022-04-07 08:39:07",
"address" : "福建,厦门市",
"message" : "顺丰速运 已收取快件",
"status" : "在途"
} ],
"waybill_id" : "213232",
"deliveryman_phone" : "123434354",
"trace_url" : "http://aaa/bbb",
"pre_delivery_time" : "2022-04-02 00:00:00"
}
1.12.23. 获取订单的运单轨迹信息
GET /{tenant_id}/soms/orderservice/order/{id}/kd/traces
1.12.23.1. 说明
获取快递订单物流轨迹信息
1.12.23.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.12.23.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.23.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/kd/traces?operator=string
1.12.23.5. HTTP响应示例
响应 200
{
"traces" : [ {
"success" : true,
"code" : "string",
"message" : "string",
"state" : "canceled",
"carrier" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : "123434354",
"longitude" : 111.5,
"latitude" : 355.5,
"details" : [ {
"time" : "2022-04-07 08:39:07",
"address" : "福建,厦门市",
"message" : "顺丰速运 已收取快件",
"status" : "在途"
} ],
"waybill_id" : "213232",
"deliveryman_phone" : "123434354",
"trace_url" : "http://aaa/bbb",
"pre_delivery_time" : "2022-04-02 00:00:00"
} ]
}
1.12.24. 更换承运商
POST /{tenant_id}/soms/orderservice/order/{id}/mod/carrier
1.12.24.1. 说明
更换承运商
1.12.24.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
承运商修改请求 |
1.12.24.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.24.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_note" : "string"
}
1.12.24.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.25. 订单付款
POST /{tenant_id}/soms/orderservice/order/{id}/pay
1.12.25.1. 说明
订单付款
1.12.25.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
订单号 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
支付请求对象 |
1.12.25.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.25.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/pay?operator=string
请求 body
{
"front_state" : "string"
}
1.12.25.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.26. 订单修改收货信息
POST /{tenant_id}/soms/orderservice/order/{order_id}/mod/receiver
1.12.26.1. 说明
订单修改收货信息
1.12.26.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
order_id |
订单ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
updateParam |
收货信息修改参数 |
1.12.26.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.26.4. HTTP请求示例
请求 path
/string/soms/orderservice/order/string/mod/receiver?operator=string
请求 body
{
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"name" : {
"value" : "string"
},
"mobile" : {
"value" : "string"
},
"province" : {
"value" : "string"
},
"city" : {
"value" : "string"
},
"district" : {
"value" : "string"
},
"street" : {
"value" : "string"
},
"postCode" : {
"value" : "string"
},
"check_action" : "platform",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "string"
}
}
1.12.26.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.12.27. 查询订单(ES查询)
POST /{tenant_id}/soms/orderservice/orders/esQuery
1.12.27.1. 说明
查询订单(ES查询,推荐使用)
1.12.27.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page_size |
分页大小,范围是[1,100] |
integer (int32) |
Query |
scrollId |
游标Id,第一次传-1 |
string |
Query |
scrollTime |
游标有效时间 |
string |
Query |
sort_key |
排序字段,取值范围:front_created()、created(创建时间)、modified(最后修改时间) |
string |
Body |
filter |
查询条件 |
1.12.27.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.27.4. HTTP请求示例
请求 path
/string/soms/orderservice/orders/esQuery?desc=true&page_size=0
请求 body
{
"states" : [ "confirmed" ],
"suspended" : true,
"source" : "小程序",
"prePage" : 0,
"customerMobile" : "18896551546",
"hasInvoice" : false,
"invalid" : false,
"platform_id" : "jdo2o",
"platform_ids" : [ "string" ],
"shop_id" : "0002",
"shop_id_in" : "[0002,0003]",
"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" ],
"receiver_mobile" : "18857485554",
"receiver_mobile_like" : "5554",
"receiver_name" : "张三",
"carrier_id" : "0003",
"carrier_merchant_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",
"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,
"bill_id_like" : "32323",
"bill_id_eq" : "3232323",
"custom_order_state" : [ "string" ],
"salesman_id_eq" : "3232323",
"app_id_eq" : "3232323",
"type_eq" : "拼团订单",
"type_id_eq" : "ECOM",
"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_third_order_id_eq" : "32323232323323",
"front_sku_id" : "string",
"sku_id" : "string",
"sku_id_in" : "[\"sku1\", \"sku2\"]",
"source_order_id_eq" : "213",
"source_order_id_in" : [ "string" ],
"ship_mode" : "string",
"wrh_id_eq" : "string",
"wrh_id_in" : [ "string" ],
"platform_group_eq" : "O2O",
"member_grade_eq" : "12253",
"stock_state" : "initial",
"package_count_gt" : "initial",
"has_billing_exception" : false,
"is_split" : true
}
1.12.27.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"scrollId" : "string",
"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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
} ],
"page_count" : 5,
"page_size" : 20
}
1.12.28. 查询订单(ES查询)
POST /{tenant_id}/soms/orderservice/orders/query
1.12.28.1. 说明
查询订单(ES查询,推荐使用)
1.12.28.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.12.28.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.28.4. HTTP请求示例
请求 path
/string/soms/orderservice/orders/query?desc=true&page=0&page_size=0
请求 body
{
"states" : [ "confirmed" ],
"suspended" : true,
"source" : "小程序",
"prePage" : 0,
"customerMobile" : "18896551546",
"hasInvoice" : false,
"invalid" : false,
"platform_id" : "jdo2o",
"platform_ids" : [ "string" ],
"shop_id" : "0002",
"shop_id_in" : "[0002,0003]",
"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" ],
"receiver_mobile" : "18857485554",
"receiver_mobile_like" : "5554",
"receiver_name" : "张三",
"carrier_id" : "0003",
"carrier_merchant_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",
"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,
"bill_id_like" : "32323",
"bill_id_eq" : "3232323",
"custom_order_state" : [ "string" ],
"salesman_id_eq" : "3232323",
"app_id_eq" : "3232323",
"type_eq" : "拼团订单",
"type_id_eq" : "ECOM",
"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_third_order_id_eq" : "32323232323323",
"front_sku_id" : "string",
"sku_id" : "string",
"sku_id_in" : "[\"sku1\", \"sku2\"]",
"source_order_id_eq" : "213",
"source_order_id_in" : [ "string" ],
"ship_mode" : "string",
"wrh_id_eq" : "string",
"wrh_id_in" : [ "string" ],
"platform_group_eq" : "O2O",
"member_grade_eq" : "12253",
"stock_state" : "initial",
"package_count_gt" : "initial",
"has_billing_exception" : false,
"is_split" : true
}
1.12.28.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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
} ],
"page_count" : 5,
"page_size" : 20
}
1.12.29. 批量取指定订单(新)
POST /{tenant_id}/soms/orderservice/v2/order/orders
1.12.29.1. 说明
批量取订单,级联信息可以通过parts获取
1.12.29.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,取值范围:items(商品详情)、item.details(商品组合详情),paymentDetails(支付详情)、invoiceDetails(发票详情)、printBills(打印信息)、prom(优惠信息)、exceptions(订单异常信息)、waybill.printinfo(运单打印信息)、item.details.stockstate(占货详情) |
string |
Body |
orderIds |
订单号集合,建议20,最多100个 |
1.12.29.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.12.29.4. HTTP请求示例
请求 path
/string/soms/orderservice/v2/order/orders
请求 body
{
"data" : [ "string" ]
}
1.12.29.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" : "189389928893"
}
},
"weight" : 500.0,
"invoice" : {
"required" : false,
"result" : "成功",
"details" : [ {
"type" : "plain",
"title" : "plain",
"content" : "上海股份有限公司",
"amount" : 12.03,
"tax" : 2.32,
"remark" : "plain",
"time" : "2019-07-15 16:56:23",
"url" : "a.jpg",
"email" : "chw@qq.com",
"title_type" : "person",
"buyer_tax_code" : "1232000046600736XP",
"taxer_id" : "1212345046600736XP",
"print_number" : "123456",
"securaty_code" : "2114445",
"check_code" : "201622"
} ],
"error_reason" : "string",
"apply_qrcode" : "string"
},
"payment" : {
"type" : "online",
"state" : "paid",
"payee" : {
"id" : "string",
"name" : "string"
},
"amount" : 14.02,
"freight" : 14.02,
"details" : [ {
"name" : "支付宝",
"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" : [ {
"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",
"station" : {
"id" : "string",
"name" : "string"
},
"receiver" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "脱敏名称**",
"private_mobile" : "189389928893"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "福州市/厦门市",
"district" : "连江县/思明区",
"town" : "string",
"street" : "观日路46号603",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
},
"oaid" : "string"
},
"waybills" : [ {
"packages" : [ {
"type" : "string",
"id" : "string"
} ],
"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_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",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"dpt_station_time" : "2016-03-02 12:00:01",
"station_id" : "254145",
"station_order_no" : "1",
"order_type" : {
"id" : "string",
"name" : "string"
},
"platform_group" : "string"
},
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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(商品异常)、carrier(配送异常)",
"caption" : "商品异常",
"remark" : "商品异常",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"order_id" : "123456"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ]
},
"order_store" : {
"id" : "string",
"name" : "string"
},
"approve_state" : "none",
"customer_note" : "note",
"seller_note" : "note",
"salesman" : {
"id" : "string",
"name" : "string",
"type" : "saleman",
"org" : {
"id" : "string",
"name" : "string"
},
"org_type" : "门店"
},
"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,
"shop_amount" : 120.01,
"freight_discount" : 33.33,
"package_discount" : 33.33,
"shop_package_discount" : 33.33,
"ptm_package_discount" : 33.33,
"invoice_take_code" : "string",
"item_change_records" : [ {
"reason" : "string",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"front" : {
"spec" : "蓝色;微甜 少冰/多糖",
"spec2" : "500g",
"unit" : "string",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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",
"sku_id" : "052700601",
"item_id" : "052700601",
"station_type" : "wrh",
"station_id" : "1230980"
},
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋",
"sale_mode" : "normal"
},
"front_spec" : "辣",
"upc" : "4897060263713"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"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的参与详情"
},
"merchant_act_id" : "1111",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(平台)",
"discount" : 1.0
} ],
"share_details" : "[]"
} ],
"discount_amount" : 0.1,
"apported_discount_amount" : 0.1
},
"weight" : 100.0,
"item_no" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.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" : "保温袋",
"sale_mode" : "normal"
},
"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_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"fault_tolerant_info" : "string",
"salesman" : {
"id" : "string",
"name" : "string"
},
"salesman_type" : "author",
"extra_info" : "{\"inv_mgr\": false}",
"tags" : "标签",
"relation_sale_order_id" : "1231232131",
"settle_unit" : {
"type" : "store",
"code" : "0001",
"name" : "门店1"
},
"orig_weight" : 100.0,
"item_stock_state" : "部分占货",
"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"
} ],
"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",
"member_grade" : "12253"
},
"fault_tolerant_info" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"crm_info" : {
"coupon_info" : {
"details" : "[]",
"use_total" : 1.0
},
"score_info" : {
"total" : 1.0
}
},
"settle_info" : {
"discounts" : "[{}]",
"settle_date" : "2022-08-25 00:00:00",
"station_settle_mode" : "online"
},
"package_info" : {
"required" : false,
"type" : "系统自动计算,order(订单)、refund(仅退款)、refundAndRtn(退款退货)",
"details" : [ {
"qty" : 1.0,
"amount" : 1.0,
"sku_id" : "213323232",
"sku_name" : "213323232"
} ],
"package_type" : "保温袋"
},
"item_logistics" : [ {
"qty" : 0.0,
"sku_id" : "string",
"logistics_code" : "string"
} ],
"calc_data" : true,
"wrh_id" : "4184",
"wrh_name" : "cc",
"wrh_state" : "initial",
"encrypt_detail" : {
"secretKey" : "string",
"encrypt_street" : "string",
"encrypt_name" : "string",
"encrypt_mobile" : "string",
"encrypt_telephone" : "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"
} ],
"is_split" : true,
"stock_state" : "initial",
"address_change_fee" : 0.0
} ],
"empty" : true
}
1.13. 巨益回调服务
1.13.1. 巨益订单发货回传
POST /{tenant_id}/eshop/callback/juyi/order/ship
1.13.1.1. 说明
巨益订单发货回传
1.13.1.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.1.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/order/ship
请求 body
{
"carrier" : {
"id" : "string",
"name" : "string"
},
"wrh" : {
"id" : "string",
"name" : "string"
},
"platform_id" : "mingchuang",
"shop_id" : "2019",
"trade_id" : "123456",
"waybill_id" : "string"
}
1.13.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.2. 巨益通知释放订单占货
POST /{tenant_id}/eshop/callback/juyi/order/stock/unlock
1.13.2.1. 说明
巨益通知释放订单占货
1.13.2.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.2.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/order/stock/unlock
请求 body
{
"order_id" : "string"
}
1.13.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.3. 库存回调
POST /{tenant_id}/eshop/callback/juyi/platform/updateInvs
1.13.3.1. 说明
库存回调
1.13.3.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.3.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/platform/updateInvs
请求 body
{
"invs" : [ {
"qty" : 0.0,
"sku_id" : "2007200410101",
"out_sku_id" : "6941501567286"
} ],
"platform_id" : "巨益的平台编码,如其他平台对应的编码是OTHER",
"shop_id" : "巨益的店铺编码"
}
1.13.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.4. 退单拦截发货结果
POST /{tenant_id}/eshop/callback/juyi/rtn/intercept/result
1.13.4.1. 说明
退单拦截发货同步中台
1.13.4.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.4.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/rtn/intercept/result
请求 body
{
"success" : true,
"message" : "string",
"platform_id" : "mingchuang",
"shop_id" : "2019",
"rtn_id" : "123456"
}
1.13.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.5. 退单确认收货
POST /{tenant_id}/eshop/callback/juyi/rtn/receive
1.13.5.1. 说明
退单确认收货
1.13.5.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.5.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/rtn/receive
请求 body
{
"wrh" : {
"id" : "string",
"name" : "string"
},
"platform_id" : "mingchuang",
"shop_id" : "2019",
"rtn_id" : "123456"
}
1.13.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.6. 提交订单回调结果
POST /{tenant_id}/eshop/callback/juyi/sync/order/result
1.13.6.1. 说明
订单回调结果
1.13.6.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.6.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/sync/order/result
请求 body
{
"success" : true,
"message" : "string",
"order_id" : "string"
}
1.13.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.7. 提交仅退款或者退款退货回调结果
POST /{tenant_id}/eshop/callback/juyi/sync/rtn/result
1.13.7.1. 说明
提交仅退款或者退款退货回调结果
1.13.7.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.7.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/sync/rtn/result
请求 body
{
"success" : true,
"message" : "string",
"rtn_id" : "string"
}
1.13.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.13.8. 上传库存流水
POST /{tenant_id}/eshop/callback/juyi/uploadInvHst
1.13.8.1. 说明
上传库存流水
1.13.8.2. 参数
类型 | 名称 | 类型 |
---|---|---|
Body |
body |
string |
Body |
body |
1.13.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.13.8.4. HTTP请求示例
请求 path
/{tenant_id}/eshop/callback/juyi/uploadInvHst
请求 body
{
"platform_id" : "巨益的平台编码,如其他平台对应的编码是OTHER",
"shop_id" : "巨益的店铺编码",
"inv_hsts" : [ {
"time" : "2019-03-02 12:00:01",
"flow_id" : "2007200410101",
"bussiness_type" : "采购入库",
"sku_id" : "2007200410101",
"out_sku_id" : "6941501567286",
"change_qty" : 0.0,
"relation_id" : "202308181139",
"out_wrh_id" : "202308181139",
"out_wrh_name" : "202308181139"
} ]
}
1.13.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.14. 门店作业规则服务
1.14.1. 查询门店作业规则服务
POST /{tenant_id}/soms/storeoperationruleservice/rule
1.14.1.1. 说明
查询门店作业规则服务
1.14.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.14.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
< StoreOperationRule > array |
1.14.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.14.1.5. HTTP响应示例
响应 200
[ {
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
}
},
"source" : "string"
} ]
1.14.2. 获取门店作业规则
GET /{tenant_id}/soms/storeoperationruleservice/rule
1.14.2.1. 说明
获取门店作业规则
1.14.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.14.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.14.2.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule?platform_id=string&shop_id=string&store_id=string&type=string
1.14.2.5. HTTP响应示例
响应 200
{
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
}
},
"source" : "string"
}
1.14.3. 删除门店作业规则
DELETE /{tenant_id}/soms/storeoperationruleservice/rule/delete
1.14.3.1. 说明
删除门店作业规则
1.14.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.14.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.14.3.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule/delete?platform_id=string&shop_id=string&store_id=string&type=string
1.14.4. 保存门店作业规则
POST /{tenant_id}/soms/storeoperationruleservice/rule/save
1.14.4.1. 说明
保存门店作业规则
1.14.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
store_operation_rule_save |
自提规则 |
1.14.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
1.14.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" : {
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
}
}
}
1.15. 采购订单服务
1.15.1. 提交采购订单
POST /{tenant_id}/soms/purchaseservice/purchase
1.15.1.1. 说明
提交采购订单
1.15.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
purchase |
订单 |
1.15.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.15.1.4. HTTP请求示例
请求 path
/string/soms/purchaseservice/purchase?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "2022030502",
"type" : "string",
"state" : "string",
"vendor" : {
"code" : "string",
"name" : "string"
},
"items" : [ {
"qty" : 1.0,
"sku_id" : "00321",
"ship_qty" : 1.0,
"receive_qty" : 1.0
} ],
"relations" : [ {
"bill_type" : "order",
"bill_id" : "1234567890"
} ],
"remark" : "销售触发采购",
"source_id" : "2022030501",
"source_system" : "SAP",
"is_virtual_mode" : false,
"vend_unit_type" : "wrh",
"vend_unit" : {
"code" : "string",
"name" : "string"
},
"ship_wrh" : {
"code" : "string",
"name" : "string"
},
"purchaser" : {
"code" : "string",
"name" : "string"
},
"purchase_unit_type" : "store",
"purchase_unit" : {
"code" : "string",
"name" : "string"
},
"purchase_date" : "{}",
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"ship_state" : "shipped",
"expect_ship_time" : "2022-03-05 08:00:00",
"receive_state" : "received",
"return_state" : "none",
"relation_order_type" : "purchasesuggest",
"relation_order_id" : "123456"
}
1.15.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"id" : "88822222222"
}
1.15.2. 异步占货
POST /{tenant_id}/soms/purchaseservice/purchase/asyncLock
1.15.2.1. 说明
异步占货
1.15.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求 |
1.15.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.15.2.4. HTTP请求示例
请求 path
/string/soms/purchaseservice/purchase/asyncLock?operator=string
请求 body
{
"tenantId" : "冗余字段,外部不需要传",
"id" : "string",
"items" : [ {
"skuId" : "string",
"qty" : 0.0,
"wrhId" : "string"
} ],
"relationItems" : [ {
"suggestId" : "string",
"wrhId" : "string",
"skuId" : "string",
"qty" : 0.0
} ]
}
1.15.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"data" : { }
}
1.15.3. 查询采购订单
POST /{tenant_id}/soms/purchaseservice/purchase/query
1.15.3.1. 说明
查询采购订单
1.15.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 |
排序字段 支持:modified,created 字段排序,默认created排序 |
string |
Body |
filter |
查询条件 |
1.15.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.15.3.4. HTTP请求示例
请求 path
/string/soms/purchaseservice/purchase/query?desc=true&page=0&page_size=0
请求 body
{
"id_start_with" : "string",
"id_eq" : "string",
"state_eq" : "string",
"source_system_eq" : "string",
"type_eq" : "string",
"source_id_in" : [ "string" ],
"source_id_start_with" : "string",
"vend_unit_type_eq" : "string",
"vend_unit_code_start_with" : "string",
"purchase_unit_type_eq" : "string",
"purchase_unit_code_start_with" : "string",
"ship_state_eq" : "string",
"receive_state_eq" : "string",
"relation_order_id_start_with" : "string",
"expect_ship_time_start" : "2016-03-02 12:00:01",
"expect_ship_time_end" : "2016-03-02 12:00:01",
"created_start" : "2016-03-02 12:00:01",
"created_end" : "2016-03-02 12:00:01",
"bill_id_eq" : "xxxxxxxx",
"parts" : "items"
}
1.15.3.5. HTTP响应示例
响应 200
{
"echoCode" : 0,
"echoMessage" : "string",
"success" : true,
"page" : 0,
"pageSize" : 0,
"pageCount" : 0,
"total" : 0,
"data" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "2022030502",
"type" : "string",
"state" : "string",
"vendor" : {
"code" : "string",
"name" : "string"
},
"items" : [ {
"qty" : 1.0,
"sku_id" : "00321",
"ship_qty" : 1.0,
"receive_qty" : 1.0
} ],
"relations" : [ {
"bill_type" : "order",
"bill_id" : "1234567890"
} ],
"remark" : "销售触发采购",
"source_id" : "2022030501",
"source_system" : "SAP",
"is_virtual_mode" : false,
"vend_unit_type" : "wrh",
"vend_unit" : {
"code" : "string",
"name" : "string"
},
"ship_wrh" : {
"code" : "string",
"name" : "string"
},
"purchaser" : {
"code" : "string",
"name" : "string"
},
"purchase_unit_type" : "store",
"purchase_unit" : {
"code" : "string",
"name" : "string"
},
"purchase_date" : "{}",
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"ship_state" : "shipped",
"expect_ship_time" : "2022-03-05 08:00:00",
"receive_state" : "received",
"return_state" : "none",
"relation_order_type" : "purchasesuggest",
"relation_order_id" : "123456"
} ]
}
1.15.4. 取指定采购订单
GET /{tenant_id}/soms/purchaseservice/purchase/{id}
1.15.4.1. 说明
取指定采购订单
1.15.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
单据id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
返回多个部分用,隔开。需要返回的部分,items(商品详情) |
string |
1.15.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.15.4.4. HTTP请求示例
请求 path
/string/soms/purchaseservice/purchase/string
1.15.4.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "2022030502",
"type" : "string",
"state" : "string",
"vendor" : {
"code" : "string",
"name" : "string"
},
"items" : [ {
"qty" : 1.0,
"sku_id" : "00321",
"ship_qty" : 1.0,
"receive_qty" : 1.0
} ],
"relations" : [ {
"bill_type" : "order",
"bill_id" : "1234567890"
} ],
"remark" : "销售触发采购",
"source_id" : "2022030501",
"source_system" : "SAP",
"is_virtual_mode" : false,
"vend_unit_type" : "wrh",
"vend_unit" : {
"code" : "string",
"name" : "string"
},
"ship_wrh" : {
"code" : "string",
"name" : "string"
},
"purchaser" : {
"code" : "string",
"name" : "string"
},
"purchase_unit_type" : "store",
"purchase_unit" : {
"code" : "string",
"name" : "string"
},
"purchase_date" : "{}",
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"ship_state" : "shipped",
"expect_ship_time" : "2022-03-05 08:00:00",
"receive_state" : "received",
"return_state" : "none",
"relation_order_type" : "purchasesuggest",
"relation_order_id" : "123456"
}
1.15.5. 收货
POST /{tenant_id}/soms/purchaseservice/purchase/{id}/receive
1.15.5.1. 说明
收货
1.15.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求 |
1.15.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.15.5.4. HTTP请求示例
请求 path
/string/soms/purchaseservice/purchase/string/receive?operator=string
请求 body
{
"receive_wrh" : {
"code" : "string",
"name" : "string"
},
"receive_state" : "received",
"items" : [ {
"sku_id" : "00321",
"receive_qty" : 1.0
} ]
}
1.15.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"data" : { }
}
1.15.6. 发货
POST /{tenant_id}/soms/purchaseservice/purchase/{id}/ship
1.15.6.1. 说明
发货
1.15.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
1.15.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
1.15.6.4. HTTP请求示例
请求 path
/string/soms/purchaseservice/purchase/string/ship?operator=string
1.15.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"data" : { }
}
2. 接口定义
2.1. 产品功能服务
2.1.1. 同步功能
POST /functionservice/function/update
2.1.1.1. 说明
同步功能
2.1.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Query |
operator |
操作人 |
string |
Body |
function |
功能 |
2.1.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.1.1.4. HTTP请求示例
请求 path
/functionservice/function/update?operator=string
请求 body
{
"function" : {
"id" : "string",
"name" : "string",
"type" : "string",
"seqNo" : 0,
"path" : "string",
"created" : "2020-06-17 10:00:00",
"parent_id" : "string"
},
"permissions" : [ {
"id" : "aaa.bbb",
"name" : "权限a",
"group" : "aaa",
"group_name" : "分组aa"
} ]
}
2.1.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.1.2. 批量更新功能
POST /functionservice/{tenant_id}/merchant/functions
2.1.2.1. 说明
批量同步功能
2.1.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
功能列表开通|关闭请求 |
2.1.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.1.2.4. HTTP请求示例
请求 path
/functionservice/string/merchant/functions?operator=string
请求 body
{
"functions" : [ {
"id" : "string",
"state" : "applying"
} ]
}
2.1.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.2. 渠道接入服务
2.2.1. 取商家已开通的渠道ID
GET /{tenant_id}/merchant/accessservice/platforms
2.2.1.1. 说明
取商家已开通的渠道ID
2.2.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
2.2.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.2.1.4. HTTP请求示例
请求 path
/string/merchant/accessservice/platforms
2.2.1.5. HTTP响应示例
响应 200
{
"ids" : [ "string" ]
}
2.3. 员工服务
2.3.1. 新建或保存员工
POST /{tenant_id}/merchant/wd/staffservice/staff
2.3.1.1. 说明
新建或保存员工
2.3.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
staff |
员工对象 |
2.3.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.3.1.4. HTTP请求示例
请求 path
/string/merchant/wd/staffservice/staff?operator=string
请求 body
{
"id" : "2345456",
"name" : "百里追风",
"gender" : "男",
"mobile" : "18547859965",
"state" : "on_job",
"email" : "151551@qq.com",
"password" : "123456",
"created" : "2019-01-03 00:00:00",
"modified" : "2019-01-03 00:00:00",
"id_number" : "350426199912125520",
"wx_id" : "9897547577594",
"superior_id" : "11232",
"superior_name" : "百里屠苏",
"department_id" : "123",
"department_name" : "事业部",
"position_id" : "4345",
"position_name" : "业务员",
"org_postions" : [ {
"org_id" : "2345456",
"org_name" : "测试早教中心",
"org_type" : "HQ",
"org_business_type" : "ip",
"postion_id" : "2345456",
"postion_name" : "教师"
} ],
"job_number" : "2345456",
"hire_date" : "2019-01-03 00:00:00",
"departure_date" : "2019-06-03 00:00:00"
}
2.3.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.3.2. 获取员工信息
GET /{tenant_id}/merchant/wd/staffservice/staff/{id}
2.3.2.1. 说明
获取员工信息
2.3.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
员工代码 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回部分 |
string |
2.3.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.3.2.4. HTTP请求示例
请求 path
/string/merchant/wd/staffservice/staff/string
2.3.2.5. HTTP响应示例
响应 200
{
"id" : "2345456",
"name" : "百里追风",
"gender" : "男",
"mobile" : "18547859965",
"state" : "on_job",
"email" : "151551@qq.com",
"password" : "123456",
"created" : "2019-01-03 00:00:00",
"modified" : "2019-01-03 00:00:00",
"id_number" : "350426199912125520",
"wx_id" : "9897547577594",
"superior_id" : "11232",
"superior_name" : "百里屠苏",
"department_id" : "123",
"department_name" : "事业部",
"position_id" : "4345",
"position_name" : "业务员",
"org_postions" : [ {
"org_id" : "2345456",
"org_name" : "测试早教中心",
"org_type" : "HQ",
"org_business_type" : "ip",
"postion_id" : "2345456",
"postion_name" : "教师"
} ],
"job_number" : "2345456",
"hire_date" : "2019-01-03 00:00:00",
"departure_date" : "2019-06-03 00:00:00"
}
2.3.3. 删除员工
POST /{tenant_id}/merchant/wd/staffservice/staff/{id}/delete
2.3.3.1. 说明
删除员工
2.3.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
员工代码 |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
2.3.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.3.3.4. HTTP请求示例
请求 path
/string/merchant/wd/staffservice/staff/string/delete?operator=string
2.3.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.3.4. 批量获取员工信息
POST /{tenant_id}/merchant/wd/staffservice/staffs
2.3.4.1. 说明
批量获取员工信息
2.3.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回部分 |
string |
Body |
ids |
员工代码 |
2.3.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.3.4.5. HTTP响应示例
响应 200
{
"staffs" : [ {
"id" : "2345456",
"name" : "百里追风",
"gender" : "男",
"mobile" : "18547859965",
"state" : "on_job",
"email" : "151551@qq.com",
"password" : "123456",
"created" : "2019-01-03 00:00:00",
"modified" : "2019-01-03 00:00:00",
"id_number" : "350426199912125520",
"wx_id" : "9897547577594",
"superior_id" : "11232",
"superior_name" : "百里屠苏",
"department_id" : "123",
"department_name" : "事业部",
"position_id" : "4345",
"position_name" : "业务员",
"org_postions" : [ {
"org_id" : "2345456",
"org_name" : "测试早教中心",
"org_type" : "HQ",
"org_business_type" : "ip",
"postion_id" : "2345456",
"postion_name" : "教师"
} ],
"job_number" : "2345456",
"hire_date" : "2019-01-03 00:00:00",
"departure_date" : "2019-06-03 00:00:00"
} ]
}
2.3.5. 员工资料查询
POST /{tenant_id}/merchant/wd/staffservice/staffs/query
2.3.5.1. 说明
员工资料查询
2.3.5.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,modified |
string |
Body |
filter |
员工查询过滤器 |
2.3.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.3.5.4. HTTP请求示例
请求 path
/string/merchant/wd/staffservice/staffs/query?desc=true&page=0&page_size=0
请求 body
{
"id" : "12332",
"keyword" : "12332",
"modified_begin" : "2019-01-03 00:00:00",
"modified_end" : "2019-01-03 00:00:00",
"wx_id" : "12332"
}
2.3.5.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"staffs" : [ {
"id" : "2345456",
"name" : "百里追风",
"gender" : "男",
"mobile" : "18547859965",
"state" : "on_job",
"email" : "151551@qq.com",
"password" : "123456",
"created" : "2019-01-03 00:00:00",
"modified" : "2019-01-03 00:00:00",
"id_number" : "350426199912125520",
"wx_id" : "9897547577594",
"superior_id" : "11232",
"superior_name" : "百里屠苏",
"department_id" : "123",
"department_name" : "事业部",
"position_id" : "4345",
"position_name" : "业务员",
"org_postions" : [ {
"org_id" : "2345456",
"org_name" : "测试早教中心",
"org_type" : "HQ",
"org_business_type" : "ip",
"postion_id" : "2345456",
"postion_name" : "教师"
} ],
"job_number" : "2345456",
"hire_date" : "2019-01-03 00:00:00",
"departure_date" : "2019-06-03 00:00:00"
} ],
"page_count" : 10,
"page_size" : 10
}
2.3.6. 批量更新员工
POST /{tenant_id}/merchant/wd/staffservice/staffs/update
2.3.6.1. 说明
批量更新员工,不存在则创建,存在则修改
2.3.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
staffs |
员工列表对象 |
2.3.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.3.6.4. HTTP请求示例
请求 path
/string/merchant/wd/staffservice/staffs/update?operator=string
请求 body
{
"staffs" : [ {
"id" : "2345456",
"name" : "百里追风",
"gender" : "男",
"mobile" : "18547859965",
"state" : "on_job",
"email" : "151551@qq.com",
"password" : "123456",
"created" : "2019-01-03 00:00:00",
"modified" : "2019-01-03 00:00:00",
"id_number" : "350426199912125520",
"wx_id" : "9897547577594",
"superior_id" : "11232",
"superior_name" : "百里屠苏",
"department_id" : "123",
"department_name" : "事业部",
"position_id" : "4345",
"position_name" : "业务员",
"org_postions" : [ {
"org_id" : "2345456",
"org_name" : "测试早教中心",
"org_type" : "HQ",
"org_business_type" : "ip",
"postion_id" : "2345456",
"postion_name" : "教师"
} ],
"job_number" : "2345456",
"hire_date" : "2019-01-03 00:00:00",
"departure_date" : "2019-06-03 00:00:00"
} ]
}
2.3.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.4. 角色服务
2.4.1. 删除商户角色
POST /{tenant_id}/merchant/roleservice/role/{id}/delete
2.4.1.1. 说明
删除商户角色列表
2.4.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
角色ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人ID |
string |
2.4.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.4.1.4. HTTP请求示例
请求 path
/string/merchant/roleservice/role/string/delete?operator=string
2.4.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.4.2. 同步商户角色
POST /{tenant_id}/merchant/roleservice/roles
2.4.2.1. 说明
保存商户角色列表
2.4.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人ID |
string |
Body |
roles |
角色列表 |
2.4.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.4.2.4. HTTP请求示例
请求 path
/string/merchant/roleservice/roles?operator=string
请求 body
{
"roles" : [ {
"id" : "string",
"name" : "string"
} ]
}
2.4.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.4.3. 赋予用户指定的角色(覆盖)
POST /{tenant_id}/merchant/roleservice/user/{user_id}/roles
2.4.3.1. 说明
赋予用户指定的角色(覆盖)
2.4.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Path |
user_id |
用户ID |
string |
Body |
roles |
用户所属角色列表 |
2.4.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.4.3.4. HTTP请求示例
请求 path
/string/merchant/roleservice/user/string/roles
请求 body
{
"roles" : [ {
"id" : "string",
"name" : "string"
} ]
}
2.4.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.5. 商家服务
2.5.1. 根据租户ID取商家信息
GET /{tenant_id}/merchant/orgservice/org
2.5.1.1. 说明
根据租户ID取商家信息
2.5.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分 |
string |
2.5.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.5.1.4. HTTP请求示例
请求 path
/string/merchant/orgservice/org
2.5.1.5. HTTP响应示例
响应 200
{
"id" : "yangleduo",
"name" : "养乐多",
"mobile" : "18723456654",
"email" : "155454545@qq.com",
"source" : "payman",
"tenant_id" : "cscsc",
"hd_user_id" : "aafs",
"remark" : "string",
"business_type" : "门店",
"province" : "福建省",
"city" : "厦门市",
"image_url" : "string",
"image_urls" : [ "string" ]
}
2.6. 权限服务
2.6.1. 保存权限定义
POST /{tenant_id}/merchant/permservice/perms
2.6.1.1. 说明
保存权限定义
2.6.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
group |
权限分组 |
string |
Body |
permissions |
权限列表 |
2.6.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.6.1.4. HTTP请求示例
请求 path
/string/merchant/permservice/perms?group=string
请求 body
{
"permissions" : [ {
"id" : "aaa.bbb",
"name" : "权限a",
"group" : "aaa",
"group_name" : "分组aa"
} ]
}
2.6.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.6.2. 根据分组获取权限定义
GET /{tenant_id}/merchant/permservice/perms
2.6.2.1. 说明
根据分组获取权限定义
2.6.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
group |
分组 |
string |
2.6.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.6.2.4. HTTP请求示例
请求 path
/string/merchant/permservice/perms
2.6.2.5. HTTP响应示例
响应 200
{
"permissions" : [ {
"id" : "aaa.bbb",
"name" : "权限a",
"group" : "aaa",
"group_name" : "分组aa"
} ]
}
2.6.3. 赋予角色权限
POST /{tenant_id}/merchant/permservice/role/{role_id}/perms
2.6.3.1. 说明
赋予角色权限
2.6.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
role_id |
角色ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
permissions |
权限列表 |
2.6.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.6.3.4. HTTP请求示例
请求 path
/string/merchant/permservice/role/string/perms?operator=string
请求 body
{
"permissions" : [ {
"id" : "aaa.bbb",
"name" : "权限a",
"group" : "aaa",
"group_name" : "分组aa"
} ]
}
2.6.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.6.4. 设置用户可管理的门店范围(覆盖)
POST /{tenant_id}/merchant/permservice/user/{user_id}/managestores
2.6.4.1. 说明
设置用户可管理的门店范围(覆盖)
2.6.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Path |
user_id |
用户ID |
string |
Body |
stores |
门店列表 |
2.6.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.6.4.4. HTTP请求示例
请求 path
/string/merchant/permservice/user/string/managestores
请求 body
{
"items" : [ {
"id" : "string",
"name" : "string"
} ]
}
2.6.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.6.5. 设置用户可管理的供应商范围(覆盖)
POST /{tenant_id}/merchant/permservice/user/{user_id}/managevendors
2.6.5.1. 说明
设置用户可管理的供应商范围(覆盖)
2.6.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Path |
user_id |
用户ID |
string |
Body |
vendorIds |
供应商ID集合 |
2.6.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.6.5.4. HTTP请求示例
请求 path
/string/merchant/permservice/user/string/managevendors
请求 body
{
"ids" : [ "string" ]
}
2.6.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.6.6. 取用户已授权的权限
GET /{tenant_id}/merchant/permservice/user/{user_id}/perms
2.6.6.1. 说明
取用户已授权的权限
2.6.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Path |
user_id |
用户ID |
string |
Query |
group |
分组 |
string |
2.6.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.6.6.4. HTTP请求示例
请求 path
/string/merchant/permservice/user/string/perms?group=string
2.6.6.5. HTTP响应示例
响应 200
{
"permissions" : [ {
"id" : "aaa.bbb",
"name" : "权限a",
"group" : "aaa",
"group_name" : "分组aa"
} ]
}
2.7. 用户资料服务
2.7.1. 获取用户资料
GET /{tenant_id}/merchant/userservice/user/{id}
2.7.1.1. 说明
获取用户资料
2.7.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
用户ID |
string |
2.7.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.7.1.4. HTTP请求示例
请求 path
/{tenant_id}/merchant/userservice/user/string
2.7.1.5. HTTP响应示例
响应 200
{
"id" : "string",
"name" : "string",
"mobile" : "string",
"state" : "using",
"login_name" : "string",
"tenant_id" : "string",
"is_super_admin" : true,
"is_super_store_manager" : true
}
2.7.2. POST /{tenant_id}/merchant/userservice/user/{id}/open
2.7.2.1. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
string |
|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
string |
|
Body |
body |
2.7.2.2. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.7.2.3. HTTP请求示例
请求 path
/string/merchant/userservice/user/string/open
请求 body
{
"state" : "using"
}
2.7.2.4. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.7.3. 批量同步用户
POST /{tenant_id}/merchant/userservice/users
2.7.3.1. 说明
批量同步用户
2.7.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
users |
用户列表 |
2.7.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.7.3.4. HTTP请求示例
请求 path
/string/merchant/userservice/users?operator=string
请求 body
{
"users" : [ {
"name" : "string",
"password" : "string",
"mobile" : "string",
"id" : "string",
"login_name" : "string",
"tenant_id" : "string",
"is_super_admin" : true,
"is_super_store_manager" : true,
"need_encrypt" : true
} ]
}
2.7.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.8. 供应商服务
2.8.1. 创建供应商
POST /{tenant_id}/merchant/vendorservice/vendor
2.8.1.1. 说明
创建供应商
2.8.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
vendor |
供应商对象 |
2.8.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.1.4. HTTP请求示例
请求 path
/string/merchant/vendorservice/vendor?operator=string
请求 body
{
"id" : "00001",
"name" : "供应商",
"state" : "closed"
}
2.8.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.8.2. 修改供应商
POST /{tenant_id}/merchant/vendorservice/vendor/{id}
2.8.2.1. 说明
修改供应商
2.8.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
供应商ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
mod |
修改请求对象 |
2.8.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.2.4. HTTP请求示例
请求 path
/string/merchant/vendorservice/vendor/string?operator=string
请求 body
{
"name" : "华东供应商",
"state" : "closed"
}
2.8.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.8.3. 获取供应商
GET /{tenant_id}/merchant/vendorservice/vendor/{id}
2.8.3.1. 说明
获取供应商
2.8.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
供应商ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分 |
string |
2.8.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.3.4. HTTP请求示例
请求 path
/string/merchant/vendorservice/vendor/string
2.8.3.5. HTTP响应示例
响应 200
{
"id" : "00001",
"name" : "供应商",
"state" : "closed"
}
2.8.4. 供应商删除
DELETE /{tenant_id}/merchant/vendorservice/vendor/{id}
2.8.4.1. 说明
供应商删除
2.8.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
供应商ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
2.8.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.4.4. HTTP请求示例
请求 path
/string/merchant/vendorservice/vendor/string?operator=string
2.8.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.8.5. 批量获取供应商
POST /{tenant_id}/merchant/vendorservice/vendors
2.8.5.1. 说明
批量获取供应商
2.8.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Body |
ids |
供应商ID |
2.8.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.5.5. HTTP响应示例
响应 200
{
"vendors" : [ {
"id" : "00001",
"name" : "供应商",
"state" : "closed"
} ]
}
2.8.6. 分页查询供应商
POST /{tenant_id}/merchant/vendorservice/vendors/query
2.8.6.1. 说明
分页查询供应商
2.8.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码必须大于等于0 |
integer (int32) |
Query |
page_size |
分页大小,查询分页大小必须在[1,1000]之间 |
integer (int32) |
Query |
sort_key |
排序字段:id,name,created,modified |
string |
Body |
filter |
过滤器 |
2.8.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.6.4. HTTP请求示例
请求 path
/string/merchant/vendorservice/vendors/query?desc=true&page=0&page_size=0
请求 body
{
"state" : "closed",
"key_like" : "2123"
}
2.8.6.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"vendors" : [ {
"id" : "00001",
"name" : "供应商",
"state" : "closed"
} ],
"page_count" : 10,
"page_size" : 10
}
2.8.7. 批量修改或保存供应商
POST /{tenant_id}/merchant/vendorservice/vendors/updates
2.8.7.1. 说明
批量修改或保存供应商
2.8.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
vendors |
供应商列表 |
2.8.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.8.7.4. HTTP请求示例
请求 path
/string/merchant/vendorservice/vendors/updates?operator=string
请求 body
{
"vendors" : [ {
"id" : "00001",
"name" : "供应商",
"state" : "closed"
} ]
}
2.8.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.9. 终端管理服务
2.9.1. 注册终端
POST /{tenant_id}/merchant/terminalservice/terminal/register
2.9.1.1. 说明
注册终端
2.9.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
2.9.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.9.1.4. HTTP请求示例
请求 path
/string/merchant/terminalservice/terminal/register?operator=string
请求 body
{
"source" : "qianfan",
"id" : "terminal008",
"name" : "终端008"
}
2.9.1.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.9.2. 获取终端授权信息
GET /{tenant_id}/merchant/terminalservice/terminal/{id}/auth
2.9.2.1. 说明
获取终端授权信息
2.9.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
终端ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
source |
来源 |
string |
2.9.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.9.2.4. HTTP请求示例
请求 path
/string/merchant/terminalservice/terminal/string/auth?source=string
2.9.2.5. HTTP响应示例
响应 200
{
"terminal" : {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"source" : "qianfan",
"id" : "terminal001",
"name" : "终端一号",
"state" : "applying"
},
"rest" : {
"user" : "string",
"password" : "string"
}
}
2.10. 门店服务
2.10.1. 创建门店信息
POST /{tenant_id}/merchant/storeservice/store
2.10.1.1. 说明
创建门店信息
2.10.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
store |
门店对象 |
2.10.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
default |
successful operation |
无内容 |
2.10.1.4. HTTP请求示例
请求 path
/string/merchant/storeservice/store?operator=string
请求 body
{
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
}
2.10.2. 查找指定租户的门店
GET /{tenant_id}/merchant/storeservice/store
2.10.2.1. 说明
查找指定租户的门店
2.10.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
id |
门店ID |
string |
2.10.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.2.4. HTTP请求示例
请求 path
/string/merchant/storeservice/store?id=string
2.10.2.5. HTTP响应示例
响应 200
{
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
}
2.10.3. 修改门店信息
POST /{tenant_id}/merchant/storeservice/store/{id}
2.10.3.1. 说明
修改门店信息
2.10.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
mod |
修改信息 |
2.10.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.3.4. HTTP请求示例
请求 path
/string/merchant/storeservice/store/string?operator=string
请求 body
{
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"circles" : [ "string" ],
"gid" : "string",
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"sap_code" : "string",
"business_hours" : "string",
"source_sys" : "HDPOS4",
"business_type" : "early_education",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
}
2.10.3.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.10.4. 查询单个门店详情
GET /{tenant_id}/merchant/storeservice/store/{id}
2.10.4.1. 说明
查询单个门店详情
2.10.4.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
id |
门店ID |
string |
Path |
tenant_id |
租户ID |
string |
2.10.4.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.4.4. HTTP请求示例
请求 path
/string/merchant/storeservice/store/string
2.10.4.5. HTTP响应示例
响应 200
{
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
}
2.10.5. 批量获得门店信息
GET /{tenant_id}/merchant/storeservice/stores
2.10.5.1. 说明
批量获得门店信息
2.10.5.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Query |
id |
门店ID集合 |
< string > array(multi) |
Query |
org_id |
企业ID |
string |
2.10.5.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.5.4. HTTP请求示例
请求 path
/{tenant_id}/merchant/storeservice/stores?id=string&org_id=string
2.10.5.5. HTTP响应示例
响应 200
{
"stores" : [ {
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
} ]
}
2.10.6. 定位附近的门店
GET /{tenant_id}/merchant/storeservice/stores/location
2.10.6.1. 说明
定位附近的门店
2.10.6.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
count |
附近门店数量, null 为空默认查询30家 |
integer (int32) |
Query |
lat |
纬度 |
number |
Query |
lng |
经度 |
number |
2.10.6.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.6.4. HTTP请求示例
请求 path
/string/merchant/storeservice/stores/location?lat=0.0&lng=0.0
2.10.6.5. HTTP响应示例
响应 200
{
"stores" : [ {
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
} ]
}
2.10.7. 分页查询门店
POST /{tenant_id}/merchant/storeservice/stores/query
2.10.7.1. 说明
分页查询门店
2.10.7.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 |
integer (int32) |
Query |
sort_key |
排序字段 |
string |
Body |
filter |
查询过滤器 |
2.10.7.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.7.4. HTTP请求示例
请求 path
/string/merchant/storeservice/stores/query?desc=true&page=0&page_size=0
请求 body
{
"id" : "1323230",
"states" : "opened",
"types" : "self",
"circles" : [ "string" ],
"store_ids" : [ "string" ],
"business_types" : [ "string" ],
"key_like" : "2134",
"latitude_start" : 65.0,
"latitude_end" : 89.0,
"longtitude_start" : 110.0,
"longtitude_end" : 120.0,
"modified_start" : "2018-09-07 00:00:00",
"modified_end" : "2018-09-07 00:00:00"
}
2.10.7.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"stores" : [ {
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
} ],
"page_count" : 10,
"page_size" : 10
}
2.10.8. 同步门店信息
POST /{tenant_id}/merchant/storeservice/updates
2.10.8.1. 说明
同步门店信息
2.10.8.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
stores |
门店列表 |
2.10.8.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.8.4. HTTP请求示例
请求 path
/string/merchant/storeservice/updates?operator=string
请求 body
{
"stores" : [ {
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
} ]
}
2.10.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.10.9. 获取用户授权门店
GET /{tenant_id}/merchant/storeservice/user/{user_id}/managestores
2.10.9.1. 说明
获取用户授权门店
2.10.9.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Path |
user_id |
用户ID |
string |
2.10.9.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.9.4. HTTP请求示例
请求 path
/string/merchant/storeservice/user/string/managestores
2.10.9.5. HTTP响应示例
响应 200
{
"stores" : [ {
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
} ]
}
2.10.10. 同步门店信息
POST /{tenant_id}/merchant/{tenant_id}/merchant/storeservice/syncStores
2.10.10.1. 说明
同步门店信息
2.10.10.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
stores |
门店列表 |
2.10.10.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.10.10.4. HTTP请求示例
请求 path
/string/merchant/string/merchant/storeservice/syncStores?operator=string
请求 body
{
"stores" : [ {
"id" : "2345456",
"name" : "阳光店",
"state" : "opened",
"type" : "self",
"location" : {
"province" : "福建",
"city" : "厦门",
"district" : "湖里",
"street" : "金山街道226",
"area" : "北区",
"lat" : 123.0,
"lng" : 64.0,
"province_code" : "365",
"city_code" : "01",
"district_code" : "13"
},
"contact" : {
"name" : "李飞",
"phone" : "18676778787"
},
"remark" : "第二个路口左转",
"gid" : "gid",
"distance" : 100.0,
"circles" : [ "string" ],
"region" : {
"id" : "2345456",
"name" : "阳光店",
"mgr_wechat_work_id" : "123456"
},
"tags" : [ {
"name" : "string"
} ],
"business_type" : "early_education",
"business_hours" : "10:00-12:00;14:00-21:00",
"main_image_url" : "string",
"image_urls" : [ "string" ],
"open_date" : "2018-06-01 00:00:00",
"sap_code" : "sapCode",
"source_sys" : "HDPOS4",
"tax_no" : "1245",
"account_no" : "1245",
"account_name" : "1245",
"customs_fields" : [ {
"id" : "area_id",
"name" : "地区代码",
"value" : "ET09"
} ],
"operation_manager" : {
"id" : "string",
"name" : "string"
},
"area_leader" : {
"id" : "string",
"name" : "string"
}
} ]
}
2.10.10.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
2.11. 设备服务
2.11.1. 查询设备分类
POST /{tenant_id}/merchant/devicecategoryservice/devicecategory/query
2.11.1.1. 说明
查询设备分类
2.11.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,必须大于等于0 |
integer (int32) |
Query |
page_size |
页大小,查询分页大小必须在[1,100]之间 |
integer (int32) |
Query |
sort_key |
排序字段:created,modified |
string |
Body |
filter |
过滤器 |
2.11.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.11.1.4. HTTP请求示例
请求 path
/string/merchant/devicecategoryservice/devicecategory/query?desc=true&page=0&page_size=0
请求 body
{
"id" : "323",
"code" : "comp",
"modified_start" : "2017-12-26 16:30:08",
"modified_end" : "2017-12-26 16:30:08"
}
2.11.1.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"page_count" : 10,
"page_size" : 10,
"device_categorys" : [ {
"id" : "212122211",
"name" : "电脑",
"code" : "computer",
"state" : "opened",
"levelNo" : "1",
"parent_id" : "1121515"
} ]
}
2.12. 机台型号服务
2.12.1. 查询机台型号
POST /{tenant_id}/merchant/machinecategoryservice/machinecategory/query
2.12.1.1. 说明
查询机台型号
2.12.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,必须大于等于0 |
integer (int32) |
Query |
page_size |
页大小,查询分页大小必须在[1,100]之间 |
integer (int32) |
Query |
sort_key |
排序字段:created,modified |
string |
Body |
filter |
过滤器 |
2.12.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.12.1.4. HTTP请求示例
请求 path
/string/merchant/machinecategoryservice/machinecategory/query?desc=true&page=0&page_size=0
请求 body
{
"id" : "323",
"code" : "dell",
"modified_start" : "2017-12-26 16:30:08",
"modified_end" : "2017-12-26 16:30:08"
}
2.12.1.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"page_count" : 10,
"page_size" : 10,
"machine_categorys" : [ {
"id" : "212122211",
"name" : "戴尔2代",
"code" : "dell2",
"state" : "opened",
"device_category_id" : "212122211"
} ]
}
2.13. 组织服务
2.13.1. 根据组织获取岗位列表
GET /{tenant_id}/merchant/wd/orgservice/org/{org_id}/postions
2.13.1.1. 说明
根据组织获取岗位列表
2.13.1.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
org_id |
组织ID |
string |
Path |
tenant_id |
租户ID |
string |
2.13.1.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.13.1.4. HTTP请求示例
请求 path
/string/merchant/wd/orgservice/org/string/postions
2.13.1.5. HTTP响应示例
响应 200
{
"postions" : [ {
"id" : "32345",
"name" : "会计",
"org_id" : "2345456"
} ]
}
2.13.2. 查询组织岗位
POST /{tenant_id}/merchant/wd/orgservice/orgs/postions/query
2.13.2.1. 说明
查询组织岗位
2.13.2.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,必须大于等于0 |
integer (int32) |
Query |
page_size |
页大小,查询分页大小必须在[1,100]之间 |
integer (int32) |
Query |
sort_key |
排序字段:created,modified |
string |
Body |
filter |
过滤器 |
2.13.2.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.13.2.4. HTTP请求示例
请求 path
/string/merchant/wd/orgservice/orgs/postions/query?desc=true&page=0&page_size=0
2.13.2.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"postions" : [ {
"id" : "32345",
"name" : "会计",
"org_id" : "2345456"
} ],
"page_count" : 10,
"page_size" : 10
}
2.13.3. 查询组织
POST /{tenant_id}/merchant/wd/orgservice/orgs/query
2.13.3.1. 说明
查询组织
2.13.3.2. 参数
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
是否倒序 |
boolean |
Query |
page |
页码,必须大于等于0 |
integer (int32) |
Query |
page_size |
页大小,查询分页大小必须在[1,100]之间 |
integer (int32) |
Query |
sort_key |
排序字段:created,modified |
string |
Body |
filter |
过滤器 |
2.13.3.3. 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 |
successful operation |
2.13.3.4. HTTP请求示例
请求 path
/string/merchant/wd/orgservice/orgs/query?desc=true&page=0&page_size=0
请求 body
{
"id" : "3323223",
"types" : "HQ",
"modified_begin" : "2017-12-26 16:30:08",
"modified_end" : "2017-12-26 16:30:08"
}
2.13.3.5. HTTP响应示例
响应 200
{
"total" : 100,
"page" : 1,
"orgs" : [ {
"id" : "2345456",
"name" : "测试早教中心",
"type" : "HQ",
"remark" : "备注",
"upgra_org" : "A14",
"business_type" : "ip"
} ],
"page_count" : 10,
"page_size" : 10
}
3. 定义
3.1. ActionResult
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.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 |
town |
样例 : |
string |
3.3. AdjustDetail
名称 | 说明 | 类型 |
---|---|---|
after |
调整后 |
string |
before |
调整前 |
string |
field |
调整字段 |
string |
3.4. AuthInfo
平台授权信息
名称 | 说明 | 类型 |
---|---|---|
app_key |
appKey |
string |
app_secret |
appSecret |
string |
platform_id |
平台id |
string |
session_key |
sessionKey |
string |
shop_id |
店铺id |
string |
3.5. BaseResponseAuthInfo
名称 | 说明 | 类型 |
---|---|---|
data |
响应数据 |
|
message |
响应信息 |
string |
success |
是否成功 |
boolean |
3.6. BaseResponsePrintInfo
名称 | 说明 | 类型 |
---|---|---|
data |
响应数据 |
|
message |
响应信息 |
string |
success |
是否成功 |
boolean |
3.7. BatchLockStockResponse
批量占货结果
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
details |
占货结果详情 |
< BatchLockStockResult > array |
lock_result |
总的占货结果,取值:none(未占货), lock_all(全部占货), lock_part(部分占货) |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.8. BatchLockStockResult
单据占货结果
名称 | 说明 | 类型 |
---|---|---|
lock_id |
占货ID |
string |
lock_result |
占货结果,取值:none(未占货), lock_all(全部占货), lock_part(部分占货) |
string |
order_id |
订单号 |
string |
outoflock_items |
缺货明细 |
< OutOfLockItem > array |
stock_state |
占货状态,取值:initial(未占货), locked(已占货), shipped(已发货), aborted(已作废) |
enum (initial, locked, shipped, aborted) |
3.9. BatchUnLockStockResponse
批量释放占货结果
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
errors |
样例 : |
< ErrorRecord > array |
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.10. Brand
品牌资料
名称 | 说明 | 类型 |
---|---|---|
id |
品牌标识 |
string |
name |
名称 |
string |
parentId |
父品牌ID |
string |
remark |
备注 |
string |
3.11. BrandFilter
品牌查询过滤器
名称 | 说明 | 类型 |
---|---|---|
ids |
品牌ID集合 |
< string > array |
key_like |
主键(id,name)类似于,常用于模糊搜索 |
string |
modified_end |
样例 : |
string (date-time) |
modified_start |
样例 : |
string (date-time) |
name_like |
名称类似于 |
string |
parent_id |
父品牌ID等于 |
string |
parent_id_is_null |
父节点是否空 |
boolean |
parent_ids |
父品牌ID集合 |
< string > array |
3.12. BrandPaging
品牌查询过滤器
名称 | 说明 | 类型 |
---|---|---|
brands |
品牌列表 |
< Brand > array |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
3.14. CRMInfoModificationRequest
名称 | 说明 | 类型 |
---|---|---|
score |
样例 : |
number |
3.15. CancelCarrierRequest
取消承运商配送请求对象
名称 | 说明 | 类型 |
---|---|---|
auto_dispatch |
是否自动调度到下一个承运商,默认为false |
boolean |
carrier_id |
承运商Id |
string |
reason |
原因 |
string |
3.16. CancelOrderRequest
取消订单请求
名称 | 说明 | 类型 |
---|---|---|
frontRtnId |
平台退单号 |
string |
reason |
取消原因 |
string |
type |
取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消)、refused(客户拒接) |
string |
3.17. CancelRtnRequest
取消退货请求对象
名称 | 说明 | 类型 |
---|---|---|
approve_state |
样例 : |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
operator_role |
样例 : |
string |
reason |
取消原因 |
string |
sellerInfo |
收货失败:原因/凭证 |
3.18. 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, pickup, pickupFailed, delivering, delivered, canceled) |
type |
承运商类型,取值范围:self(门店自送)、thirdparty(第三方配送)、express(快递配送) |
enum (self, thirdparty, express) |
3.19. CarrierDetail
承运商详情
名称 | 说明 | 类型 |
---|---|---|
action |
调整方式,recall(重新呼叫) |
string |
carrier_id |
承运商代码 |
string |
carrier_name |
承运商名称 |
string |
carrier_type |
承运方式,self(商家自送)、thirdparty(第三方配送)、express(快递配送) |
string |
deliveryman |
配送员名称 |
string |
deliveryman_id |
配送员Id |
string |
deliveryman_mobile |
配送员电话 |
string |
3.20. CarrierDetailInfo
更新承运商
名称 | 说明 | 类型 |
---|---|---|
carrier_id |
承运商代码 |
string |
carrier_name |
承运商名称 |
string |
waybill_id |
运单号 |
string |
3.22. CarrierModificationRequest
承运商修改请求对象
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
deliveryman_id |
配送员Id |
string |
deliveryman_mobile |
配送员电话 |
string |
deliveryman_name |
配送员名称 |
string |
merchant |
承运商家 |
|
type |
承运类型: self(门店自送)、thirdparty(平台配送)、express(快递配送) |
enum (self, thirdparty, express) |
3.23. CarrierOrderInfo
承运单历史
名称 | 说明 | 类型 |
---|---|---|
carrier_id |
承运商代码 |
string |
carrier_name |
承运商名称 |
string |
carrier_state |
承运状态 |
string |
created |
创建时间 |
string (date-time) |
deliveryman |
配送员姓名 |
string |
deliveryman_phone |
配送员手机号 |
string |
details |
运单轨迹信息 |
< OrderKdTraceDetail > array |
exception_remark |
异常说明 |
string |
modified |
最后一次修改时间 |
string (date-time) |
waybill_id |
运单号 |
string |
3.24. CarrierOrderResponse
订单配送单信息
名称 | 说明 | 类型 |
---|---|---|
carrier_orders |
承运单列表 |
< CarrierOrderInfo > array |
message |
样例 : |
string |
order_id |
订单号 |
string |
success |
默认值 : |
boolean |
waybill_id |
运单号 |
string |
3.25. CarrierProduct
名称 | 说明 | 类型 |
---|---|---|
itemTitle |
样例 : |
string |
quantity |
样例 : |
number |
skuId |
样例 : |
string |
3.26. CarrierRequest
更新订单承运商物流状态
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
delivery_id |
配送ID |
string |
exception_remark |
承运异常备注 |
string |
operator |
操作人 |
string |
print_info |
运单打印信息 |
|
re_calc_carrier |
是否重新计算承运 |
boolean |
tags |
标签,会给订单加上标签,已有的标签不会重复添加 |
< OrderTag > array |
waybill_id |
运单号 |
string |
3.27. CarrierWaybill
名称 | 说明 | 类型 |
---|---|---|
carrier |
样例 : IdName |
|
number |
样例 : |
string |
products |
样例 : |
< CarrierProduct > array |
weight |
样例 : MeasureUnit |
3.28. Category
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
parentId |
样例 : |
string |
remark |
样例 : |
string |
sap_code |
样例 : |
string |
3.29. CategoryFilter
名称 | 说明 | 类型 |
---|---|---|
ids |
样例 : |
< string > array |
key_like |
样例 : |
string |
modifiedEnd |
样例 : |
string (date-time) |
modifiedStart |
样例 : |
string (date-time) |
name_like |
样例 : |
string |
parentId |
样例 : |
string |
parent_id_is_null |
默认值 : |
boolean |
parent_ids |
样例 : |
< string > array |
3.30. CategoryPaging
名称 | 说明 | 类型 |
---|---|---|
categories |
样例 : |
< Category > array |
page |
样例 : |
integer (int32) |
page_count |
样例 : |
integer (int32) |
page_size |
样例 : |
integer (int32) |
total |
样例 : |
integer (int64) |
3.31. CheckPackageRequest
打包袋检查请求
名称 | 说明 | 类型 |
---|---|---|
skus |
打包袋商品,订单维度的打包袋商品列表全传 |
< CheckPackageSku > array |
3.32. CheckPackageResult
打包袋检查结果
名称 | 说明 | 类型 |
---|---|---|
message |
处理描述 |
string |
result |
处理结果:success-全部成功,part_success-部分成功(具体哪个失败需要识别skus)、fail-全部失败(不返回skus,失败原因直接查看message即可) |
string |
skus |
打包袋商品处理结果 |
< CheckPackageSkuResult > array |
3.33. CheckPackageSku
打包袋商品检查
名称 | 说明 | 类型 |
---|---|---|
qty |
打包袋商品数量 |
number |
sku_id |
打包袋商品货号 |
string |
3.34. CheckPackageSkuResult
打包袋检查结果
名称 | 说明 | 类型 |
---|---|---|
message |
样例 : |
string |
sku_id |
打包袋商品货号 |
string |
success |
默认值 : |
boolean |
3.35. CheckResult
检查结果
名称 | 说明 | 类型 |
---|---|---|
accepted |
检查是否通过 |
boolean |
message |
提示信息 |
string |
3.36. CodeName
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
name |
样例 : |
string |
3.37. ConfirmRefundRequest
确认退款请求对象
名称 | 说明 | 类型 |
---|---|---|
operator_role |
操作角色:platform(平台) |
string |
payments |
退款支付明细 |
< RefundPayment > array |
refundState |
退款状态,none(未退款),refunded(已退款) |
enum (none, refunded) |
3.38. Contact
用户联系方式
名称 | 说明 | 类型 |
---|---|---|
email |
邮箱 |
string |
fax |
传真 |
string |
mobile |
手机 |
string |
name |
姓名 |
string |
private_mobile |
加密手机号 |
string |
private_name |
脱敏名称 |
string |
telephone |
电话 |
string |
3.39. 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 |
3.40. CouponDetail
券信息
名称 | 说明 | 类型 |
---|---|---|
amount |
实际抵用金额 |
number |
code |
券号 |
string |
name |
券名称 |
string |
type |
cash(现金券)、discount(折扣券) |
string |
type_id |
券类型代码 |
string |
use_mode |
用券形式:pay(支付)、discount(优惠) |
string |
value |
折扣率或者现金面额 |
number |
3.41. CouponInfo
券信息
名称 | 说明 | 类型 |
---|---|---|
details |
券使用详情 |
< CouponDetail > array |
use_total |
券抵用总金额 |
number |
3.42. CustomField
自定义属性值
名称 | 说明 | 类型 |
---|---|---|
id |
自定义id |
string |
name |
自定义名称 |
string |
value |
自定义值 |
string |
3.44. DeliverDetail
签收详情
名称 | 说明 | 类型 |
---|---|---|
deliver_id |
送货人ID, 长度20字符 |
string |
deliver_name |
送货人姓名,长度32字符 |
string |
on_duty_emps |
当班的人员 |
< IdName > array |
payments |
付款方式详情 |
< DeliverPaymentDetail > array |
3.45. DeliverFailDetail
订单未投递成功详情
名称 | 说明 | 类型 |
---|---|---|
reason |
原因说明 |
string |
type |
原因类型,取值:refused(客户拒收),redeliver(未妥投) |
string |
3.46. DeliverFailReason
投递失败原因
名称 | 说明 | 类型 |
---|---|---|
reason |
原因说明 |
string |
type |
取值范围:refused(客户拒收)、redeliver(未妥投) |
string |
3.47. DeliverFailReasonList
原因列表对象
名称 | 说明 | 类型 |
---|---|---|
reasons |
原因列表 |
< DeliverFailReason > array |
3.48. DeliverInvoice
发票
名称 | 说明 | 类型 |
---|---|---|
details |
发票详情 |
< DeliverInvoiceDetail > array |
required |
是否需要发票 |
boolean |
3.49. DeliverInvoiceDetail
发票详情
名称 | 说明 | 类型 |
---|---|---|
amount |
发票金额 |
number |
content |
发票内容 |
string |
title |
发票抬头 |
string |
3.50. DeliverOrder
客户订单
名称 | 说明 | 类型 |
---|---|---|
cancel_type |
取消类型,取值为stationRefuse(门店拒接)、customerCancel(客户取消) |
string |
carrier_exception_remark |
承运异常信息 |
string |
carrier_id |
承运商代码,取值为self(门店自送)、thirdparty(第三方配送)等其他第三方承运商ID |
string |
carrier_name |
承运商名称 |
string |
carrier_state |
承运状态取值为initial(初始状态)、pickup(已揽件)、pickupFailed(揽件失败) |
string |
carrier_type |
承运商类型,取值为self(门店自送)、thirdparty(第三方配送)、express(快递配送) |
string |
create_time |
下单时间,格式是:yyyy-MM-dd HH:mm:ss |
string |
customer_info |
客户信息(收件人信息) |
string |
customer_note |
客户备注 |
string |
delivery_type |
送货方式,取值:送货上门|到店自提 |
string |
deliveryman |
配送员 |
string |
deliveryman_mobile |
配送员电话 |
string |
exception_info |
异常信息 |
string |
exception_type |
异常类型:取值范围:redeliver(未妥投)、refused(客户拒收)、timeout(超期未提)、stopped(发货后取消)、listingException(上架异常) |
string |
expected_delivered_date |
期望送达日期 |
string |
expected_delivered_time_slot |
期望送达时间时间段 |
string |
fault_tolerant_info |
容错信息,json字符串 |
string |
freight |
运费 |
number |
id |
订单号 |
string |
invoice |
发票 |
|
items |
商品详情 |
< DeliverOrderItem > array |
mobile |
客户电话(收货人电话) |
string |
multi_store |
是否支持跨店调度配送,默认false |
boolean |
packages |
订单打包袋列表 |
< OrderPackageBag > array |
payable_amount |
尾款 |
number |
payment_type |
支付方式的标题,取值:货到付款|在线支付 |
string |
private_customer_info |
客户脱敏信息(收件人脱敏信息) |
string |
private_mobile |
隐私号 |
string |
private_street |
脱敏地址 |
string |
quotas |
订单限定 |
< DeliverOrderQuota > array |
salechannel |
订单来源:取值范围:mdj(美到家)、jdo2o(京东到家)、tbkb(淘宝口碑) |
string |
salechannel_name |
平台名称:取值范围:美到家、京东到家、淘宝口碑 |
string |
ship_location |
发货地,取值范围,dc(库房发货)、store(门店直送) |
string |
ship_location_caption |
发货地显示标题 |
string |
ship_time |
发货时间,格式是:yyyy-MM-dd HH:mm:ss |
string |
shop_id |
商家ID |
string |
sign_time |
签收时间,格式是:yyyy-MM-dd HH:mm:ss |
string |
status |
订单状态,取值范围:confirming(待确认)、shipping(待发货)、storenotsigned(未签收)、storesigned(门店签收)、prepared(已上架)、delivering(已登记)、delivered(已妥投)、refused(客户拒收)、redeliver(未妥投)、canceled(已取消)、stopped(终止配送) |
string |
status_caption |
订单状态显示名称 |
string |
store_id |
门店ID |
string |
tags |
订单标签 |
< 订单标签 > array |
total |
订单金额 |
number |
type_caption |
订单类型说明,取值:一小时达|非一小时达 |
string |
waybill_id |
运单号 |
string |
3.51. DeliverOrderDecryptRequest
类型 : object
3.52. DeliverOrderDecryptResponse
名称 | 说明 | 类型 |
---|---|---|
customer_info |
客户信息(收件人信息) |
string |
receiver_mobile |
样例 : |
string |
receiver_street |
样例 : |
string |
3.53. DeliverOrderItem
客户订单商品明细
名称 | 说明 | 类型 |
---|---|---|
barcode |
条形码 |
string |
details |
原料明细 |
< DeliverOrderItemDetail > array |
fault_tolerant_info |
容错信息,json字符串 |
string |
fav_price |
优惠后单价 |
number |
fav_total |
优惠后金额 |
number |
image_url |
商品图片信息 |
string |
itemCustomField |
商品自定义属性 |
|
item_code |
货号 |
string |
item_name |
品名 |
string |
item_no |
序号 |
string |
orig_item |
原单商品信息 |
|
quantity |
数量 |
number |
spec |
规格 |
string |
tags |
商品行标签 |
< 订单标签 > array |
total |
金额 |
number |
unit_price |
单价 |
number |
3.54. DeliverOrderItemDetail
原料明细
名称 | 说明 | 类型 |
---|---|---|
id |
原料商品货号 |
string |
quantity |
原料商品数量 |
number |
ratio |
比例 |
number |
title |
名称 |
string |
3.55. DeliverOrderItemMod
商品修改详情
名称 | 说明 | 类型 |
---|---|---|
items |
商品修改详情 |
< DeliverOrderModItem > array |
payments |
付款方式详情 |
< DeliverPaymentDetail > array |
reason |
调整原因 |
string |
type |
调整类型:weight_diff(称重差异),stock_none(缺货) |
string |
3.56. DeliverOrderModItem
名称 | 说明 | 类型 |
---|---|---|
details |
调整明细 |
< DeliverOrderModItemDetail > array |
item_code |
货号 |
string |
item_no |
序号 |
string |
quantity |
数量 |
number |
3.57. DeliverOrderModItemDetail
名称 | 说明 | 类型 |
---|---|---|
after |
调整后 |
string |
before |
调整前 |
string |
field |
调整字段 |
string |
3.58. DeliverOrderOrigItem
原商品行信息
名称 | 说明 | 类型 |
---|---|---|
item_code |
货号 |
string |
item_name |
品名 |
string |
qpc |
规格 |
string |
quantity |
数量 |
number |
unit |
单位 |
string |
3.59. DeliverOrderPaging
订单分页结果
名称 | 说明 | 类型 |
---|---|---|
paging |
分页对象 |
|
records |
客户订单列表 |
< DeliverOrder > array |
3.60. DeliverOrderPrintData
订单打印数据
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
parts |
每联的打印数据 |
< string > array |
time |
打印数据的生成时间,格式是:yyyy-MM-dd HH:mm:ss |
string |
3.61. DeliverOrderPrintDataList
订单打印数据列表
名称 | 说明 | 类型 |
---|---|---|
orders |
订单打印数据列表 |
< DeliverOrderPrintData > array |
3.62. DeliverOrderQuota
订单限定
名称 | 说明 | 类型 |
---|---|---|
action |
操作:expect_shipping |
string |
action_name |
操作名称:期望拣货完成时间 |
string |
remark |
备注 |
string |
time |
日期 |
string (date-time) |
3.63. DeliverPaymentDetail
付款方式详情
名称 | 说明 | 类型 |
---|---|---|
amount |
金额 |
number |
card_number |
卡号 |
string |
name |
支付方式名称 |
string |
need_cash |
是否需要缴款 |
boolean |
store_pay |
是否门店收款/付款 |
boolean |
3.64. DeliverRequest
配送情况
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商,非空时将更新 |
|
carrier_note |
承运商备注 |
string |
delivery_state |
配送状态,取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投) |
enum (none, shipped, signed, refused, redeliver) |
front_modified |
平台订单最后修改时间,非空时将更新,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_state |
平台状态 |
string |
operation |
门店作业:accept(接单)、shipping(集货)、recheck(复核)、handover(交接)、cancelShipping(取消集货) |
string |
operation_state |
作业状态 |
string |
operator |
执行操作人 |
string |
print |
是否打印 |
boolean |
selftake_confirmed |
自提确认 |
boolean |
ship_id |
发货码 |
string |
ship_time |
发货时间,传入的话如果本次操作的是发货,则日志的time将记录该时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
waybill_id |
承运单号,非空时将更新 |
string |
3.65. Delivery
配送信息
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
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(门店发货,快递配送) |
enum (wrhShipCarrierDeli, wrhShipStationDeli, stationShipStationDeli, stationShipCarrierDeli) |
ship_id |
发货码 |
string |
ship_mode |
发货方式,wrhShip(仓库发货),stationShip(门店发货) |
enum (wrhShip, stationShip) |
state |
配送状态,默认取值为:none。取值范围:none(未配送)、shipped(已发货)、signed(已妥投)、refused(已拒收)、redeliver(重投) |
enum (none, shipped, signed, refused, redeliver) |
station |
配送门店 |
|
type |
交付方式,默认取值:deliver。取值范围:selftake(到店自提)、deliver(送货上门) |
enum (selftake, deliver) |
waybill_id |
运单号 |
string |
waybill_print_info |
运单打印信息 |
|
waybills |
样例 : |
< Waybill > array |
wrh_order_id |
仓库单号 |
string |
3.66. DeliveryTraceResponse
订单配送踪迹
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
deliveryman |
配送员姓名 |
string |
deliveryman_phone |
配送员手机号 |
string |
latitude |
纬度 |
number |
longitude |
经度 |
number |
message |
样例 : |
string |
order_id |
鼎力云订单号 |
string |
pre_delivery_time |
预计送达时间 |
string (date-time) |
success |
默认值 : |
boolean |
trace_url |
跟踪连接 |
string |
traces |
样例 : |
< OrderKdTraceDetail > array |
waybill_id |
承运单号 |
string |
3.67. DiscountSettleDetail
优惠结算详情
名称 | 说明 | 类型 |
---|---|---|
discount |
承担优惠金额 |
number |
role |
优惠承担方 |
string |
3.68. DiscountShareDetail
整合优惠结算详情
名称 | 说明 | 类型 |
---|---|---|
discount |
承担优惠金额 |
number |
type |
类型 |
string |
3.69. EncryptDetail
加密信息
名称 | 说明 | 类型 |
---|---|---|
encrypt_mobile |
样例 : |
string |
encrypt_name |
样例 : |
string |
encrypt_street |
样例 : |
string |
encrypt_telephone |
样例 : |
string |
secretKey |
样例 : |
string |
3.70. ErrorRecord
错误记录
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
id |
样例 : |
string |
message |
样例 : |
string |
3.71. ExtraField
自定义字段
名称 | 说明 | 类型 |
---|---|---|
id |
自定义id |
string |
name |
自定义名称 |
string |
value |
自定义值 |
string |
3.72. FavDetail
优惠详情
名称 | 说明 | 类型 |
---|---|---|
amount |
优惠金额 |
number |
factor |
优惠参与信息 |
|
id |
优惠ID |
string |
merchant_act_id |
商家活动ID |
string |
prom_cls |
促销来源类型 |
string |
remark |
优惠说明 |
string |
settle_details |
优惠结算分摊详情 |
< DiscountSettleDetail > array |
share_details |
多方整合优惠分摊信息 |
< DiscountShareDetail > array |
type |
优惠类型 |
string |
voucher_code |
凭证代码 |
string |
3.73. FavFactor
优惠参与信息
名称 | 说明 | 类型 |
---|---|---|
qty |
本商品参与促销总数量 |
number |
sku_items |
来源商品参与优惠明细 |
< FavFactorItem > array |
total |
本商品参与促销总金额 |
number |
3.74. FavFactorItem
参与优惠商品明细
名称 | 说明 | 类型 |
---|---|---|
amount |
参与促销金额 |
number |
item_id |
行标识 |
string |
item_no |
行号 |
integer (int32) |
qty |
参与促销数量 |
number |
3.75. FrontItem
平台商品行信息
名称 | 说明 | 类型 |
---|---|---|
item_id |
平台订单行ID |
string |
sku_id |
平台SKU ID |
string |
spec |
平台商品属性(口味), 多个属性以;或者/分隔显示 |
string |
spec2 |
平台商品的规格,形如:500g、500ml |
string |
station_id |
平台站点Id |
string |
station_type |
平台站点类型 |
string |
unit |
单位 |
string |
3.76. 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) |
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,赔付订单 |
|
platform |
平台,其中:自接入平台需要提供约定平台id,申请在鼎力云开通。 |
|
platform_group |
平台分组标识 |
string |
state |
状态 |
string |
station_id |
平台门店代码 |
string |
station_order_no |
平台门店订单序号 |
string |
third_order_id |
第三方OMS系统单号,如巨益、聚水潭等 |
string |
3.77. 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) |
platform |
平台 |
|
platform_group |
平台分组标识 |
string |
rtn_id |
平台退货单号 |
string |
state |
平台退换货状态 |
string |
station_id |
平台门店代码 |
string |
third_rtn_id |
第三方OMS系统售后单号,如巨益、聚水潭等 |
string |
type |
平台类型 |
3.78. IdName
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
3.79. IdNameRange
名称 | 说明 | 类型 |
---|---|---|
id_names |
样例 : |
< IdName > array |
limit |
默认值 : |
boolean |
3.80. IdWrapper
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
3.81. IdsWrapper
名称 | 说明 | 类型 |
---|---|---|
ids |
样例 : |
< string > array |
3.82. ImageDetail
名称 | 说明 | 类型 |
---|---|---|
image_base64 |
上传的图片base64编码字符串数据 |
string |
name |
图片名称,长度不能超过64 |
string |
sort |
图片的序号,序号越小排在越前面,默认值为1 |
integer (int32) |
url |
图片url |
string |
3.83. InputCode
输入码
名称 | 说明 | 类型 |
---|---|---|
code |
条码 |
string |
qpc |
规格 |
number |
qpc_str |
规格说明 |
string |
type |
输入码类型 |
string |
unit |
单位 |
string |
weight |
重量 |
number |
3.84. Invoice
发票信息
名称 | 说明 | 类型 |
---|---|---|
apply_qrcode |
开票二维码 |
string |
details |
发票详情 |
< InvoiceDetail > array |
error_reason |
开票失败原因 |
string |
required |
是否需要发票 |
boolean |
result |
开票结果 |
string |
3.85. InvoiceDetail
发票详情
名称 | 说明 | 类型 |
---|---|---|
amount |
发票金额 |
number |
buyer_tax_code |
购买方税号 |
string |
check_code |
校验码 |
string |
content |
发票内容 |
string |
email |
发票接收邮箱 |
string |
print_number |
打印单号 |
string |
remark |
发票备注 |
string |
securaty_code |
密码 |
string |
tax |
税费 |
number |
taxer_id |
纳税人识别号 |
string |
time |
开票日期 |
string (date-time) |
title |
发票抬头 |
string |
title_type |
抬头类型,取值范围:person(个人)、company(单位) |
enum (person, company) |
type |
发票类型,取值范围:plain(普通发票)、VAT(增值税专用发票) |
enum (plain, VAT) |
url |
电子发票图片地址 |
string |
3.86. ItemCustomField
商品自定义属性
名称 | 说明 | 类型 |
---|---|---|
item_code |
商品货号 |
string |
nfield1 |
数值自定义属性 |
number |
nfield2 |
数值自定义属性 |
number |
sfield1 |
字符换自定义属性 |
string |
sfield2 |
字符换自定义属性 |
string |
sfield3 |
字符换自定义属性 |
string |
sfield4 |
字符换自定义属性 |
string |
sfield5 |
字符换自定义属性 |
string |
sfield6 |
字符换自定义属性 |
string |
sfield7 |
字符换自定义属性 |
string |
sfield8 |
字符换自定义属性 |
string |
3.87. ItemPromotion
商品行促销信息
名称 | 说明 | 类型 |
---|---|---|
apported_discount_amount |
整单优惠分摊金额 |
number |
discount_amount |
商品优惠金额 |
number |
favs |
优惠详情 |
< FavDetail > array |
3.88. JuYiSyncOrderCallback
名称 | 说明 | 类型 |
---|---|---|
message |
同步失败原因 |
string |
order_id |
中台订单号,巨益交易号 |
string |
success |
同步结果,成功:true,失败:false |
boolean |
3.89. JuYiSyncRtnCallback
名称 | 说明 | 类型 |
---|---|---|
message |
同步失败原因 |
string |
rtn_id |
中台退单号,巨益外部单号 |
string |
success |
同步结果,成功:true,失败:false |
boolean |
3.90. JuyiInvHst
名称 | 说明 | 类型 |
---|---|---|
bussiness_type |
业务类型 |
string |
change_qty |
库存变更数量 |
number |
flow_id |
流水号,流水号唯一 |
string |
out_sku_id |
外部编码,巨益侧铺货关系的规格编码 |
string |
out_wrh_id |
外部仓库ID(虚拟仓库ID) |
string |
out_wrh_name |
外部仓库名称(虚拟仓库名称) |
string |
relation_id |
关联单据ID |
string |
sku_id |
商品货号,巨益侧铺货关系平台规格ID |
string |
time |
变更时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
3.91. JuyiOrderShipRequest
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商信息 |
|
platform_id |
平台编码 |
string |
shop_id |
店铺编码 |
string |
trade_id |
巨益交易号 |
string |
waybill_id |
快递单号 |
string |
wrh |
发货实体仓库 |
3.92. JuyiRtnInterceptRequest
名称 | 说明 | 类型 |
---|---|---|
message |
拦截失败原因 |
string |
platform_id |
平台编码 |
string |
rtn_id |
退单ID |
string |
shop_id |
店铺编码 |
string |
success |
拦截结果 |
boolean |
3.93. JuyiRtnReceiveRequest
名称 | 说明 | 类型 |
---|---|---|
platform_id |
平台编码 |
string |
rtn_id |
退单ID |
string |
shop_id |
店铺编码 |
string |
wrh |
收货实体仓库 |
3.94. JuyiSkuInv
名称 | 说明 | 类型 |
---|---|---|
out_sku_id |
外部编码,巨益侧铺货关系的规格编码 |
string |
qty |
剩余可用数量 |
number |
sku_id |
商品货号,巨益侧铺货关系平台规格ID |
string |
3.95. JuyiSkuInvsRequest
名称 | 说明 | 类型 |
---|---|---|
invs |
更新库存记录,不能为空,最大100条 |
< JuyiSkuInv > array |
platform_id |
平台编码 |
string |
shop_id |
店铺编码 |
string |
3.96. JuyiUploadInvHstRequest
名称 | 说明 | 类型 |
---|---|---|
inv_hsts |
库存流水记录,不能为空,最大100条 |
< JuyiInvHst > array |
platform_id |
平台编码 |
string |
shop_id |
店铺编码 |
string |
3.97. KickBackResultRequest
仓库踢回结果请求
名称 | 说明 | 类型 |
---|---|---|
msg |
踢回失败说明 |
string |
success |
踢回结果 |
boolean |
3.99. LockStockResult
占货结果
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
lock_id |
占货ID |
string |
lock_result |
占货结果,取值:none(未占货), lock_all(全部占货), lock_part(部分占货) |
string |
message |
样例 : |
string |
stock_state |
占货状态,取值:initial(未占货), locked(已占货), shipped(已发货), aborted(已作废) |
enum (initial, locked, shipped, aborted) |
success |
默认值 : |
boolean |
3.101. MeasureUnit
名称 | 说明 | 类型 |
---|---|---|
unit |
样例 : |
string |
value |
样例 : |
number |
3.102. MemberInfo
积分信息
名称 | 说明 | 类型 |
---|---|---|
card_no |
实体卡卡号 |
string |
member_gid |
会员资料内码 |
string |
member_grade |
会员等级 |
string |
member_id |
会员卡卡号 |
string |
outer_member_id |
外部会员id |
string |
3.104. ModifyPackageRequest
打包袋修改请求
名称 | 说明 | 类型 |
---|---|---|
skus |
打包袋商品,按顺序全量覆盖 |
< ModifyPackageSku > array |
3.105. ModifyPackageSku
打包袋商品修改
名称 | 说明 | 类型 |
---|---|---|
qty |
打包袋商品数量 |
number |
sku_id |
打包袋商品货号 |
string |
3.106. Option
文案选项
名称 | 说明 | 类型 |
---|---|---|
caption |
说明 |
string |
extra |
扩展信息 |
|
type |
类型:remind(催单)、comment(评论)、rtn.receivefailreason(退单收货失败原因)、carrier(承运商) |
string |
value |
回复文案 |
string |
3.107. OptionExtra
扩展条件
名称 | 说明 | 类型 |
---|---|---|
auto |
是否开启自动回复 |
boolean |
conditions |
自动回复条件 |
< OptionExtraCondition > array |
3.108. OptionExtraCondition
评价等级条件
名称 | 说明 | 类型 |
---|---|---|
satisfie_level |
评价等级(好评:high;中评:medium;差评:low;) |
string |
3.110. 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(金额异常)、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 |
is_split |
拆单标识。为true时,标识该订单是拆单后的订单 |
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 |
支付信息 |
|
print_bills |
打印单据 |
< PrintBill > array |
promotion |
订单促销 |
|
ptm_package_discount |
平台包装优惠信息 |
number |
quotas |
订单指标 |
< OrderQuota > array |
real_total |
实际销售商品金额(扣除所有优惠),等于items中pay_amount之和 |
number |
reissue_reason |
补发原因 |
string |
responsible_party |
补发责任方 |
string |
salesman |
推销员 |
|
seller_note |
商家备注 |
string |
selttle_commission |
平台佣金 ,弃用,请使用settle_commission |
number |
settle_amount |
平台的结算金额,平台结算金额=客户实付金额+平台优惠补贴, 为空等于amount |
number |
settle_commission |
平台佣金 |
number |
settle_freight |
平台结算运费 |
number |
settle_info |
对账信息 |
|
shop |
平台商家,平台侧的商家,非门店 |
|
shop_amount |
商家货款金额 |
number |
shop_package_discount |
商家包装优惠金额 |
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) |
stock_state |
占货状态 |
enum (initial, lockPart, lockAll, none) |
suspend_info |
挂起信息 |
|
tags |
订单标签 |
< OrderTag > array |
user_number |
使用人数,餐具数量 |
integer (int32) |
weight |
订单重量,单位:g |
number |
wrh_id |
发货仓库编号 |
string |
wrh_name |
发货仓库名称 |
string |
wrh_state |
仓库状态 |
enum (initial, notified, applyKickBack, shipped) |
3.111. OrderActionApplyItem
订单申请明细对象
名称 | 说明 | 类型 |
---|---|---|
item_code |
订单商品行货号 |
string |
order_item_no |
订单商品行行号,帮助定位退货商品行 |
string |
quantity |
订单商品行数量 |
number |
3.112. OrderActionApplyRequest
订单申请请求对象
名称 | 说明 | 类型 |
---|---|---|
items |
申请明细 |
< OrderActionApplyItem > array |
reason |
取消原因 |
string |
3.113. 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) |
3.114. 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 |
3.115. OrderApplyRtnRequest
订单申请退款
名称 | 说明 | 类型 |
---|---|---|
apply_type |
申请类型:weight_diff(缺重退差),stock_none(缺货退款) |
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) |
3.116. OrderBatchLockRequest
批量占货参数
名称 | 说明 | 类型 |
---|---|---|
allow_part |
允许部分单据占货,默认false |
boolean |
orders |
占货单据列表 |
< OrderDataParam > array |
3.117. OrderBatchUnLockRequest
批量释放占货
名称 | 说明 | 类型 |
---|---|---|
unlocks |
样例 : |
< OrderUnlock > array |
3.118. OrderCheckItem
订单检查商品行
名称 | 说明 | 类型 |
---|---|---|
item_no |
订单行号 |
string |
item_title |
商品标题 |
string |
pay_amount |
实付金额 |
number |
quantity |
数量 |
number |
sku_id |
商品标识(货号) |
string |
total |
商品金额,等于unit_price * quantity |
number |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
3.119. 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 |
3.120. 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 |
建议承运商 |
3.121. 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) |
3.122. OrderCommentDetail
名称 | 说明 | 类型 |
---|---|---|
labels |
评价标签 |
< string > array |
score |
评价得分 |
integer (int32) |
type |
评价类型 |
string |
3.123. OrderCommentFilter
名称 | 说明 | 类型 |
---|---|---|
commentTimeEnd |
评价时间结束,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
commentTimeStart |
评价时间开始,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_end |
创建时间截止于 |
string (date-time) |
created_start |
创建时间起始于 |
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 |
processStateIn |
状态存在 |
< string > array |
processStateNotIn |
状态不存在 |
< string > array |
satisfieLevel |
满意程度(low、medium、high) |
string |
stationIdEq |
门店ID |
string |
tagEq |
标签 |
string |
tagHas |
标签包含……必须完全包含 |
< string > array |
tagIn |
标签在……中,包含一个就行 |
< string > array |
3.124. OrderCommentPaging
订单评价分页对象
名称 | 说明 | 类型 |
---|---|---|
comments |
订单评价列表 |
< OrderComment > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总条数 |
integer (int64) |
3.126. OrderDataParam
占货参数
名称 | 说明 | 类型 |
---|---|---|
items |
明细 |
< OrderDataItem > array |
lock_type |
占货类型:(pre_lock)预占、(lock)在单库存 |
string |
order_id |
订单号 |
string |
platform_id |
平台id |
string |
request_id |
请求标识ID,识别一次占货请求 |
string |
shop_id |
平台商家id |
string |
shop_name |
平台商家名称 |
string |
store_id |
门店id |
string |
store_name |
门店名称 |
string |
3.127. OrderEsPaging
es订单分页对象
名称 | 说明 | 类型 |
---|---|---|
orders |
订单列表 |
< Order > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
scrollId |
游标id |
string |
total |
总条数 |
integer (int64) |
3.128. OrderException
名称 | 说明 | 类型 |
---|---|---|
caption |
异常标题 |
string |
code |
异常代码 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
remark |
异常说明 |
string |
time |
异常时间 |
string (date-time) |
3.129. OrderExtraInfo
名称 | 说明 | 类型 |
---|---|---|
delivery_content |
配送评价内容 |
string |
next_content |
追加评价内容 |
string |
next_image_urls |
配送评价图片 |
< string > array |
next_time |
追加评价时间 |
string (date-time) |
3.130. OrderFilter
订单过滤器
名称 | 说明 | 类型 |
---|---|---|
address_contains |
地址包含 |
string |
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_merchant_id |
承运商家ID |
string |
carrier_states |
承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
< enum (initial, created, dispatched, createdFailed, 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 |
customerMobile |
客户手机号 |
string |
customer_id |
客户代码 |
string |
customer_name |
客户姓名 |
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 |
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_third_order_id_eq |
平台第三方订单号等于 |
string |
handover_operator |
交接人 |
string |
hasInvoice |
是否拥有发票 |
boolean |
has_billing |
是否有凭证信息,false搜索没有、true搜索有 |
boolean |
has_billing_exception |
是否凭证异常 |
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 |
is_split |
默认值 : |
boolean |
member_grade_eq |
会员等级等于 |
string |
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_ids |
订单号 |
< string > array |
package_count_gt |
购物袋数量大于 |
number |
payment_states |
付款状态,取值范围:notPay(未付款)、earnest(已付定金)、paid(已付全款) |
< enum (notPay, earnest, paid) > array |
payment_types |
付款类型,取值范围:cod(货到付款)、online(在线支付)、earnest(预售) |
< enum (cod, online, earnest) > array |
platform_group_eq |
平台分组等于(O2O、EC) |
string |
platform_id |
平台ID |
string |
platform_ids |
平台ID |
< string > array |
prePage |
上一页 |
integer (int32) |
pre_type |
预处理类型:normal:正常,dsd:定时达 |
string |
product_contains |
商品包括 |
string |
receiver_mobile |
收货人手机号码 |
string |
receiver_mobile_like |
收货人手机号码模糊搜索 |
string |
receiver_name |
收货人 |
string |
refund_state |
退款状态,取值范围:none(未退款)、refunded(已退款) |
string |
salesman_id_eq |
分销员代码等于 |
string |
selftake_code |
提货码 |
string |
ship_mode |
发货方式 |
string |
shipping_operator |
集货人 |
string |
shop_id |
商家ID 等于 |
string |
shop_id_in |
商家ID 包含 |
< string > array |
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 |
stock_state |
占货状态 |
enum (initial, lockPart, lockAll, none) |
suspended |
是否挂起 |
boolean |
type_eq |
订单类型 |
string |
type_id_eq |
订单类型ID |
string |
waybill_id |
运单号 |
string |
wrh_id_eq |
仓库代码 等于 |
string |
wrh_id_in |
仓库代码 包含 |
< string > array |
3.131. OrderItem
商品行
名称 | 说明 | 类型 |
---|---|---|
apported_discount_amount |
整单优惠分摊金额,如:订单满减,整单分摊到明细 |
number |
barcode |
商品条码 |
string |
consume_scores |
消费积分 |
number |
details |
原料商品明细 |
< OrderItemDetail > array |
discount_amount |
商品优惠金额,如:商品立减优惠 |
number |
extra_info |
扩展信息,json格式。如果存在 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_stock_state |
占货状态 |
enum (initial, lockPart, lockAll, none) |
item_title |
商品标题 |
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_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 |
relation_item_id |
关联商品行号 |
string |
relation_sale_order_id |
关联的销售订单 |
string |
relation_sku_id |
关联商品货号 |
string |
salesman |
推销员 |
|
salesman_type |
售卖员类型 |
string |
settle_discountAmount |
平台优惠金额 |
number |
settle_price |
平台结算价格,为空等于售价 |
number |
settle_total |
平台结算金额=客户实付商品金额+平台优惠补贴 |
number |
settle_unit |
结算单位 |
|
shop_price |
商家货款价格 |
number |
shop_total |
商家货款金额 |
number |
sku_id |
商品标识(货号) |
string |
spec |
商品规格 |
string |
tags |
标签 |
< OrderItemTag > array |
total |
商品金额,等于unit_price * quantity |
number |
unit |
单位:个、份等 |
string |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
uuid |
样例 : |
string |
weight |
单件重量,单位g |
number |
3.132. OrderItemChange
换货明细
名称 | 说明 | 类型 |
---|---|---|
change_items |
目标商品行 |
< OrderItem > array |
items |
来源商品行 |
< OrderItem > array |
reason |
原因 |
string |
3.133. OrderItemDetail
原料商品信息
名称 | 说明 | 类型 |
---|---|---|
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 |
title |
名称 |
string |
upc |
国际码 |
string |
3.134. OrderItemLogistics
订单明细物流信息
名称 | 说明 | 类型 |
---|---|---|
logistics_code |
样例 : |
string |
qty |
样例 : |
number |
sku_id |
样例 : |
string |
3.135. OrderItemRtnApply
退款申请明细对象
名称 | 说明 | 类型 |
---|---|---|
item_no |
订单行号 |
string |
quantity |
数量 |
number |
refund_amount |
退款金额 |
number |
sku_id |
商品标识 |
string |
weight |
重量,单位g |
number |
3.137. OrderKdTrace
订单快递跟踪
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
code |
样例 : |
string |
deliveryman |
配送员姓名 |
string |
deliveryman_phone |
配送员手机号 |
string |
details |
订单快递跟踪详情 |
< OrderKdTraceDetail > array |
latitude |
纬度 |
number |
longitude |
经度 |
number |
message |
样例 : |
string |
pre_delivery_time |
预计送达时间 |
string (date-time) |
state |
承运状态:initial(初始状态)、created(已下单)、 dispatched(已派单)、createdFailed(下单失败)、pickup(已揽件)、pickupFailed(揽件失败)、 delivering(配送中)、delivered(配送完成)、canceled(已取消) |
enum (initial, created, dispatched, createdFailed, pickup, pickupFailed, delivering, delivered, canceled) |
success |
默认值 : |
boolean |
trace_url |
跟踪连接 |
string |
waybill_id |
快递单号 |
string |
3.138. OrderKdTraceDetail
订单快递跟踪详情
名称 | 说明 | 类型 |
---|---|---|
address |
地点 |
string |
message |
内容 |
string |
status |
状态 |
string |
time |
时间 |
string (date-time) |
3.140. OrderList
订单集合对象
名称 | 说明 | 类型 |
---|---|---|
empty |
默认值 : |
boolean |
orders |
订单列表 |
< Order > array |
3.141. OrderLog
订单日志
名称 | 说明 | 类型 |
---|---|---|
action |
操作 |
string |
action_caption |
操作标题 |
string |
message |
操作说明 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
rtn_id |
退换货单号 |
string |
tenant_id |
租户ID |
string |
time |
操作时间 |
string (date-time) |
3.142. 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 |
3.143. OrderPackageBag
订单打包袋
名称 | 说明 | 类型 |
---|---|---|
amount |
打包袋金额 |
number |
barcode |
条码 |
string |
qty |
数量 |
number |
sku_id |
货号 |
string |
sku_name |
打包袋名称 |
string |
3.144. OrderPackageInfo
订单打包信息
名称 | 说明 | 类型 |
---|---|---|
details |
包装明细 |
< PackageDetail > array |
package_type |
指定打包袋类型:保温袋、纸袋、PLA环保袋 |
string |
required |
是否需要打包袋 |
boolean |
type |
类型 |
string |
3.145. OrderPaging
订单分页对象
名称 | 说明 | 类型 |
---|---|---|
orders |
订单列表 |
< Order > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总条数 |
integer (int64) |
3.146. OrderPreSlot
订单预计送达信息
名称 | 说明 | 类型 |
---|---|---|
pre_date |
预计送达日期 |
string |
pre_ends |
预计送达时间 |
< string > array |
3.148. OrderQuota
订单指标
名称 | 说明 | 类型 |
---|---|---|
action |
操作:expect_shipping |
string |
action_name |
操作名称:期望拣货完成时间 |
string |
remark |
备注 |
string |
time |
日期 |
string (date-time) |
3.149. OrderRefund
退款申请
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
payment_details |
退款付款明细 |
< DeliverPaymentDetail > array |
products |
退款商品行 |
< RefundProduct > array |
refundReq_id |
申请单号 |
string |
refund_total |
退款金额 |
number |
3.150. OrderRefundList
退款申请列表(财务同意,未退款的仅退款申请列表)
名称 | 说明 | 类型 |
---|---|---|
values |
退款申请列表 |
< OrderRefund > array |
3.151. OrderReissueRequest
订单补发请求
名称 | 说明 | 类型 |
---|---|---|
receiver |
收货信息 |
|
reissue_order_items |
补发商品明细 |
< ReissueOrderItem > array |
reissue_reason |
补发原因 |
string |
responsible_party |
责任方,carrier代表承运商责任 |
string |
seller_note |
备注说明 |
string |
source_order_id |
来源订单号 |
string |
3.152. OrderReissueResponse
补发订单响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
样例 : |
string |
success |
默认值 : |
boolean |
3.153. 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) |
3.154. 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 |
3.155. OrderRemindPaging
催单分页对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
reminds |
订单列表 |
< OrderRemind > array |
total |
总条数 |
integer (int64) |
3.156. OrderSelftakeCheckRequest
自提检查请求对象
名称 | 说明 | 类型 |
---|---|---|
front_order_id |
平台订单号 |
string |
platform_id |
平台ID |
string |
selftake_code |
自提码 |
string |
store_id |
门店ID |
string |
3.157. OrderSelftakeCheckResponse
自提检查返回结果对象
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
订单号 |
string |
success |
默认值 : |
boolean |
3.159. OrderSettleDiscount
对账优惠信息
名称 | 说明 | 类型 |
---|---|---|
amount |
优惠金额 |
number |
details |
优惠结算详情 |
< DiscountSettleDetail > array |
scope |
优惠范围 |
string |
3.160. OrderSettleInfo
对账信息
名称 | 说明 | 类型 |
---|---|---|
discounts |
优惠结算明细 |
< OrderSettleDiscount > array |
settle_date |
账单日期 |
string (date-time) |
station_settle_mode |
门店分账模式:online(线上分账模式)、offline(线下分账模式) |
string |
3.161. OrderStoreMod
订单下单门店
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
order_store |
下单门店 |
3.162. OrderStoreModError
修改订单下单门店失败明细
名称 | 说明 | 类型 |
---|---|---|
id |
订单号 |
string |
message |
原因 |
string |
3.163. OrderStoreModRequest
修改订单下单门店
名称 | 说明 | 类型 |
---|---|---|
mods |
订单修改列表,一次修改记录不能超过100 |
< OrderStoreMod > array |
3.164. OrderStoreModResponse
修改订单下单门店响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
errors |
失败明细,如果sucess=false,errors为空表示整体失败,否则errors记录具体失败明细 |
< OrderStoreModError > array |
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.165. OrderSubmitResponse
订单新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
order_id |
样例 : |
string |
success |
默认值 : |
boolean |
3.167. OrderUnlock
取消占货参数
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
reason |
释放原因 |
string |
3.169. PackageDetail
打包商品明细
名称 | 说明 | 类型 |
---|---|---|
amount |
打包袋金额 |
number |
qty |
打包袋数量 |
number |
sku_id |
打包袋ID |
string |
sku_name |
打包袋名称 |
string |
3.170. PackageInfo
商品打包信息
名称 | 说明 | 类型 |
---|---|---|
packageName |
打包袋名称 |
string |
quantity |
包装盒数量 |
number |
sale_mode |
打包袋销售模式:normal单独收费、binding.sku捆绑商品收费 |
string |
thermosphere |
温层 |
string |
total |
包装费用 |
number |
3.171. Packing
包装规格
名称 | 说明 | 类型 |
---|---|---|
quantity |
包装数量,默认1 |
number |
spec |
包装规格说明,比如1*8,默认1*1 |
string |
spec2 |
包装规格 |
string |
unit |
单位 |
string |
3.172. Paging
分页对象
名称 | 说明 | 类型 |
---|---|---|
has_more |
是否还有更多数据未被发现 |
boolean |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
record_count |
查询结果集总记录数 |
integer (int64) |
3.174. Payment
支付信息
名称 | 说明 | 类型 |
---|---|---|
amount |
订单应付总金额(包含邮费) |
number |
cod_amount |
货到付款金额 |
number |
details |
支付详情 |
< PaymentDetail > array |
earnest_amount |
订金金额 |
number |
extra |
支付费用扩展信息 |
< 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) |
3.175. PaymentDetail
支付详情
名称 | 说明 | 类型 |
---|---|---|
account_name |
账号名称 |
string |
account_no |
账号 |
string |
amount |
金额 |
number |
cashier |
是否缴款 ,此字段用于刻画收款人收的钱是否需要上缴,如收的是现金就需要上缴,刷卡则就不需要上缴 |
boolean |
discount_amount |
支付优惠金额 |
number |
flowno |
业务流水号 |
string |
name |
支付方式名称 |
string |
out_pay_id |
第三方支付流水号 |
string |
pay_id |
支付id |
string |
score |
积分数量 |
number |
3.176. PrintBill
打印单据
名称 | 说明 | 类型 |
---|---|---|
content |
内容 |
string |
created |
单据创建时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
deleted |
默认值 : |
boolean |
deleted_time |
样例 : |
string (date-time) |
name |
模板小票名称 |
string |
outerId |
外部Id |
string |
printer |
打印机类型:JPOS(JPOS打印机),默认JPOS |
string |
ticket_type |
票据类型:小票、杯贴 |
string |
title |
显示名称 |
string |
type |
样例 : |
string |
3.177. PrintInfo
抖音电子面单打印数据
名称 | 说明 | 类型 |
---|---|---|
template_info |
样例 : TemplateInfo |
|
waybill_infos |
订单打印信息 |
3.178. Purchase
名称 | 说明 | 类型 |
---|---|---|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
expect_ship_time |
期望发货时间 |
string (date-time) |
id |
单据Id,不传时,由系统自动生成 |
string |
is_virtual_mode |
是否虚拟采购模式 |
boolean |
items |
商品行 |
< PurchaseItem > array |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
purchase_date |
采购日期 |
string (date-time) |
purchase_unit |
采购单位 |
|
purchase_unit_type |
采购单位类型,取值范围:store(门店)、wrh(仓库) |
string |
purchaser |
采购方 |
|
receive_state |
收货状态:received(收货完成) |
string |
receive_wrh |
收货仓库 |
|
relation_order_id |
来源单据ID,如建议单ID |
string |
relation_order_type |
来源单据类型 |
string |
relations |
关联单据 |
< PurchaseRelation > array |
remark |
说明 |
string |
return_state |
退货状态:none(未退货) |
string |
ship_state |
发货状态:shipped(已发货) |
string |
ship_wrh |
发货仓库 |
|
source_id |
来源采购订单ID |
string |
source_system |
默认:SAP,单据来源系统 |
string |
state |
状态,新建可不填,默认取值为:confirmed。取值范围:confirmed(已确认)、approved(已审核)、finished(已完成)、canceled(已取消) |
string |
type |
默认:transfer,采购类型:取值为:transfer(采购调拨)、rtn(采购退货) |
string |
vend_unit |
供应单位 |
|
vend_unit_type |
供应单位类型,取值范围:vendor(供应商)、store(门店)、wrh(仓库) |
string |
vendor |
供应商 |
3.179. PurchaseFilter
采购订单查询条件
名称 | 说明 | 类型 |
---|---|---|
bill_id_eq |
关联业务单号 |
string |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建开始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
expect_ship_time_end |
期望发货结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
expect_ship_time_start |
期望发货开始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
id_eq |
单据Id 等于 |
string |
id_start_with |
单据Id like |
string |
parts |
返回多个部分用,隔开。需要返回的部分,items(商品详情) |
string |
purchase_unit_code_start_with |
采购单位编码 起始于 |
string |
purchase_unit_type_eq |
采购单位类型 |
string |
receive_state_eq |
收货状态:received(收货完成) |
string |
relation_order_id_start_with |
关联单号 |
string |
ship_state_eq |
发货状态:shipped(已发货) |
string |
source_id_in |
来源采购订单ID |
< string > array |
source_id_start_with |
来源采购订单等于 |
string |
source_system_eq |
单据来源系统 |
string |
state_eq |
单据状态 |
string |
type_eq |
采购类型 |
string |
vend_unit_code_start_with |
供应单位编码 起始于 |
string |
vend_unit_type_eq |
供应单位类型 |
string |
3.180. PurchaseItem
采购商品行
名称 | 说明 | 类型 |
---|---|---|
qty |
数量 |
number |
receive_qty |
实收数量 |
number |
ship_qty |
实发数量 |
number |
sku_id |
商品标识(货号) |
string |
3.181. PurchaseItemLockRequest
采购占货明细
名称 | 说明 | 类型 |
---|---|---|
qty |
计划占货数量 |
number |
skuId |
skuId |
string |
wrhId |
仓库id(默认虚拟仓) |
string |
3.182. PurchaseLockRelationItem
采购占货关联明细
名称 | 说明 | 类型 |
---|---|---|
qty |
占用库存数量 |
number |
skuId |
商品id |
string |
suggestId |
采购建议ID |
string |
wrhId |
仓库id |
string |
3.183. PurchaseLockRequest
采购占货,特殊原因(openapi请求),字段没有加下划线
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
items |
样例 : |
< PurchaseItemLockRequest > array |
relationItems |
样例 : |
< PurchaseLockRelationItem > array |
tenantId |
租户 |
string |
3.184. PurchaseReceiveItem
收货明细行
名称 | 说明 | 类型 |
---|---|---|
receive_qty |
入库数量 |
number |
sku_id |
商品标识(货号) |
string |
3.185. PurchaseReceiveRequest
采购收货明细
名称 | 说明 | 类型 |
---|---|---|
items |
样例 : |
< PurchaseReceiveItem > array |
receive_state |
入库状态:received(收货完成) |
string |
receive_wrh |
入库仓库 |
3.186. PurchaseRelation
名称 | 说明 | 类型 |
---|---|---|
bill_id |
单号 |
string |
bill_type |
单据类型 |
string |
3.187. PurchaseResponse
新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
id |
单据Id |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.188. PurchaseSuggest
采购建议单
名称 | 说明 | 类型 |
---|---|---|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
expect_ship_time |
期望发货时间 |
string (date-time) |
id |
单据Id,新建可不传,不传由系统自动生成 |
string |
items |
商品行 |
< PurchaseSuggestItem > array |
lock_state |
none |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
purchaser |
采购方 |
|
receive_wrh |
入库仓库 |
|
relation_items |
关联单据明细 |
< RelationItem > array |
remark |
说明 |
string |
ship_state |
发货状态:shipped(已发货) |
string |
ship_time |
发货时间 |
string (date-time) |
ship_wrh |
发货仓库 |
|
state |
状态,新建可不填,默认取值为:confirmed。取值范围:confirmed(已确认)、approved(已审核)、finished(已完成)、canceled(已取消) |
string |
vendor |
供应商 |
3.189. PurchaseSuggestFilter
采购建议单过滤器
名称 | 说明 | 类型 |
---|---|---|
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
expect_ship_time_end |
期望发货时间结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
expect_ship_time_start |
期望发货时间起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
id |
采购建议单号 |
string |
id_refix |
单号起始搜索 |
string |
ids |
采购建议单号 |
< string > array |
lock_state |
占货状态 |
string |
order_id_in |
包含单据 |
< string > array |
purchaser_code |
采购方 |
string |
receive_wrh_code |
入库仓 |
string |
ship_state |
发货状态 |
string |
ship_time_end |
发货时间结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
ship_time_start |
发货时间起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
ship_wrh_code |
发货仓库 |
string |
sku_id_in |
包含货号 |
< string > array |
state |
样例 : |
string |
vendor_code |
供应商 |
string |
3.190. PurchaseSuggestItem
建议采购商品行
名称 | 说明 | 类型 |
---|---|---|
qty |
建议采购数量 |
number |
relation_qty |
关联数量 |
number |
sku_id |
商品标识(货号) |
string |
3.191. PurchaseSuggestPaging
销售单分页对象
名称 | 说明 | 类型 |
---|---|---|
list |
采购建议单列表 |
< PurchaseSuggest > array |
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总条数 |
integer (int64) |
3.192. PurchaseSuggestRelationFilter
采购建议单关联明细过滤器
名称 | 说明 | 类型 |
---|---|---|
order_id_eq |
关联明细订单号 |
string |
order_id_in |
关联明细订单号列表 |
< string > array |
sku_id_eq |
关联明细货号 |
string |
sku_id_in |
关联明细货号列表 |
< string > array |
suggest_id |
采购建议单号 |
string |
3.193. PurchaseSuggestResponse
新建采购建议响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
id |
单据Id |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.194. QueryCondition
查询条件
名称 | 说明 | 类型 |
---|---|---|
name |
查询条件名 |
string |
param |
查询条件参数,日期类型使用格式:yyyy-MM-dd HH:mm:ss |
string |
3.195. QueryDefinition
查询定义对象
名称 | 说明 | 类型 |
---|---|---|
conditions |
条件列表 |
< QueryCondition > array |
orders |
排序列表 |
< QueryOrder > array |
page |
当前页码,必须大于等于0 |
integer (int32) |
page_size |
分页大小,范围是[0,100] |
integer (int32) |
3.196. QueryOrder
排序条件对象
名称 | 说明 | 类型 |
---|---|---|
direction |
排序条件,取值范围:asc(升序)、desc(降序) |
enum (asc, desc) |
field |
排序字段 |
string |
3.197. ReasonList
原因列表
名称 | 说明 | 类型 |
---|---|---|
empty |
默认值 : |
boolean |
values |
原因列表 |
< string > array |
3.198. Receiver
收货人
名称 | 说明 | 类型 |
---|---|---|
address |
地址 |
|
contact |
联系方式 |
|
oaid |
地址 |
string |
3.199. Refund
退款信息
名称 | 说明 | 类型 |
---|---|---|
amount |
实际退货金额(包含运费) |
number |
classification |
退款类别,取值范围:normal(正常)、balance(补差),为空表示正常 |
enum (normal, balance) |
extra |
退款其他费用 |
< ExtraField > array |
freight |
退运费 |
number |
package_total |
包装费用 |
number |
part_refund |
是否部分退 |
boolean |
payments |
退款支付明細 |
< RefundPayment > array |
refund_phase |
退款申请阶段,取值范围:onsale(售中)发货之前、aftersale(售后)发货之后 |
enum (onsale, aftersale) |
settle_amount |
结算金额 |
number |
settle_fieight |
结算运费 |
number |
shop_amount |
商家货款金额 |
number |
state |
退款状态,取值范围:none(未退款)、refunded(已退款) |
enum (none, refunded) |
3.200. RefundPayment
退款支付明细
名称 | 说明 | 类型 |
---|---|---|
account_name |
账号名称 |
string |
account_no |
账号 |
string |
amount |
退款金额 |
number |
name |
支付方式名称 |
string |
out_pay_id |
第三方支付流水号 |
string |
pay_id |
支付id |
string |
score |
积分数量 |
number |
3.201. RefundPaymentDetail
退款支付方式详情
名称 | 说明 | 类型 |
---|---|---|
payments |
退款详情列表 |
< DeliverPaymentDetail > array |
3.202. RefundProduct
退款商品
名称 | 说明 | 类型 |
---|---|---|
qty |
数量 |
number |
skuId |
货号 |
string |
total |
金额 |
number |
3.203. ReissueOrderItem
补发商品明细
名称 | 说明 | 类型 |
---|---|---|
item_no |
行号 |
string |
quantity |
数量 |
number |
sku_id |
货号 |
string |
3.204. RelationItem
关联单据明细
名称 | 说明 | 类型 |
---|---|---|
order_id |
单号 |
string |
order_type |
单据类型 |
string |
qty |
关联数量 |
number |
sku_id |
商品货号 |
string |
suggest_id |
采购建议单号 |
string |
3.205. ReplyRemindRequest
名称 | 说明 | 类型 |
---|---|---|
reply_content |
回复内容 |
string |
reply_operator |
回复操作人 |
string |
reply_time |
回复时间 |
string (date-time) |
3.206. ReturnDelivery
退货信息
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
is_buyer_received |
顾客是否收到货 |
boolean |
return_mobile |
退货联系人 |
string |
returner |
退货人 |
|
state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
station |
退货站点 |
|
station_type |
站点类型,取值范围:store(门店)、wrh(仓库) |
string |
waybill_id |
承运单号 |
string |
wrh_rtn_id |
仓库退货单号 |
string |
3.207. ReturnRequest
退货请求对象
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
carrier_note |
承运商备注 |
string |
operator_role |
样例 : |
string |
return_state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
station |
退回站点 |
|
stationType |
退回站点类型 |
string |
3.208. Rtn
退换货单
名称 | 说明 | 类型 |
---|---|---|
address_change_fee |
地址变更费 |
number |
appeal |
是否申诉 |
boolean |
apply_reason |
申请原因 |
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 |
退款信息 |
|
seller_info |
收货失败:原因/凭证 |
|
settle_info |
对账信息 |
|
shop |
平台商家 |
|
sku_quantity |
商品总数 |
number |
state |
退货单状态,新建可不填,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消),为空时取默认值confirmed |
enum (confirmed, approved, finished, canceled) |
tags |
订单标签 |
< OrderTag > array |
type |
退货单类型,取值范围:refund(仅退款)、refundAndRtn(退款退货);为空默认为退款退货 |
enum (refund, refundAndRtn) |
type_change_reason |
类型变更原因 |
string |
voucher_urls |
凭证Url(图片) |
< string > array |
wrh_id |
收货仓库编号 |
string |
wrh_name |
收货仓库名称 |
string |
wrh_state |
仓库状态,取值参考RtnWrhState |
string |
3.209. RtnApproveRequest
退单审核请求对象
名称 | 说明 | 类型 |
---|---|---|
approve_state |
审核状态:none(未审核),serviceApproved(客服已审核),serviceRefuse(客服已拒绝),financeApproved(财务已审核),financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
operator_role |
操作角色:platform(平台) |
string |
reason |
原因 |
string |
3.210. RtnChangeTypeRequest
修改退单类型请求对象
名称 | 说明 | 类型 |
---|---|---|
change_reason |
变更原因 |
string |
change_type |
退单变更类型 |
enum (refund, refundAndRtn) |
3.211. RtnFilter
退单过滤器
名称 | 说明 | 类型 |
---|---|---|
app_id_eq |
平台应用代码等于 |
string |
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, 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) |
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_third_rtn_id_eq |
第三方退单号等于 |
string |
front_third_rtn_id_in |
第三方退单号范围 |
< string > array |
has_billing |
是否有凭证信息 |
boolean |
has_billing_exception |
是否有凭证异常 |
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) |
member_grade_eq |
会员等级等于 |
string |
order_id |
订单号 |
string |
order_id_in |
订单号 |
< string > array |
platform_group_eq |
平台分组等于(O2O、EC) |
string |
platform_id |
平台ID |
string |
pre_page |
上一次页数 |
integer (int32) |
product_contains |
商品包括 |
string |
refund_phases |
退款申请阶段,取值范围:onsale(售中)发货之前、aftersale(售后)发货之后 |
< enum (onsale, aftersale) > array |
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 |
types |
退货类型 |
< enum (refund, refundAndRtn) > array |
waybill_id |
退回物流单号 |
string |
3.212. 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_price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
orig_qty |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
orig_sku_id |
转换前的货号:用于多规格转换场景 |
string |
origin_sku_id |
替换前的商品标识,只有界面使用 |
string |
product_id |
商品代码 |
string |
promotion |
商品退促销 |
|
purchase_price |
采购价 |
number |
quantity |
退货数量 |
number |
real_qty |
实际数量 |
number |
refund_amount |
实际退款金额 (订单优惠后的金额) |
number |
relation_item_id |
关联商品行号 |
string |
relation_sku_id |
关联的货号 |
string |
salesman_id |
售卖员Id |
string |
salesman_name |
售卖员名字 |
string |
salesman_type |
售卖员类型 |
string |
settle_price |
结算价格 |
number |
settle_total |
结算金额 |
number |
settle_unit |
结算单位 |
|
shop_price |
货款价格 |
number |
shop_total |
货款金额 |
number |
sku_id |
商品标识 |
string |
spec |
商品规格 |
string |
tags |
标签 |
< 退单明细标签 > array |
total |
退款金额(参考金额) |
number |
unit |
单位:个、份等 |
string |
unit_price |
价格 |
number |
uuid |
样例 : |
string |
3.213. RtnItemDetail
退款商品行明细
名称 | 说明 | 类型 |
---|---|---|
id |
商品货号 |
string |
quantity |
商品数量 |
number |
ratio |
原料比例,数值3表示,一个组合商品,包含3个原料商品 |
number |
title |
名称 |
string |
3.215. RtnMemberInfo
积分信息
名称 | 说明 | 类型 |
---|---|---|
card_no |
实体卡卡号 |
string |
member_grade |
会员等级 |
string |
3.216. RtnModificationRequest
修改退货单请求对象
名称 | 说明 | 类型 |
---|---|---|
address_change_fee |
地址变更费 |
number |
apply_reason |
申请原因 |
string |
customer_note |
客户留言 |
string |
freight |
运费 |
number |
items |
退换货明细行 |
< RtnItem > array |
modify_item_detail |
是否修改商品原料 |
boolean |
package_total |
包装费 |
number |
rtnId |
退换货单ID |
string |
settle_amount |
结算金额 |
number |
voucher_urls |
凭证Url(图片) |
< string > array |
3.218. 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 |
3.219. RtnPaging
退单分页对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
页大小 |
integer (int32) |
rtns |
退单列表 |
< Rtn > array |
total |
总条数 |
integer (int64) |
3.220. RtnPrintData
退单打印数据
名称 | 说明 | 类型 |
---|---|---|
bills |
每联的打印数据 |
< PrintBill > array |
front_rtn_id |
前端平台退单ID |
string |
rtn_id |
退单号 |
string |
time |
打印数据的生成时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
3.221. RtnPrintDataList
退单打印数据列表对象
名称 | 说明 | 类型 |
---|---|---|
rtns |
退单打印数据列表 |
< RtnPrintData > array |
3.223. RtnSettleInfo
对账信息
名称 | 说明 | 类型 |
---|---|---|
settle_date |
账单日期 |
string (date-time) |
station_settle_mode |
门店分账模式:online(线上分账模式)、offline(线下分账模式) |
string |
3.224. RtnSubmitResponse
退单新建响应
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
rtn_id |
样例 : |
string |
success |
默认值 : |
boolean |
3.225. RtnUpdateDeliveryRequest
修改物流物流退回信息请求对象
名称 | 说明 | 类型 |
---|---|---|
carrier |
承运商 |
|
mobile |
手机号 |
string |
state |
退货状态:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
waybill_id |
承运单号 |
string |
3.227. SalesmanInfo
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
org |
销售员所属组织 |
|
org_type |
所属组织类型:门店,总部 |
string |
type |
type:类型 |
string |
3.229. SelftakeConfirmDetail
自提确认详情
名称 | 说明 | 类型 |
---|---|---|
payments |
付款方式详情 |
< DeliverPaymentDetail > array |
3.230. 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 |
3.232. SellerInfo
收货失败:原因/凭证
名称 | 说明 | 类型 |
---|---|---|
seller_note |
收货失败原因 |
string |
seller_voucher_urls |
卖家收货失败凭证:图片地址 |
< string > array |
3.233. SettleUnit
结算单位
名称 | 说明 | 类型 |
---|---|---|
code |
单位代码,取值门店代码 |
string |
name |
单位门店,取值门店名称 |
string |
type |
类型:store |
string |
3.234. ShipRequest
订单发货请求对象
名称 | 说明 | 类型 |
---|---|---|
operator |
操作人 |
string |
waybills |
订单发货信息 |
< CarrierWaybill > array |
wrh |
发货仓库 |
3.235. Size
尺寸对象
名称 | 说明 | 类型 |
---|---|---|
height |
高 |
number |
length |
长 |
number |
unit |
单位 |
string |
width |
宽 |
number |
3.236. Sku
商品对象
名称 | 说明 | 类型 |
---|---|---|
barcode |
条码 |
string |
brand_id |
品牌ID |
string |
capacity |
容量 |
number |
capacity_unit |
容量单位 |
string |
category_id |
类别ID |
string |
combined_items |
商品组合详情 |
< SkuCombinedItem > array |
created |
创建时间 |
string (date-time) |
creator |
创建人 |
string |
customs_fields |
样例 : |
< CustomField > array |
desc |
商品描述 |
string |
detail_image_urls |
详情图片url |
< string > array |
disp |
商品是否散装,默认false |
boolean |
first_arriving_time |
首次到店时间 |
string (date-time) |
gid |
商品GID属性 |
string |
id |
货号 |
string |
image_url |
主图url |
string |
input_codes |
输入码 |
< InputCode > array |
invc_unit |
计重单位 |
string |
is_inv_unit |
是否为最小库存管理单位 |
boolean |
kind_types |
商品种类 |
< string > array |
member_price |
标准会员价 |
number |
modified |
最后修改时间 |
string (date-time) |
modifier |
最后修改人 |
string |
name |
名称 |
string |
packing |
包装规格 |
|
product_id |
产品ID |
string |
product_type |
取值范围:normal(普通商品),fresh(生鲜商品);combined(组合商品) |
enum (normal, fresh, combined) |
remark |
说明 |
string |
retail_price |
标准零售价 |
number |
size |
尺寸 |
|
sku_combined_tag |
组合标签信息 |
|
state |
状态 |
string |
sub_image_urls |
子图url |
< string > array |
suggest_price |
建议售价 |
number |
tax_rate |
税率,如果是13%,传0.13 |
number |
tax_sort_code |
税率分类码 |
string |
title |
在前台展示的名称 |
string |
upc |
国标码 |
string |
weight |
重量 |
3.237. SkuCombinedItem
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
price |
样例 : |
number |
product_type |
样例 : |
enum (normal, fresh, combined) |
quantity |
样例 : |
number |
title |
样例 : |
string |
3.238. SkuCombinedTag
组合标签信息
名称 | 说明 | 类型 |
---|---|---|
code |
标签,举例20-2-10,20所属商品大类代码,2商品数量,10价格 |
string |
enabled |
是否启用组合标签,默认false(不启用) |
boolean |
price |
价格 |
number |
qty |
数量 |
number |
3.239. SkuFilter
查询条件对象
名称 | 说明 | 类型 |
---|---|---|
barcode |
条码 |
string |
barcode_from |
条码起始于 |
string |
barcode_like |
条码类似于 |
string |
barcodes |
条码列表 |
< string > array |
brand_id |
品牌ID |
string |
category_id |
类别ID |
string |
code_type |
样例 : |
string |
codes |
样例 : |
< string > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
exclude_sku_ids |
样例 : |
< string > array |
fetch_parts |
需要返回的部分 |
string |
key_like |
(id,name)类似于,常用于模糊搜索 |
string |
kinds_in |
样例 : |
< string > array |
modified_end |
修改结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
modified_start |
修改起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
name_like |
名称类似于 |
string |
pre_page |
上一次页数 |
integer (int32) |
product_ids |
商品ID |
< string > array |
product_types |
取值范围:normal(普通商品),fresh(生鲜商品),combined(组合商品); |
< enum (normal, fresh, combined) > array |
sku_id_from |
货号起始于 |
string |
sku_id_like |
货号类似于 |
string |
sku_ids |
商品ID |
< string > array |
title_like |
展示名称类似于 |
string |
3.240. SkuImage
商品图片对象
名称 | 说明 | 类型 |
---|---|---|
detail_images |
详情图片 |
< ImageDetail > array |
image |
主图 |
|
sku_id |
样例 : |
string |
sub_images |
子图 |
< ImageDetail > array |
3.241. SkuImageList
商品图片列表对象
名称 | 说明 | 类型 |
---|---|---|
sku_images |
上传的商品图片列表 |
< SkuImage > array |
upload_type |
上传方式 url 或 base64 ,默认url |
string |
3.243. SkuPaging
商品分页结果
名称 | 说明 | 类型 |
---|---|---|
page |
页号,从0开始,必须>=0 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
skus |
商品集合 |
< Sku > array |
total |
总记录 |
integer (int64) |
3.244. SkuQuantity
库存
名称 | 说明 | 类型 |
---|---|---|
available |
可用库存数 |
number |
change_time |
库存变化时间 |
string (date-time) |
fixed_qty |
期初库存数 |
number |
sku_id |
商品ID |
string |
stock_qty |
占用库存 |
number |
task_id |
任务ID |
string |
3.245. SkuQuantityList
当前可用库存集合
名称 | 说明 | 类型 |
---|---|---|
skus |
当前可用库存集合 |
< SkuQuantity > array |
3.246. SomsPageResponsePurchase
名称 | 说明 | 类型 |
---|---|---|
data |
样例 : |
< Purchase > array |
echoCode |
样例 : |
integer (int32) |
echoMessage |
样例 : |
string |
page |
样例 : |
integer (int32) |
pageCount |
样例 : |
integer (int32) |
pageSize |
样例 : |
integer (int32) |
success |
默认值 : |
boolean |
total |
样例 : |
integer (int32) |
3.247. SomsPageResponseRelationItem
名称 | 说明 | 类型 |
---|---|---|
data |
样例 : |
< RelationItem > array |
echoCode |
样例 : |
integer (int32) |
echoMessage |
样例 : |
string |
page |
样例 : |
integer (int32) |
pageCount |
样例 : |
integer (int32) |
pageSize |
样例 : |
integer (int32) |
success |
默认值 : |
boolean |
total |
样例 : |
integer (int32) |
3.248. SomsRequestListRelationItem
名称 | 说明 | 类型 |
---|---|---|
data |
请求数据 |
< RelationItem > array |
3.249. SomsRequestListString
名称 | 说明 | 类型 |
---|---|---|
data |
请求数据 |
< string > array |
3.250. SomsResponseVoid
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
data |
样例 : [_void] |
|
message |
样例 : |
string |
success |
默认值 : |
boolean |
3.251. StoreOperationRequest
门店作业请求
名称 | 说明 | 类型 |
---|---|---|
operation |
作业动作:accept(接单)、shipping(集货)、recheck(复核)、handover(交接)、cancelShipping(取消集货) |
string |
operation_state |
作业状态 |
string |
store_id |
门店ID |
string |
3.252. StoreOperationRtnRule
名称 | 说明 | 类型 |
---|---|---|
allow_float |
默认值 : |
boolean |
allow_part_refund |
默认值 : |
boolean |
manual_receive |
默认值 : |
boolean |
3.253. StoreOperationRule
名称 | 说明 | 类型 |
---|---|---|
def |
规则内容 |
|
platform_id |
平台ID |
string |
shop_id |
商家ID |
string |
source |
样例 : |
string |
state |
是否开通:applying(未开通)、opened(已开通) |
enum (applying, opened) |
store_id |
门店ID |
string |
type |
样例 : |
string |
3.254. StoreOperationRuleDef
名称 | 说明 | 类型 |
---|---|---|
rtn_rule |
3.255. StoreOperationRuleFilter
名称 | 说明 | 类型 |
---|---|---|
platformIdEq |
样例 : |
string |
shopIdEq |
样例 : |
string |
stateEq |
样例 : |
string |
storeIdEq |
样例 : |
string |
storeIdIn |
样例 : |
< string > array |
typeEq |
样例 : |
string |
3.256. StoreOperationRuleSave
名称 | 说明 | 类型 |
---|---|---|
def |
def |
|
platform_id |
平台ID |
string |
shop_id |
商家代码 |
string |
store_id |
门店代码 |
string |
type |
类型 |
string |
3.258. SuspendInfo
挂起信息
名称 | 说明 | 类型 |
---|---|---|
caption |
挂起原因标题,显示用 |
string |
code |
挂起原因代码,每一种挂起原因用代码表示 |
string |
suspended |
是否挂起 |
boolean |
time |
挂起时间 |
string (date-time) |
3.259. TemplateInfo
打印模板信息
名称 | 说明 | 类型 |
---|---|---|
preview_url |
preview_url |
string |
template_code |
模板代码 |
string |
template_id |
模板ID |
string |
template_name |
模板名称 |
string |
template_type |
模板类型 |
string |
template_url |
模板url |
string |
version |
模板版本 |
string |
3.260. UpdateReplyContentRequest
名称 | 说明 | 类型 |
---|---|---|
reply_content |
回复内容 |
string |
3.261. Waybill
运单
名称 | 说明 | 类型 |
---|---|---|
packages |
样例 : |
< WaybillPackage > array |
waybill_id |
运单号 |
string |
3.262. WaybillInfos
订单打印信息
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
print_data |
面单数据信息-加密密文 |
string |
sign |
print_data的签名 |
string |
track_no |
运单号 |
string |
3.264. WaybillPrintData
运单打印详情
名称 | 说明 | 类型 |
---|---|---|
data |
数据 |
string |
type |
request|response |
string |
3.265. WaybillPrintInfo
运单打印数据
名称 | 说明 | 类型 |
---|---|---|
datas |
打印数据 |
< WaybillPrintData > array |
3.266. soms分页查询结果Count
名称 | 说明 | 类型 |
---|---|---|
data |
数据 |
< Count > array |
page |
页码 |
integer (int32) |
pageCount |
页数 |
integer (int32) |
pageSize |
页面大小 |
integer (int32) |
total |
总数 |
integer (int64) |
3.267. 修改对象字段:String
如果整个对象为空,则表示本次不修改该字段;如果对象不为空,则表示把字段改为value的值
名称 | 说明 | 类型 |
---|---|---|
value |
要修改成什么值 |
string |
3.268. 占货明细
名称 | 说明 | 类型 |
---|---|---|
qty |
占货数量 |
number |
result |
占货结果 |
string |
sku_id |
货号 |
string |
type |
占货类型 |
string |
3.269. 巨益库存释放请求
名称 | 说明 | 类型 |
---|---|---|
order_id |
订单号 |
string |
3.270. 收货信息修改参数
名称 | 说明 | 类型 |
---|---|---|
check_action |
检查更新动作:none:不检查,platform:检查更新平台,carrier:检查更新承运,默认检查更新平台,多个英文逗号分隔,只要包含none都不检查 |
string |
city |
市 |
|
district |
区/县 |
|
encrypt_detail |
订单加密信息,抖音使用 |
|
mobile |
收货人手机号 |
|
name |
收货人姓名 |
|
postCode |
邮编 |
|
province |
省 |
|
receiver |
收货人 |
|
street |
街道/详细地址 |
3.271. 有订单号和信息的对象
名称 | 说明 | 类型 |
---|---|---|
lock_items |
占货明细 |
< 占货明细 > array |
lock_result |
占货结果 |
string |
message |
样例 : |
string |
order_id |
样例 : |
string |
stock_state |
占货状态 |
string |
success |
默认值 : |
boolean |
3.272. 盲盒
名称 | 说明 | 类型 |
---|---|---|
sku_id |
盲盒的skuId,每个订单上这个值是唯一的 |
string |
3.273. 统计服务过滤器
名称 | 说明 | 类型 |
---|---|---|
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 |
3.274. 订单占货情况检查响应
名称 | 说明 | 类型 |
---|---|---|
data |
占货结果 |
< 有订单号和信息的对象 > array |
message |
请求失败时,该字段为失败原因 |
string |
success |
表示本次请求是否成功 |
boolean |
3.275. 订单占货情况检查请求
名称 | 说明 | 类型 |
---|---|---|
order_ids |
要检查的订单,不超过50个 |
< string > array |
3.276. 订单标签
名称 | 说明 | 类型 |
---|---|---|
name |
名称 |
string |
3.277. 订单盲盒列表
名称 | 说明 | 类型 |
---|---|---|
data |
对象列表 |
< 盲盒 > array |
3.278. 退单明细标签
名称 | 说明 | 类型 |
---|---|---|
name |
名称 |
string |
4. 定义
4.1. ActionResult
名称 | 说明 | 类型 |
---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
4.3. CustomField
自定义属性值
名称 | 说明 | 类型 |
---|---|---|
id |
字段ID |
string |
name |
自定名称 |
string |
value |
字段值 |
string |
4.4. DeviceCategory
设备分类对象
名称 | 说明 | 类型 |
---|---|---|
code |
编码 |
string |
id |
ID |
string |
levelNo |
等级 |
string |
name |
名称 |
string |
parent_id |
上级ID |
string |
state |
状态:opened(已开启),closed(已禁用),deleted(已删除) |
enum (opened, closed, deleted) |
4.5. DeviceCategoryFilter
设备分类查询过滤器
名称 | 说明 | 类型 |
---|---|---|
code |
编码 |
string |
id |
ID |
string |
modified_end |
修改时间结束于 |
string (date-time) |
modified_start |
修改时间起始于 |
string (date-time) |
4.6. DeviceCategoryPaging
设备分类查询对象
名称 | 说明 | 类型 |
---|---|---|
device_categorys |
设备分类列表 |
< DeviceCategory > array |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
4.7. Function
名称 | 说明 | 类型 |
---|---|---|
created |
样例 : |
string (date-time) |
id |
样例 : |
string |
name |
样例 : |
string |
parent_id |
样例 : |
string |
path |
样例 : |
string |
seqNo |
样例 : |
integer (int32) |
type |
样例 : |
string |
4.8. FunctionAccess
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
state |
样例 : |
enum (applying, opened) |
4.9. FunctionOpenRequest
名称 | 说明 | 类型 |
---|---|---|
functions |
样例 : |
< FunctionAccess > array |
4.10. FunctionPerm
名称 | 说明 | 类型 |
---|---|---|
function |
样例 : Function |
|
permissions |
样例 : |
< Permission > array |
4.11. IdName
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
4.12. IdNameList
名称 | 说明 | 类型 |
---|---|---|
items |
样例 : |
< IdName > array |
4.13. IdsWrapper
名称 | 说明 | 类型 |
---|---|---|
ids |
样例 : |
< string > array |
4.14. Location
位置信息
名称 | 说明 | 类型 |
---|---|---|
area |
地区 |
string |
city |
市 |
string |
city_code |
市代码 |
string |
district |
区 |
string |
district_code |
区代码 |
string |
lat |
纬度 |
number |
lng |
经度 |
number |
province |
省 |
string |
province_code |
省代码 |
string |
street |
详细地址 |
string |
4.15. MachineCategory
机台型号对象
名称 | 说明 | 类型 |
---|---|---|
code |
编码 |
string |
device_category_id |
设备分类ID |
string |
id |
ID |
string |
name |
名称 |
string |
state |
状态:opened(已开启),closed(已禁用),deleted(已删除) |
enum (opened, closed, deleted) |
4.16. MachineCategoryFilter
机台型号查询过滤器
名称 | 说明 | 类型 |
---|---|---|
code |
编码 |
string |
id |
ID |
string |
modified_end |
修改结束时间 |
string (date-time) |
modified_start |
修改起始时间 |
string (date-time) |
4.17. MachineCategoryPaging
机台型号查询对象
名称 | 说明 | 类型 |
---|---|---|
machine_categorys |
机台型号列表 |
< MachineCategory > array |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
4.18. OpenRequest
名称 | 说明 | 类型 |
---|---|---|
state |
样例 : |
enum (using, blocked) |
4.19. Org
组织对象
名称 | 说明 | 类型 |
---|---|---|
business_type |
组织业态:ip(ip),park(乐园),early_education(早教) |
enum (ip, park, early_education, superMarket, departmentStore) |
id |
ID |
string |
name |
名称 |
string |
remark |
remark |
string |
type |
组织类型:HQ(总部),biz_HQ(业态总部),area(区域),store(门店) |
enum (HQ, biz_HQ, area, store) |
upgra_org |
上级组织ID |
string |
4.20. OrgFilter
组织查询过滤器
名称 | 说明 | 类型 |
---|---|---|
id |
ID |
string |
modified_begin |
修改起始时间 |
string (date-time) |
modified_end |
修改结束时间 |
string (date-time) |
types |
组织类型:HQ(总部)、biz_HQ(业态总部)、area(区域)、store(门店) |
< enum (HQ, biz_HQ, area, store) > array |
4.21. OrgPaging
组织查询对象
名称 | 说明 | 类型 |
---|---|---|
orgs |
组织列表 |
< Org > array |
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
4.22. OrgPostion
组织岗位对象
名称 | 说明 | 类型 |
---|---|---|
org_business_type |
组织业态:ip(ip),park(乐园),early_education(早教), |
enum (ip, park, early_education, superMarket, departmentStore) |
org_id |
组织ID |
string |
org_name |
组织名称 |
string |
org_type |
组织类型:HQ(总部),biz_HQ(业态总部),area(区域),store(门店) |
enum (HQ, biz_HQ, area, store) |
postion_id |
岗位代码 |
string |
postion_name |
岗位名称 |
string |
4.24. OrgPostionPaging
组织岗位查询对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
postions |
岗位列表 |
< Postion > array |
total |
总记录数 |
integer (int64) |
4.25. Organization
商家对象
名称 | 说明 | 类型 |
---|---|---|
business_type |
业态 |
string |
city |
市 |
string |
email |
邮箱 |
string |
hd_user_id |
海鼎用户编码 |
string |
id |
商户标识 |
string |
image_url |
主图片 |
string |
image_urls |
子图片 |
< string > array |
mobile |
手机号 |
string |
name |
商户名称 |
string |
province |
省 |
string |
remark |
备注 |
string |
source |
来源 |
string |
tenant_id |
租户编号 |
string |
4.26. Permission
权限对象
名称 | 说明 | 类型 |
---|---|---|
group |
权限分组 |
string |
group_name |
权限分组名称 |
string |
id |
权限ID |
string |
name |
权限名称 |
string |
4.28. Postion
组织岗位
名称 | 说明 | 类型 |
---|---|---|
id |
ID |
string |
name |
名称 |
string |
org_id |
组织ID |
string |
4.30. RestConfig
名称 | 说明 | 类型 |
---|---|---|
password |
样例 : |
string |
user |
样例 : |
string |
4.31. Role
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
4.32. RoleList
名称 | 说明 | 类型 |
---|---|---|
roles |
样例 : |
< Role > array |
4.33. Staff
员工对象
名称 | 说明 | 类型 |
---|---|---|
created |
创建时间 |
string (date-time) |
department_id |
部门ID |
string |
department_name |
部门名称 |
string |
departure_date |
离职时间 |
string (date-time) |
email |
邮箱 |
string |
gender |
性别:男,女 |
string |
hire_date |
入职时间 |
string (date-time) |
id |
代码 |
string |
id_number |
身份证 |
string |
job_number |
工号 |
string |
mobile |
手机号 |
string |
modified |
修改时间 |
string (date-time) |
name |
名称 |
string |
org_postions |
岗位列表 |
< OrgPostion > array |
password |
密码 |
string |
position_id |
岗位ID |
string |
position_name |
岗位名称 |
string |
state |
员工状态:on_job(在职),quit_job(离职),默认on_job |
enum (on_job, quit_job) |
superior_id |
上级主管ID |
string |
superior_name |
上级主管名称 |
string |
wx_id |
万信号 |
string |
4.34. StaffFilter
员工查询对象
名称 | 说明 | 类型 |
---|---|---|
id |
员工代码 |
string |
keyword |
关键字(ID,name近似搜索) |
string |
modified_begin |
修改起始时间 |
string (date-time) |
modified_end |
修改终止时间 |
string (date-time) |
wx_id |
万信号 |
string |
4.36. StaffPaging
员工查询对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
staffs |
员工列表 |
< Staff > array |
total |
总记录数 |
integer (int64) |
4.37. Store
门店资料对象
名称 | 说明 | 类型 |
---|---|---|
account_name |
开票银行名称 |
string |
account_no |
开票银行账号 |
string |
area_leader |
区域主管 |
|
business_hours |
经营时段 |
string |
business_type |
业态:ip(ip),park(乐园),early_education(早教) |
string |
circles |
所属商圈 |
< string > array |
contact |
联系方式 |
|
customs_fields |
自定义属性值 |
< CustomField > array |
distance |
距离 |
number |
gid |
门店Gid |
string |
id |
门店代码 |
string |
image_urls |
多张图片;分隔,最多5张图片 |
< string > array |
location |
位置信息 |
|
main_image_url |
主图 |
string |
name |
门店名称 |
string |
open_date |
开店时间 |
string (date-time) |
operation_manager |
运营经理 |
|
region |
所属区域 |
|
remark |
备注 |
string |
sap_code |
门店SAP编码 |
string |
source_sys |
来源系统 |
string |
state |
门店状态:opened(正常),stopped(停业),closed(关闭) |
enum (opened, stopped, closed) |
tags |
标签 |
< StoreTag > array |
tax_no |
开票税号 |
string |
type |
门店类型:self(自营连锁),self_join(连锁加盟(自主)),managed_join(连锁加盟(托管)),interal_join(连锁加盟(内部)),single_store(单店),other(其它),direct(直营),join(加盟) |
enum (self, self_join, managed_join, interal_join, single_store, other, direct, join) |
4.38. StoreFilter
门店过滤器
名称 | 说明 | 类型 |
---|---|---|
business_types |
业态 |
< string > array |
circles |
所属商圈 |
< string > array |
id |
门店代码 |
string |
key_like |
查询关键字类似于 |
string |
latitude_end |
纬度结束于 |
number |
latitude_start |
纬度起始于 |
number |
longtitude_end |
经度终止于 |
number |
longtitude_start |
经度起始于 |
number |
modified_end |
修改时间结束于 |
string (date-time) |
modified_start |
修改时间起始于 |
string (date-time) |
states |
门店状态:opened(正常),opened(停业),opened(关闭) |
< enum (opened, stopped, closed) > array |
store_ids |
多个门店代码 |
< string > array |
types |
门店类型:self(自营连锁),self_join(连锁加盟(自主)),managed_join(连锁加盟(托管)),interal_join(连锁加盟(内部)),single_store(单店),other(其它),direct(直营),join(加盟) |
< enum (self, self_join, managed_join, interal_join, single_store, other, direct, join) > array |
4.40. StoreModification
门店修改对象
名称 | 说明 | 类型 |
---|---|---|
account_name |
开票银行名称 |
string |
account_no |
开票银行账号 |
string |
area_leader |
区域主管 |
|
business_hours |
样例 : |
string |
business_type |
业态:ip(ip),park(乐园),early_education(早教) |
string |
circles |
所属商圈 |
< string > array |
contact |
联系方式 |
|
gid |
内部GID |
string |
location |
位置信息 |
|
name |
门店名称 |
string |
operation_manager |
运营经理 |
|
region |
样例 : StoreRegion |
|
remark |
备注 |
string |
sap_code |
样例 : |
string |
source_sys |
来源系统 |
string |
state |
门店状态:opened(正常),stopped(停业),closed(关闭) |
enum (opened, stopped, closed) |
tags |
样例 : |
< StoreTag > array |
tax_no |
开票税号 |
string |
type |
门店类型:self(自营连锁),self_join(连锁加盟(自主)),managed_join(连锁加盟(托管)),interal_join(连锁加盟(内部)),single_store(单店),other(其它),direct(直营),join(加盟) |
enum (self, self_join, managed_join, interal_join, single_store, other, direct, join) |
4.41. StorePaging
门店查询对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
stores |
门店列表 |
< Store > array |
total |
总记录数 |
integer (int64) |
4.42. StoreRegion
门店所属区域
名称 | 说明 | 类型 |
---|---|---|
id |
区域代码 |
string |
mgr_wechat_work_id |
区域经理企业微信id |
string |
name |
区域名称 |
string |
4.43. StoreTag
名称 | 说明 | 类型 |
---|---|---|
name |
样例 : |
string |
4.44. Terminal
终端信息
名称 | 说明 | 类型 |
---|---|---|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
id |
终端标识 |
string |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
name |
终端名称 |
string |
source |
来源 |
string |
state |
状态:opened(开通),applying(关闭),默认applying |
enum (applying, opened) |
4.46. TerminalRegisterRequest
注册终端请求对象
名称 | 说明 | 类型 |
---|---|---|
id |
标识 |
string |
name |
名称 |
string |
source |
来源 |
string |
4.47. User
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
is_super_admin |
默认值 : |
boolean |
is_super_store_manager |
默认值 : |
boolean |
login_name |
样例 : |
string |
mobile |
样例 : |
string |
name |
样例 : |
string |
state |
样例 : |
enum (using, blocked) |
tenant_id |
样例 : |
string |
4.48. UserCreation
名称 | 说明 | 类型 |
---|---|---|
id |
样例 : |
string |
is_super_admin |
默认值 : |
boolean |
is_super_store_manager |
默认值 : |
boolean |
login_name |
样例 : |
string |
mobile |
样例 : |
string |
name |
样例 : |
string |
need_encrypt |
默认值 : |
boolean |
password |
样例 : |
string |
tenant_id |
样例 : |
string |
4.49. UserCreationList
名称 | 说明 | 类型 |
---|---|---|
users |
样例 : |
< UserCreation > array |
4.50. Vendor
供应商对象
名称 | 说明 | 类型 |
---|---|---|
id |
代码 |
string |
name |
名称 |
string |
state |
状态:opened(开启),closed(关闭),默认开启 |
string |
4.51. VendorFilter
供应商查询过滤器
名称 | 说明 | 类型 |
---|---|---|
key_like |
关键字类似于(id,name) |
string |
state |
状态:opened,closed |
string |
4.53. VendorModification
供应商修改请求对象
名称 | 说明 | 类型 |
---|---|---|
name |
名称 |
string |
state |
状态:opened,closed |
string |
4.54. VendorPaging
供应商查询对象
名称 | 说明 | 类型 |
---|---|---|
page |
页码 |
integer (int32) |
page_count |
页数 |
integer (int32) |
page_size |
分页大小 |
integer (int32) |
total |
总记录数 |
integer (int64) |
vendors |
供应商列表 |
< Vendor > array |