售后服务中心
API列表
编号 | API名称 | 路径 | 版本 | |
---|---|---|---|---|
1.1 | 根据订单标识查询业务单及服务工单 | /tx/platform-biz/remac-tx-after-sale/businessOrder/getBusinessOrderByTxOrderId | 1.0 | |
2.1 | 通过skuIds查询服务价格 | /tx/platform-biz/remac-tx-after-sale/skuservicerel/getDataBySkuIds | 1.0 | |
3.1 | 新增或删除 Sku与服务产品关联表 | /tx/platform-biz/remac-tx-after-sale/skuservicerel/submit | 1.0 | 天工推给中台。 |
3.2 | 接收推送的服务产品 | /tx/platform-biz/remac-tx-after-sale/skuservicerel/push/skuRel | 1.0 | 天工推给中台的服务产品 |
3.3 | 接收推送触发同步sku与服务产品关联信息(中台内部调用) | /tx/platform-biz/remac-tx-after-sale/skuservicerel/sync/doServiceProductSync | 1.0 |
API调用
1、业务单及服务工单
1.1: 根据订单标识查询业务单及服务工单
描述:
根据订单标识查询业务单及服务工单
HTTP协议:
HTTP,HTTPS
URL:
/tx/platform-biz/remac-tx-after-sale/businessOrder/getBusinessOrderByTxOrderId
HTTP头:
remacToken
方法:
POST
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
txOrderId | Long | 是 | 订单id |
返回:
{
"code": "200",
"message": "请求成功",
"data": {
"businessOrder": {
"txOrderId":1,
"sourceId": 37,
"brandSideId": 17293,
"isAbnormal": 1,
"address": "佛山市顺德区北滘镇111",
"releaseTime": 1681811127000,
"isDelete": 1,
"mobile": "18129864957",
"merName": "中国,广东省,佛山市,顺德区,北滘镇,111",
"statusCount": 0,
"remark": "",
"updateTime": 1681811127000,
"ownerMsg": "",
"businessNo": "YWD20230418000002",
"regionCode": "440606102",
"dealTime": 1681811148000,
"appointmentTime": "2023-04-18 20:00-21:00",
"ownerName": "火星",
"createTime": 1681811127000,
"ownerNo": "YZ20230304000001",
"brandSideName": "鲁大师",
"creater": "admin",
"id": 727,
"sourceName": "鲁大师烧冒烟了",
"status": "1"
},
"orderList": [
{
"serviceType": "鲁大师服务类型",
"standardsName": "鲁大师的规格",
"serviceCode": "fea5d562-e0c3-4943-90ad-3adfb4b4ad7d",
"actualFinishNum": 0,
"merName": "中国,广东省,佛山市,顺德区,北滘镇,111",
"orderStatus": "待指派",
"requiredFinishNum": 8,
"remark": "",
"businessNo": "YWD20230418000002",
"regionCode": "440606102",
"isIntact": 1,
"appointmentTime": "2023-04-18 20:00-21:00",
"ownerName": "火星",
"assignStatus": "自动指派失败",
"processKey": "p171956-649bf7c3-743",
"id": 2744,
"processInstanceId": "bf9d3b0a-ddcd-11ed-b78f-12037065c44c",
"address": "佛山市顺德区北滘镇111",
"orderNo": "GD20230418000003",
"isDelete": 1,
"mobile": "18129864957",
"updateTime": 1681811127000,
"ownerMsg": "",
"statusId": 1,
"createTime": 1681811127000,
"ownerNo": "YZ20230304000001",
"creater": "admin",
"serviceProductName": "鲁大师三级分类"
},
{
"serviceType": "天刀服务类型",
"standardsName": "美的",
"serviceCode": "da44f82c-ab5b-42fc-846b-8879e738880b",
"actualFinishNum": 0,
"merName": "中国,广东省,佛山市,顺德区,北滘镇,111",
"orderStatus": "已关闭",
"requiredFinishNum": 8,
"remark": "",
"businessNo": "YWD20230418000002",
"regionCode": "440606102",
"isIntact": 1,
"appointmentTime": "2023-04-18 20:00-21:00",
"ownerName": "火星",
"assignStatus": "自动指派失败",
"processKey": "p174222-978fb36e-e20",
"id": 2745,
"processInstanceId": "bfaa5a71-ddcd-11ed-b78f-12037065c44c",
"finishTime": 1681811148000,
"address": "佛山市顺德区北滘镇111",
"orderNo": "GD20230418000004",
"isDelete": 1,
"mobile": "18129864957",
"updateTime": 1681811127000,
"ownerMsg": "",
"statusId": 100,
"createTime": 1681811127000,
"ownerNo": "YZ20230304000001",
"creater": "admin",
"serviceProductName": "奶妈上春风伞"
}
]
}
}
2、产品与服务产品
2.1: 通过skuIds查询数据
描述:
通过skuIds查询产品与服务产品数据
HTTP协议:
HTTP,HTTPS
URL:
/tx/platform-biz/remac-tx-after-sale/skuservicerel/getDataBySkuIds
HTTP头:
remacToken
方法:
POST
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
skuIds | List |
是 | skuId集合 |
示例:
{
"skuIds":[1,2]
}
返回:
{
"code": "200",
"message": "请求成功",
"data": [
{
"id": "1",
"skuId": "1",
"serviceProductId": "1",
"serviceProductName": "1",
"price": 1,
"count": 1,
"required": 1,
"creater": "1",
"createTime": "2023-05-09 06:42:53",
"updater": "1",
"updateTime": "2023-05-09 06:43:08"
},
{
"id": "2",
"skuId": "1",
"serviceProductId": "2",
"serviceProductName": "2",
"price": 2,
"count": 2,
"required": 2,
"creater": "2",
"createTime": "2023-05-09 06:42:57",
"updater": "2",
"updateTime": "2023-05-09 06:43:12"
},
{
"id": "3",
"skuId": "2",
"serviceProductId": "3",
"serviceProductName": "3",
"price": 3,
"count": 3,
"required": 3,
"creater": "3",
"createTime": "2023-05-09 06:42:59",
"updater": "3",
"updateTime": "2023-05-09 06:43:14"
}
]
}
3:天工同步服务产品数据
3.1: 新增或删除 Sku与服务产品关联表
描述:
新增或删除 Sku与服务产品关联表
HTTP协议:
HTTP,HTTPS
URL:
/tx/platform-biz/remac-tx-after-sale/skuservicerel/submit
HTTP头:
remacToken
方法:
POST
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
skuIds | List |
是 | 产品标识集合 |
serviceProductId | Long | 是 | 服务产品标识 |
返回:
{
"code": "200",
"message": "请求成功",
"data": true
}
3.2: 接收推送的服务产品
描述:
接收推送的服务产品
HTTP协议:
HTTP,HTTPS
URL:
/tx/platform-biz/remac-tx-after-sale/skuservicerel/push/skuRel
HTTP头:
remacToken
方法:
POST
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
ServiceProduct | ServiceProduct | 是 | 服务产品 |
示例:
{
"serviceProductId":"1",
"serviceProductName":"1",
"price":10
}
返回:
{
"code": "200",
"message": "请求成功",
"data": null
}
3.3: 接收推送触发同步sku与服务产品关联信息(中台内部调用)
描述: 接收推送触发同步sku与服务产品关联信息(中台内部调用)
HTTP协议:HTTP
HTTPS
URL: /tx/platform-biz/remac-tx-after-sale/skuservicerel/sync/doServiceProductSync
方法:POST
请求参数:
详见此页面 4.8.1: https://confluence.mideazy.com/pages/viewpage.action?pageId=491323439