...
|
...
|
@@ -59,6 +59,8 @@ code==200表示成功,其它都为失败 |
|
|
"exchange_mode": 10,
|
|
|
"mobile": "13776693005",
|
|
|
"order_code": 16062099,
|
|
|
"init_order_code": 16062099,
|
|
|
"source_order_code": 16062099,
|
|
|
"province": "江苏省",
|
|
|
"receipt_time": "2",
|
|
|
"remark": "用户换货",
|
...
|
...
|
@@ -87,28 +89,72 @@ code==200表示成功,其它都为失败 |
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.createChangeOrder |
|
|
|
|
|
|
成功
|
|
|
|
|
|
```json
|
|
|
{"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10}
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "ok",
|
|
|
"data": {
|
|
|
"id": 1,
|
|
|
"init_order_code": "111",
|
|
|
"source_order_code": 1111,
|
|
|
"new_order_code": 1111,
|
|
|
"exchange_id": 111,
|
|
|
"returned_id": 111,
|
|
|
"exchange_status": 10,
|
|
|
"returned_status": 10
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
失败
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"code":500,
|
|
|
"message":"error",
|
|
|
"data":{
|
|
|
"id": 1,
|
|
|
"init_order_code": "111",
|
|
|
"source_order_code": 1111,
|
|
|
"new_order_code": 1111,
|
|
|
"exchange_id": 111,
|
|
|
"returned_id": 111,
|
|
|
"exchange_status": 91, // 客服驳回
|
|
|
"returned_status": 91 // 客服驳回
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### 前台更新换货快递信息
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.updateChangeOrderExpressInfo |
|
|
|
| route key | order.updateChangeRefundOrderExpressInfo |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
|
|
|
{ "id":1,
|
|
|
"apply_id":40,
|
|
|
"express_number":"603596395359",
|
|
|
"express_name":"顺丰",
|
|
|
"express_id":"23",
|
|
|
type:"change" // 表示类型为换货
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### ERP更新换货单状态
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.updateChangeOrderStatus |
|
|
|
| route key | erp.updateChangeRefundOrderStatus |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"status":40}
|
|
|
{
|
|
|
"returned_id":1, //returned_id为erp系统退货单id唯一主键
|
|
|
"status":40,
|
|
|
"type":"change" //"change" 表示换货类型,"refund"表示退货类型
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
@@ -118,34 +164,106 @@ code==200表示成功,其它都为失败 |
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.createRefundOrder |
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"uid": "3342109",
|
|
|
"alipay_account": "13912008849",
|
|
|
"alipay_name": "xxxx",
|
|
|
"area_code": "area_code",
|
|
|
"bank_card": "6228480605428963215",
|
|
|
"bank_name": "中国农业银行",
|
|
|
"city": "南京市",
|
|
|
"county": "",
|
|
|
"order_code": "308545172",
|
|
|
"payee_name": "张璐",
|
|
|
"province": "江苏省",
|
|
|
"remark": "尺寸不合适",
|
|
|
"return_amount_mode": "2",
|
|
|
"order_returned_id":123,//前台表生成的退货订单主键,其余字段同老接口
|
|
|
"returned_goods_list": [
|
|
|
{
|
|
|
"product_sku": "383669",
|
|
|
"goods_type": "1",
|
|
|
"last_price": "334",
|
|
|
"returned_reason": "1",
|
|
|
"remark": "尺寸不合适",
|
|
|
"evidence_images": ""
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
### ERP创建退货单
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.createRefundOrder |
|
|
|
|
|
|
|
|
|
成功
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "ok",
|
|
|
"data": {
|
|
|
"order_returned_id":1, //order_returned_id为前台退货id唯一主键
|
|
|
"returned_id":1, //returned_id为erp退货id唯一主键
|
|
|
"returned_status":10,
|
|
|
"real_returned_amount":100,
|
|
|
"is_return_coupon":"N",
|
|
|
"return_yoho_coin":11111
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
失败
|
|
|
|
|
|
```json
|
|
|
{"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111}
|
|
|
{
|
|
|
"code":500,
|
|
|
"message":"error",
|
|
|
"data":{
|
|
|
"order_returned_id":1, //order_returned_id为前台退货id唯一主键
|
|
|
"returned_id":1, //returned_id为erp退货id唯一主键
|
|
|
"returned_status":91 //客服驳回
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
### 前台更新退货快递信息
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.updateRefundOrderExpressInfo |
|
|
|
| route key | order.updateChangeRefundOrderExpressInfo |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
|
|
|
{ "order_returned_id":1, //order_returned_id为前台退货id唯一主键
|
|
|
"apply_id":40, //apply_id为erp退货id唯一主键
|
|
|
"express_number":"603596395359",
|
|
|
"express_name":"顺丰",
|
|
|
"express_id":"23",
|
|
|
"type":"refund" // 表示类型为退货
|
|
|
}
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
### ERP更新退货单状态
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.updateRefundOrderStatus |
|
|
|
| route key | erp.updateChangeRefundOrderStatus |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"status":40}
|
|
|
{
|
|
|
"returned_id":1, //returned_id为erp系统退货单id唯一主键
|
|
|
"status":40,
|
|
|
"type":"refund" //"change" 表示换货类型,"refund"表示退货类型
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|