版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 销售退服务
1.1.1. 根据平台申请单号取指定销售退
GET /{tenant_id}/soms/rtnreqservice/rtnreq/front/{front_rtn_id}
1.1.1.1. 说明
根据平台申请单号取指定销售退
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
front_rtn_id |
销售退平台id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、changeItems(换出商品详情) |
string |
Query |
platform_id |
平台ID |
string |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/front/string?platform_id=string
1.1.1.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "厦门市",
"district" : "思明区",
"street" : "前埔",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"name" : "满减",
"type" : "string",
"amount" : 10.5,
"remark" : "测试优惠",
"factor" : {
"total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
"qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
"sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
},
"sku_act_id" : "1111",
"merchant_act_id" : "1111",
"batch_act_id" : "1111",
"child_type" : "string",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(代理商)",
"discount" : 1.0
} ],
"share_details" : "[]",
"extra_info" : "{\"thirdType\": \"42\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
}
1.1.2. 提交销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/submit
1.1.2.1. 说明
提交销售退
1.1.2.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
rtn_req |
销售退 |
1.1.2.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/submit?operator=string
请求 body
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "厦门市",
"district" : "思明区",
"street" : "前埔",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"name" : "满减",
"type" : "string",
"amount" : 10.5,
"remark" : "测试优惠",
"factor" : {
"total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
"qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
"sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
},
"sku_act_id" : "1111",
"merchant_act_id" : "1111",
"batch_act_id" : "1111",
"child_type" : "string",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(代理商)",
"discount" : 1.0
} ],
"share_details" : "[]",
"extra_info" : "{\"thirdType\": \"42\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
}
1.1.2.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string",
"id" : "string"
}
1.1.3. 取指定销售退
GET /{tenant_id}/soms/rtnreqservice/rtnreq/{id}
1.1.3.1. 说明
取指定销售退
1.1.3.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、changeItems(换出商品详情) |
string |
1.1.3.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.3.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string
1.1.3.5. HTTP响应示例
响应 200
{
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "厦门市",
"district" : "思明区",
"street" : "前埔",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"name" : "满减",
"type" : "string",
"amount" : 10.5,
"remark" : "测试优惠",
"factor" : {
"total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
"qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
"sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
},
"sku_act_id" : "1111",
"merchant_act_id" : "1111",
"batch_act_id" : "1111",
"child_type" : "string",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(代理商)",
"discount" : 1.0
} ],
"share_details" : "[]",
"extra_info" : "{\"thirdType\": \"42\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
}
1.1.4. 审核销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/approve
1.1.4.1. 说明
审核销售退
1.1.4.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
退单审核请求 |
1.1.4.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.4.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/approve?operator=string
请求 body
{
"reason" : "已发货,不能退",
"approve_state" : "serviceApproved"
}
1.1.4.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.5. 取消销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/cancel
1.1.5.1. 说明
取消销售退
1.1.5.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.5.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.5.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/cancel?operator=string
请求 body
{
"reason" : "我不想要了",
"approve_state" : "financeRefuse"
}
1.1.5.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.6. 确认退货状态
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/deliver
1.1.6.1. 说明
确认退货状态
1.1.6.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
退货单ID |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
退货请求对象 |
1.1.6.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.6.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/deliver?operator=string
请求 body
{
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"return_state" : "none"
}
1.1.6.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.7. 修改销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/modify
1.1.7.1. 说明
修改销售退
1.1.7.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.7.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.7.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/modify?operator=string
请求 body
{
"type" : "4356465768",
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"front" : {
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"extend_props" : "string"
},
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ],
"apply_reason" : "不想要了",
"customer_note" : "haha",
"seller_node" : "note",
"wrh_id" : "string"
}
1.1.7.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.8. 确认退款
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/refund
1.1.8.1. 说明
确认退款
1.1.8.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
请求对象 |
1.1.8.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.8.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/refund?operator=string
请求 body
{
"refundState" : "refunded",
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ]
}
1.1.8.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.9. 拒绝销售退
POST /{tenant_id}/soms/rtnreqservice/rtnreq/{id}/action/refuse
1.1.9.1. 说明
拒绝销售退
1.1.9.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
id |
销售退id |
string |
Path |
tenant_id |
租户ID |
string |
Query |
operator |
操作人 |
string |
Body |
request |
退单拒绝审核请求 |
1.1.9.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.9.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreq/string/action/refuse?operator=string
1.1.9.5. HTTP响应示例
响应 200
{
"success" : true,
"code" : "string",
"message" : "string"
}
1.1.10. 查询销售退(数据库查询)
POST /{tenant_id}/soms/rtnreqservice/rtnreqs/query
1.1.10.1. 说明
查询销售退(数据库查询)
1.1.10.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 |
integer (int32) |
Query |
sort_key |
排序字段 created、modified、front_created |
string |
Body |
filter |
查询条件 |
1.1.10.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.10.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreqs/query?desc=true&page=0&page_size=0
请求 body
{
"platform_id" : "jdo2o",
"order_id" : "123456",
"order_id_start_with" : "123456",
"order_id_in" : "123456",
"rtn_req_id" : "123456",
"rtn_req_id_start_with" : "123456",
"shop_id" : "12348522",
"front_order_id" : "323434",
"customer_Name" : "张三",
"customer_Mobile" : "18587887789",
"customer_mobile_like" : "7789",
"types" : [ "refund" ],
"states" : [ "confirmed" ],
"approve_states" : [ "none" ],
"front_created_start" : "2016-03-02 12:00:02",
"front_created_end" : "2016-03-02 12:00:02",
"created_start" : "2016-03-02 12:00:02",
"created_end" : "2016-03-02 12:00:02",
"pre_page" : 1,
"has_exception" : false,
"station_ids" : "12345,56789"
}
1.1.10.5. HTTP响应示例
响应 200
{
"total" : 0,
"page" : 0,
"rtnReqs" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "厦门市",
"district" : "思明区",
"street" : "前埔",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"name" : "满减",
"type" : "string",
"amount" : 10.5,
"remark" : "测试优惠",
"factor" : {
"total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
"qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
"sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
},
"sku_act_id" : "1111",
"merchant_act_id" : "1111",
"batch_act_id" : "1111",
"child_type" : "string",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(代理商)",
"discount" : 1.0
} ],
"share_details" : "[]",
"extra_info" : "{\"thirdType\": \"42\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
} ],
"page_count" : 0,
"page_size" : 0
}
1.1.11. 查询销售退(ES查询)
POST /{tenant_id}/soms/rtnreqservice/rtnreqs/queryEs
1.1.11.1. 说明
查询销售退(ES查询,推荐使用)
1.1.11.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
desc |
倒序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
分页大小 |
integer (int32) |
Query |
sort_key |
排序字段 created、modified、front_created |
string |
Body |
filter |
查询条件 |
1.1.11.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.11.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreqs/queryEs?desc=true&page=0&page_size=0
请求 body
{
"platform_id" : "jdo2o",
"order_id" : "123456",
"order_id_start_with" : "123456",
"order_id_in" : "123456",
"rtn_req_id" : "123456",
"rtn_req_id_start_with" : "123456",
"shop_id" : "12348522",
"front_order_id" : "323434",
"customer_Name" : "张三",
"customer_Mobile" : "18587887789",
"customer_mobile_like" : "7789",
"types" : [ "refund" ],
"states" : [ "confirmed" ],
"approve_states" : [ "none" ],
"front_created_start" : "2016-03-02 12:00:02",
"front_created_end" : "2016-03-02 12:00:02",
"created_start" : "2016-03-02 12:00:02",
"created_end" : "2016-03-02 12:00:02",
"pre_page" : 1,
"has_exception" : false,
"station_ids" : "12345,56789",
"station_id" : "12345",
"platform_ids" : "jdo2o",
"return_states" : [ "none" ],
"waybill_id_condition" : "12345",
"customer_name_like" : "张三"
}
1.1.11.5. HTTP响应示例
响应 200
{
"total" : 0,
"page" : 0,
"rtnReqs" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "厦门市",
"district" : "思明区",
"street" : "前埔",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"name" : "满减",
"type" : "string",
"amount" : 10.5,
"remark" : "测试优惠",
"factor" : {
"total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
"qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
"sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
},
"sku_act_id" : "1111",
"merchant_act_id" : "1111",
"batch_act_id" : "1111",
"child_type" : "string",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(代理商)",
"discount" : 1.0
} ],
"share_details" : "[]",
"extra_info" : "{\"thirdType\": \"42\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
} ],
"page_count" : 0,
"page_size" : 0
}
1.1.12. 查指定销售订单的退货单
GET /{tenant_id}/soms/rtnreqservice/rtnreqs/saleorder
1.1.12.1. 说明
查指定销售订单的退货单
1.1.12.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户ID |
string |
Query |
order_id |
销售订单ID |
string |
Query |
parts |
需要返回的部分,多个“,”隔开,items(商品详情)、item.details(商品组合详情)、paymentDetails(退款支付明细) |
string |
1.1.12.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.12.4. HTTP请求示例
请求 path
/string/soms/rtnreqservice/rtnreqs/saleorder?order_id=string
1.1.12.5. HTTP响应示例
响应 200
{
"reqs" : [ {
"created" : "2020-06-17 10:00:00",
"modified" : "2020-06-17 10:00:00",
"creator" : "string",
"modifier" : "string",
"id" : "0002",
"shop" : {
"id" : "string",
"name" : "string"
},
"type" : "refund",
"state" : "confirmed",
"customer" : {
"id" : "10001",
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
}
},
"refund" : {
"state" : "none",
"freight" : 12.03,
"amount" : 12.03,
"extra" : [ {
"id" : "distance_freight",
"name" : "远距离运费",
"value" : "0.01"
} ],
"payments" : [ {
"code" : "支付方式代码",
"name" : "支付宝",
"amount" : 12.33,
"score" : 100.0,
"account_no" : "002002",
"account_name" : "工行",
"discount_amount" : 100.0,
"pay_id" : "3223232323",
"out_pay_id" : "3223232323",
"extra_info" : "{\"session\", \"123\"}"
} ],
"classification" : "normal",
"refund_phase" : "aftersale",
"part_refund" : false,
"settle_fieight" : 12.03,
"settle_amount" : 12.03,
"package_total" : 12.03,
"settle_commission" : 2.0,
"shop_amount" : 120.01
},
"front" : {
"platform" : {
"id" : "string",
"name" : "string"
},
"app" : {
"id" : "string",
"name" : "string"
},
"shop" : {
"id" : "string",
"name" : "string"
},
"created" : "2016-03-02 12:00:01",
"modified" : "2016-03-02 12:00:01",
"state" : "已付款",
"wrh" : {
"id" : "string",
"name" : "string"
},
"logistic" : {
"id" : "string",
"name" : "string"
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"order_id" : "1223654",
"third_order_id" : "1223654",
"main_order_id" : "1223432",
"rtn_id" : "123456",
"station_order_no" : "1",
"order_type" : "string",
"extend_props" : "string"
},
"delivery" : {
"state" : "none",
"waybills" : [ {
"station" : {
"id" : "string",
"name" : "string"
},
"carrier" : {
"state" : "initial",
"type" : "self",
"carrier" : {
"id" : "string",
"name" : "string"
},
"merchant" : {
"id" : "string",
"name" : "string"
},
"deliveryman" : {
"id" : "string",
"name" : "string"
},
"expected_logistics_type" : "crowdsourcing",
"deliveryman_mobile" : "18859658865",
"exception_reason" : "异常原因",
"delivery_id" : "8548418",
"delivery_name" : "8548418"
},
"suggest_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"suggest_station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station_type" : "store(门店)、wrh(仓库)、vendor(供应商)",
"virtual_station" : {
"id" : "string",
"name" : "string"
},
"waybill_id" : "123"
} ],
"returner" : {
"contact" : {
"name" : "李飞",
"telephone" : "189389928893",
"mobile" : "189389928893",
"email" : "55151@qq.com",
"fax" : "123123",
"private_name" : "张*红",
"private_mobile" : "189****0000"
},
"address" : {
"country" : "中国",
"province" : "福建省",
"city" : "厦门市",
"district" : "思明区",
"street" : "前埔",
"postcode" : "363423",
"latitude" : "45.3,范围0-90",
"longtitude" : "121.2,范围0-180",
"coordinate_type" : "GCJ02",
"private_street" : "脱敏地址**"
}
},
"wrh" : {
"code" : "string",
"name" : "string"
},
"station" : {
"id" : "string",
"name" : "string"
},
"station_type" : "string"
},
"appeal" : false,
"items" : [ {
"uuid" : "string",
"spec" : "1*1",
"unit" : "瓶",
"barcode" : "123456",
"quantity" : 1.0,
"total" : 2.0,
"price" : 122.34,
"front" : {
"goods" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec" : {
"id" : "string",
"code" : "string",
"name" : "string"
},
"spec2" : "500g",
"barcode" : "121231313",
"oid" : "string",
"status" : "string",
"wrh" : {
"id" : "string",
"name" : "string"
},
"sku_id" : "052700601",
"goods_class" : "类型",
"goods_unit" : "单位",
"refund_id" : "string",
"refund_status" : "string",
"tc_order_id" : "string",
"tc_payment" : "string",
"extend_props" : "string",
"virtual_wrh" : {
"id" : "string",
"name" : "string"
}
},
"details" : [ {
"id" : "01123",
"title" : "01123",
"quantity" : 0.01,
"ratio" : 2.0,
"real_quantity" : 0.0
} ],
"gift" : true,
"combined" : true,
"item_no" : "1",
"item_id" : "1",
"sku_id" : "00321",
"product_id" : "2123",
"item_title" : "葡萄",
"unit_price" : 2.0,
"purchase_price" : 2.0,
"discount_amount" : 12.02,
"apported_discount_amount" : 12.02,
"package_total" : 205.44,
"image_Url" : "http://1213323.png",
"front_sku_id" : "e235346ger545",
"front_item_id" : "052700601",
"front_unit" : "string",
"refund_amount" : 12.03,
"settle_price" : 12.03,
"settle_total" : 12.03,
"shop_price" : 11.22,
"shop_total" : 11.22,
"origin_sku_id" : "e235346ger545",
"orig_item" : {
"type" : "multi",
"barcode" : "121221",
"price" : 33.22,
"quantity" : 3.0,
"sku_id" : "121221",
"item_title" : "【组合】洗护套装",
"image_url" : "string",
"combined_id" : "121221"
},
"orig_sku_id" : "121212",
"orig_item_title" : "【组合】洗护套装",
"orig_price" : 122.22,
"orig_qty" : 2.0,
"orig_barcode" : "1212",
"orig_image_url" : "string",
"rtn_state" : "string",
"rtn_id" : "681795759987",
"station_id" : "string",
"station_name" : "string"
} ],
"promotion" : {
"favs" : [ {
"id" : "1111",
"name" : "满减",
"type" : "string",
"amount" : 10.5,
"remark" : "测试优惠",
"factor" : {
"total" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与金额是:20",
"qty" : "A(40) B(160)-》100满减20。如果本商品是A,则最终A参与数量是:1",
"sku_items" : "买2A+3B,赠送一个C,当前商品是C,则skuItems记录 2A和3B的参与详情"
},
"sku_act_id" : "1111",
"merchant_act_id" : "1111",
"batch_act_id" : "1111",
"child_type" : "string",
"prom_cls" : "string",
"voucher_code" : "111111111",
"settle_details" : [ {
"role" : "shop(商家)、platform(平台)、agent(代理商)",
"discount" : 1.0
} ],
"share_details" : "[]",
"extra_info" : "{\"thirdType\": \"42\"}"
} ]
},
"logs" : [ {
"action" : "modify",
"message" : "修改订单商品明细",
"time" : "2017-12-26 16:40:19",
"operator" : "zuhu",
"tenant_id" : "zuhu",
"order_id" : "321212222",
"rtn_id" : "212123333",
"action_caption" : "修改订单"
} ],
"tags" : [ {
"name" : "首单"
} ],
"customer_note" : "haha",
"order_id" : "3232320003",
"approve_state" : "none",
"apply_reason" : "不想要了",
"cancel_reason" : "又想要了",
"seller_node" : "note",
"change_order_info" : {
"change_order_id" : "string",
"change_items" : [ {
"quantity" : 13.0,
"details" : [ {
"id" : "121212",
"title" : "矿泉水",
"quantity" : 4.0,
"ratio" : 3.0,
"package_info" : {
"thermosphere" : "string",
"quantity" : 125.0,
"total" : 205.44,
"packageName" : "保温袋"
},
"front_spec" : "辣",
"real_quantity" : 0.0,
"fault_tolerant_info" : "string",
"trace_codes" : [ "string" ],
"trace_code_details" : [ {
"type" : "normal(普通),expDate(效期)",
"barcode" : "123",
"batch_no" : "string",
"code" : "string",
"valid_date" : "2020-06-17 10:00:00",
"production_date" : "2020-06-17 10:00:00",
"qty" : 0.0,
"qpc_str" : "string"
} ]
} ],
"item_no" : "1",
"sku_id" : "132323",
"front_sku_id" : "1454543",
"front_item_id" : "1323233"
} ]
},
"voucher_urls" : [ "string" ],
"wrh_state" : "initial",
"wrh_id" : "string",
"extra_info" : "{\"lcUserAccessToken\", \"123\"}",
"has_exception" : true,
"exception_codes" : "sku",
"exception_remark" : "异常说明",
"station" : {
"id" : "string",
"name" : "string"
}
} ]
}
2. 定义
2.1. ActionResult
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.2. Address
地址信息
| 名称 | 说明 | 类型 |
|---|---|---|
city |
市 |
string |
coordinate_type |
坐标类型,BD09:百度坐标, GCJ02:火星坐标,WGS84:WGS84坐标 |
string |
country |
国家 |
string |
district |
区 |
string |
latitude |
纬度 |
number |
longtitude |
经度 |
number |
postcode |
邮编 |
string |
private_street |
脱敏地址 |
string |
province |
省份 |
string |
street |
详细地址 |
string |
2.3. CancelRtnReqRequest
取消退货请求对象
| 名称 | 说明 | 类型 |
|---|---|---|
approve_state |
审核状态:none(未审核),serviceApproved(客服已审核),serviceRefuse(客服已拒绝),financeApproved(财务已审核),financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
reason |
取消原因 |
string |
2.4. Carrier
承运商
| 名称 | 说明 | 类型 |
|---|---|---|
carrier |
承运平台 |
|
delivery_id |
配送活动标识 |
string |
delivery_name |
配送活动名称 |
string |
deliveryman |
送货员 |
|
deliveryman_mobile |
送货员手机 |
string |
exception_reason |
承运异常原因 |
string |
expected_logistics_type |
期望承运物流类型,取值范围:express(快递)、crowdsourcing(众包)。快递:如圆通,中通等;众包:如美团,蜂鸟,达达等 |
string |
merchant |
承运商家 |
|
state |
承运状态,取值范围:initial(初始状态)、created(已下发)、createdFailed(下发失败)、dispatched(已派单)、arrived(骑手已到店)、pickup(已揽件)、pickupFailed(揽件失败)、delivering(配送中)、delivered(配送完成)、canceled(已取消) |
enum (initial, created, dispatched, createdFailed, arrived, pickup, pickupFailed, delivering, delivered, canceled) |
type |
承运商类型,取值范围:self(门店自送)、thirdparty(平台配送)、express(物流配送) |
enum (self, thirdparty, express) |
2.5. ChangeItem
来源:换货商品
| 名称 | 说明 | 类型 |
|---|---|---|
details |
商品原料详情 |
< OrderItemDetail > array |
front_item_id |
前台订单行标识 |
string |
front_sku_id |
平台商品编码 |
string |
item_no |
行号 |
string |
quantity |
数量 |
number |
sku_id |
货号 |
string |
2.6. ChangeOrderInfo
换出信息
| 名称 | 说明 | 类型 |
|---|---|---|
change_items |
换出商品行 |
< ChangeItem > array |
change_order_id |
换出订单号 |
string |
2.7. CodeName
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
name |
样例 : |
string |
2.8. ConfirmReqRefundRequest
确认退款请求对象
| 名称 | 说明 | 类型 |
|---|---|---|
payments |
退款支付明细 |
< RefundPayment > array |
refundState |
退款状态,none(未退款),refunded(已退款) |
enum (none, refunded) |
2.10. DiscountSettleDetail
优惠结算详情
| 名称 | 说明 | 类型 |
|---|---|---|
discount |
承担优惠金额 |
number |
role |
优惠承担方 |
string |
2.11. DiscountShareDetail
整合优惠结算详情
| 名称 | 说明 | 类型 |
|---|---|---|
discount |
承担优惠金额 |
number |
type |
类型 |
string |
2.12. ExtraField
自定义字段
| 名称 | 说明 | 类型 |
|---|---|---|
id |
自定义id |
string |
name |
自定义名称 |
string |
value |
自定义值 |
string |
2.13. FavDetail
优惠详情
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
优惠金额 |
number |
batch_act_id |
批次维度的活动ID |
string |
child_type |
优惠子类型 |
string |
extra_info |
扩展信息,json格式。 |
string |
factor |
优惠参与信息 |
|
id |
优惠ID |
string |
merchant_act_id |
商家活动ID |
string |
name |
活动名称 |
string |
prom_cls |
促销来源类型 |
string |
remark |
优惠说明 |
string |
settle_details |
优惠结算分摊详情 |
< DiscountSettleDetail > array |
share_details |
多方整合优惠分摊信息 |
< DiscountShareDetail > array |
sku_act_id |
商品维度的活动ID |
string |
type |
优惠类型 |
string |
voucher_code |
凭证代码 |
string |
2.14. FavFactor
优惠参与信息
| 名称 | 说明 | 类型 |
|---|---|---|
qty |
本商品参与促销总数量 |
number |
sku_items |
来源商品参与优惠明细 |
< FavFactorItem > array |
total |
本商品参与促销总金额 |
number |
2.15. FavFactorItem
参与优惠商品明细
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
参与促销金额 |
number |
item_id |
行标识 |
string |
item_no |
行号 |
integer (int32) |
qty |
参与促销数量 |
number |
2.16. ICN
ICN对象
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
id |
样例 : |
string |
name |
样例 : |
string |
2.17. IdName
| 名称 | 说明 | 类型 |
|---|---|---|
id |
样例 : |
string |
name |
样例 : |
string |
2.18. OrderItemDetail
原料商品信息
| 名称 | 说明 | 类型 |
|---|---|---|
fault_tolerant_info |
容错信息,json字符串 |
string |
front_spec |
平台属性 |
string |
id |
原料商品货号 |
string |
package_info |
包装信息 |
|
quantity |
需要原料商品数量,C=2A+3B,原料商品数量=组合商品数量*基数,2C时,A:2*2,B:2*3 |
number |
ratio |
原料商品基数,C=2A+3B,A:2,B:3 |
number |
real_quantity |
实际拣货商品数量 |
number |
title |
名称 |
string |
trace_code_details |
溯源码明细,与traceCodes(溯源码)字段相比,二者不能同时使用,优先使用traceCodeDetails,traceCodeDetails无值,在使用traceCodes |
< OrderItemTraceCodeDetail > array |
trace_codes |
溯源码 |
< string > array |
2.19. OrderItemTraceCodeDetail
溯源码
| 名称 | 说明 | 类型 |
|---|---|---|
barcode |
条码 |
string |
batch_no |
批号 |
string |
code |
溯源码 |
string |
production_date |
生产日期 |
string (date-time) |
qpc_str |
规格 |
string |
qty |
数量 |
number |
type |
类型,默认是normal |
string |
valid_date |
有效期 |
string (date-time) |
2.21. PackageInfo
商品打包信息
| 名称 | 说明 | 类型 |
|---|---|---|
packageName |
打包袋名称 |
string |
quantity |
包装盒数量 |
number |
thermosphere |
温层 |
string |
total |
包装费用 |
number |
2.23. Refund
退款信息
| 名称 | 说明 | 类型 |
|---|---|---|
amount |
实际退货金额(包含运费) |
number |
classification |
退款类别,取值范围:normal(正常)、balance(补差),为空表示正常 |
enum (normal, balance) |
extra |
退款其他费用,退货取件费:rtn_pickup_freight |
< ExtraField > array |
freight |
退运费 |
number |
package_total |
包装费用 |
number |
part_refund |
是否部分退 |
boolean |
payments |
退款支付明細 |
< RefundPayment > array |
refund_phase |
退款阶段,取值范围:onsale(售中)、aftersale(售后),仅退款默认为售中阶段 |
enum (onsale, aftersale) |
settle_amount |
结算金额 |
number |
settle_commission |
平台结算佣金 |
number |
settle_fieight |
结算运费 |
number |
shop_amount |
商家货款金额 |
number |
state |
退款状态,取值范围:none(未退款)、refunded(已退款) |
enum (none, refunded) |
2.24. RefundPayment
退款支付明细
| 名称 | 说明 | 类型 |
|---|---|---|
account_name |
账号名称 |
string |
account_no |
账号 |
string |
amount |
退款金额 |
number |
code |
支付方式代码 |
string |
discount_amount |
退款优惠金额 |
number |
extra_info |
扩展信息,json字符串 |
string |
name |
支付方式名称 |
string |
out_pay_id |
第三方支付流水号 |
string |
pay_id |
支付id |
string |
score |
积分数量 |
number |
2.25. ReqFrontMod
修改平台信息
| 名称 | 说明 | 类型 |
|---|---|---|
extend_props |
属性信息 |
string |
logistic |
物流信息 |
|
logs |
订单日志 |
< SaleOrderLog > array |
state |
状态 |
string |
wrh |
仓库信息 |
2.26. ReqReturnRequest
退货请求对象
| 名称 | 说明 | 类型 |
|---|---|---|
return_state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
waybills |
运单信息 |
< WaybillInfo > array |
2.28. RtnReq
退换货申请单
| 名称 | 说明 | 类型 |
|---|---|---|
appeal |
是否申诉 |
boolean |
apply_reason |
申请原因 |
string |
approve_state |
审批状态,取值范围:none(未审核),serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
cancel_reason |
取消申请原因 |
string |
change_order_info |
换出信息 |
|
created |
样例 : |
string (date-time) |
creator |
样例 : |
string |
customer |
客户 |
|
customer_note |
客户留言 |
string |
delivery |
配送信息 |
|
exception_codes |
异常代码,sku(商品异常) |
string |
exception_remark |
异常说明 |
string |
extra_info |
扩展信息,json字符串 |
string |
front |
平台退货信息 |
|
has_exception |
是否异常 |
boolean |
id |
申请单ID,不能重复,为空自动生成 |
string |
items |
商品行 |
< RtnReqItem > array |
logs |
退换货申请单日志 |
< SaleOrderLog > array |
modified |
样例 : |
string (date-time) |
modifier |
样例 : |
string |
order_id |
原订单号 |
string |
promotion |
退单促销 |
|
refund |
退款信息 |
|
seller_node |
商家备注 |
string |
shop |
平台商家店铺,非门店 |
|
state |
退货单状态,新建可不填,取值范围:confirmed(已生成)、prepared(已预处理),approved(审核通过)、rejected(已拒绝)、finished(已完成)、canceled(已取消),为空时取默认值confirmed |
enum (confirmed, perpared, approved, finished, canceled, rejected) |
station |
退货站点 |
|
tags |
订单标签 |
< OrderTag > array |
type |
申请类型,取值范围:refund(仅退款申请)、refundAndRtn(退款退货申请)、change(换货申请) |
enum (refund, refundAndRtn, change) |
voucher_urls |
凭证Url(图片) |
< string > array |
wrh_id |
退回仓库编号 |
string |
wrh_state |
仓库状态,取值参考RtnWrhState |
string |
2.29. RtnReqApproveRequest
退单审核请求对象
| 名称 | 说明 | 类型 |
|---|---|---|
approve_state |
审核状态:none(未审核),serviceApproved(客服已审核),serviceRefuse(客服已拒绝),financeApproved(财务已审核),financeRefuse(财务已拒绝) |
enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) |
reason |
原因 |
string |
2.30. RtnReqDelivery
配送信息
| 名称 | 说明 | 类型 |
|---|---|---|
returner |
退货人 |
|
state |
退货状态,取值范围:none(未退货)、customerShipped(客户已发货)、received(已收货) |
enum (none, customerShipped, received) |
station |
退回门店 |
|
station_type |
退回站点类型,取值范围:store(门店)、wrh(仓库)、vendor(供应商) |
string |
waybills |
运单信息 |
< WaybillInfo > array |
wrh |
仓库 |
2.31. RtnReqEsFilter
退换货申请单ES过滤器
| 名称 | 说明 | 类型 |
|---|---|---|
approve_states |
审核状态,取值范围:none(未审核)、serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
< enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
customer_Mobile |
客户电话 |
string |
customer_Name |
客户姓名 |
string |
customer_mobile_like |
客户电话模糊搜索 |
string |
customer_name_like |
客户姓名类似于 |
string |
front_created_end |
下单时间终止时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_created_start |
下单时间起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_order_id |
平台订单ID |
string |
has_exception |
是否异常 |
boolean |
order_id |
订单号 |
string |
order_id_in |
订单号 |
< string > array |
order_id_start_with |
订单号起始于 |
string |
platform_id |
平台ID |
string |
platform_ids |
平台ID集合,仅支持es |
< string > array |
pre_page |
上一次页数 |
integer (int32) |
return_states |
退货状态,仅支持es,取值范围:none(未审核)、customerShipped(客户已发货)、received(已收货) |
< enum (none, customerShipped, received) > array |
rtn_req_id |
退换货申请单号 |
string |
rtn_req_id_start_with |
退换货申请单号起始于 |
string |
shop_id |
店铺ID |
string |
states |
退货单状态,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消) |
< enum (confirmed, perpared, approved, finished, canceled, rejected) > array |
station_id |
门店ID,仅支持es |
string |
station_ids |
门店ID,仅支持es |
< string > array |
types |
退货类型 |
< enum (refund, refundAndRtn, change) > array |
waybill_id_condition |
下属退回运单号中运单号精确包含,仅支持es |
string |
2.32. RtnReqFilter
退换货申请单过滤器
| 名称 | 说明 | 类型 |
|---|---|---|
approve_states |
审核状态,取值范围:none(未审核)、serviceApproved(客服已审核)、serviceRefuse(客服已拒绝)、financeApproved(财务已审核)、financeRefuse(财务已拒绝) |
< enum (none, serviceApproved, serviceRefuse, financeApproved, financeRefuse) > array |
created_end |
创建结束时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
created_start |
创建起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
customer_Mobile |
客户电话 |
string |
customer_Name |
客户姓名 |
string |
customer_mobile_like |
客户电话模糊搜索 |
string |
front_created_end |
下单时间终止时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_created_start |
下单时间起始时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
front_order_id |
平台订单ID |
string |
has_exception |
是否异常 |
boolean |
order_id |
订单号 |
string |
order_id_in |
订单号 |
< string > array |
order_id_start_with |
订单号起始于 |
string |
platform_id |
平台ID |
string |
pre_page |
上一次页数 |
integer (int32) |
rtn_req_id |
退换货申请单号 |
string |
rtn_req_id_start_with |
退换货申请单号起始于 |
string |
shop_id |
店铺ID |
string |
states |
退货单状态,取值范围:confirmed(已生成)、approved(已审核)、finished(已完成)、canceled(已取消) |
< enum (confirmed, perpared, approved, finished, canceled, rejected) > array |
station_ids |
门店ID,仅支持es |
< string > array |
types |
退货类型 |
< enum (refund, refundAndRtn, change) > array |
2.33. RtnReqFront
平台退换货申请单信息
| 名称 | 说明 | 类型 |
|---|---|---|
app |
平台应用 |
|
created |
下单时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
extend_props |
属性信息 |
string |
logistic |
物流信息 |
|
logs |
订单日志 |
< SaleOrderLog > array |
main_order_id |
平台主订单号 |
string |
modified |
最后修改时间,格式为:yyyy-MM-dd HH:mm:ss |
string (date-time) |
order_id |
平台订单号,第三方单号 |
string |
order_type |
退单类型,默认为仅退款、退货退款、换货 |
string |
platform |
平台,其中:自接入平台需要提供约定平台id,申请在鼎力云开通。 |
|
rtn_id |
平台退货单号 |
string |
shop |
店铺 |
|
state |
状态 |
string |
station_order_no |
平台门店订单序号 |
string |
third_order_id |
通道系统订单号,第三方单号 |
string |
wrh |
仓库信息 |
2.34. RtnReqItem
退货申请单商品行
| 名称 | 说明 | 类型 |
|---|---|---|
apported_discount_amount |
整单优惠分摊金额,如:订单满减,整单分摊到明细 |
number |
barcode |
商品条码 |
string |
combined |
默认值 : |
boolean |
details |
样例 : |
< RtnReqItemDetail > array |
discount_amount |
商品优惠金额,如:商品立减优惠 |
number |
front |
前端商品信息 |
|
front_item_id |
平台订单行ID |
string |
front_sku_id |
前台商品标识 |
string |
front_unit |
单位 |
string |
gift |
默认值 : |
boolean |
image_Url |
商品图片信息 |
string |
item_id |
行唯一标识 |
string |
item_no |
订单行号 |
string |
item_title |
商品标题 |
string |
orig_barcode |
转换前商品条码 |
string |
orig_image_url |
转换前商品图片信息 |
string |
orig_item |
订单原商品信息,用于多规格、组合商品场景,记录用户下单时的商品信息 |
|
orig_item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
orig_price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
orig_qty |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
orig_sku_id |
转换前的货号:用于多规格转换场景 |
string |
origin_sku_id |
替换前的商品标识,只有界面使用 |
string |
package_total |
包装费用 |
number |
price |
售价(促销价) |
number |
product_id |
商品代码 |
string |
purchase_price |
采购价 |
number |
quantity |
数量 |
number |
refund_amount |
退款金额 (订单优惠后的金额) |
number |
rtn_id |
关联退回单号 |
string |
rtn_state |
退回单状态,取值范围:confirmed(已确认)、prepared(已预处理)、approved(已审核)、delivering( 配送中)、delivered(配送完成)、canceled(已取消) |
string |
settle_price |
结算价格 |
number |
settle_total |
结算金额 |
number |
shop_price |
货款价格 |
number |
shop_total |
货款金额 |
number |
sku_id |
商品标识(货号) |
string |
spec |
商品规格 |
string |
station_id |
样例 : |
string |
station_name |
样例 : |
string |
total |
商品金额,等于unit_price * quantity |
number |
unit |
单位:个、份等 |
string |
unit_price |
商品销售价格(扣除优惠券前的价格) |
number |
uuid |
样例 : |
string |
2.35. RtnReqItemDetail
退款商品行明细
| 名称 | 说明 | 类型 |
|---|---|---|
id |
商品货号 |
string |
quantity |
商品数量 |
number |
ratio |
原料比例,数值3表示,一个组合商品,包含3个原料商品 |
number |
real_quantity |
样例 : |
number |
title |
名称 |
string |
2.37. RtnReqModRequest
修改退货单请求对象
| 名称 | 说明 | 类型 |
|---|---|---|
apply_reason |
申请原因 |
string |
change_items |
换货明细行 |
< ChangeItem > array |
customer_note |
客户留言 |
string |
front |
平台信息 |
|
items |
退货明细行 |
< RtnReqItem > array |
seller_node |
商家备注 |
string |
type |
申请类型 |
enum (refund, refundAndRtn, change) |
waybills |
运单信息 |
< WaybillInfo > array |
wrh_id |
退回仓库编号 |
string |
2.38. RtnReqOrigItem
原商品行信息
| 名称 | 说明 | 类型 |
|---|---|---|
barcode |
转换前条码 |
string |
combined_id |
如果是组合商品,需要传组合标识ID,可以用组合商品ID作为标识 |
string |
image_url |
转换前图片地址 |
string |
item_title |
转换前的商品名称:用于多规格、组合商品转换标品场景 |
string |
price |
转换前的商品售价:用于多规格、组合商品转换标品场景 |
number |
quantity |
转换前的商品数量:用于多规格、组合商品转换标品场景 |
number |
sku_id |
转换前的货号:用于多规格、组合商品转换标品场景 |
string |
type |
类型,多规格multi、组合combined |
string |
2.39. RtnReqPaging
退换货申请单分页对象
| 名称 | 说明 | 类型 |
|---|---|---|
page |
页码 |
integer (int32) |
page_count |
总页数 |
integer (int32) |
page_size |
页大小 |
integer (int32) |
rtnReqs |
退换货申请单列表 |
< RtnReq > array |
total |
总条数 |
integer (int64) |
2.41. RtnReqSubmitResponse
退换货申请单新建响应
| 名称 | 说明 | 类型 |
|---|---|---|
code |
样例 : |
string |
id |
样例 : |
string |
message |
样例 : |
string |
success |
默认值 : |
boolean |
2.42. SaleFrontItem
平台商品行信息
| 名称 | 说明 | 类型 |
|---|---|---|
barcode |
条码 |
string |
extend_props |
扩展信息 |
string |
goods |
商品 |
|
goods_class |
商品类型 |
string |
goods_unit |
商品单位 |
string |
oid |
子订单号 |
string |
refund_id |
退款id |
string |
refund_status |
退款状态 |
string |
sku_id |
平台SKU ID |
string |
spec |
属性 |
|
spec2 |
平台商品的规格,形如:500g、500ml |
string |
status |
平台状态 |
string |
tc_order_id |
样例 : |
string |
tc_payment |
样例 : |
string |
virtual_wrh |
虚拟仓库 |
|
wrh |
仓库信息 |
2.43. SaleOrderLog
订单日志
| 名称 | 说明 | 类型 |
|---|---|---|
action |
操作 |
string |
action_caption |
操作标题 |
string |
message |
操作说明 |
string |
operator |
操作人 |
string |
order_id |
订单号 |
string |
rtn_id |
退换货单号 |
string |
tenant_id |
租户ID |
string |
time |
操作时间 |
string (date-time) |
2.44. WaybillInfo
运单
| 名称 | 说明 | 类型 |
|---|---|---|
carrier |
承运商 |
|
station |
站点 |
|
station_type |
站点类型 |
string |
suggest_station |
建议站点 |
|
suggest_station_type |
建议站点类型 |
string |
virtual_station |
虚拟站点 |
|
virtual_station_type |
虚拟站点类型 |
string |
waybill_id |
运单号 |
string |
2.45. 联系方式(soms)
联系方式
| 名称 | 说明 | 类型 |
|---|---|---|
email |
邮箱 |
string |
fax |
传真 |
string |
mobile |
手机(mobile和telephone建议给值mobile) |
string |
name |
姓名 |
string |
private_mobile |
脱敏手机号 |
string |
private_name |
脱敏名称 |
string |
telephone |
电话 |
string |