Appearance
8.1 退换货申请
接口说明:
Method | URL | ContentType |
---|---|---|
POST | api/restful/refund/apply | application/json |
请求入参说明:
参数 | 类型说明 | 是否必须 | 长度 | 描述 |
---|---|---|---|---|
apply_code | string | 非必须 | 200 | 退换货申请编号(默认可不填,返回值会生成返回) |
order_id | string | 必须 | 50 | 退货对应订单编号 |
apply_type | string | 非必须 | 2 | 退换货申请类型(4=退货,5=换货) ,不填写默认是退货 |
skus | json | 非必须 | [{"sku":商品编号, "num":商品数量, "price”:价格,"ext1":"现金","ext2":"积分"}] 若skus 字段为null则表示整单退。price 表示含税单价,和订单中的一致。 | |
apply_time | string | 非必须 | 0 | 退换货申请时间(2017-12-18 09:22:07) |
apply_reason | string | 非必须 | 200 | 退换货原因 |
apply_name | string | 非必须 | 50 | 退换货联系人(默认订单收货人),不为空时收货人相关信息字段信息必填 |
apply_mobile | string | 非必须 | 50 | 退换货联系手机(默认订单收货人手机) |
apply_telephone | string | 非必须 | 50 | 退换货联系固定电话 |
apply_email | string | 非必须 | 50 | 退货人电子邮件 |
pickup_way | string | 非必须 | 10 | 上门取件、第三方物流(上门=1,第三方=2)默认上门取件 |
province_code | string | 非必须 | 11 | 退货人省份编码(默认订单中的编码) |
city_code | string | 非必须 | 11 | 退货人城市编码(默认订单中的编码) |
county_code | string | 非必须 | 11 | 退货人区县编码(默认订单中的地址) |
town_code | string | 非必须 | 11 | 退货人乡镇编码 |
address | string | 非必须 | 300 | 地址(默认订单中的地址) |
full_address | string | 非必须 | 300 | 退货人详细地址(默认订单中的地址)例如 1_10_100_1000 |
extends | json | 非必须 | [{"ColumnName":"扩展信息名称", "ColumnRemark":"扩展信息备注", "ColumnValue”:"扩展信息值"}] |
返回结果说明:
参数 | 参数说明 | 描述 |
---|---|---|
apply_code | string | 退货申请单编码 |
请求参数示例:
json
{
"apply_code":"",
"skus": [{
"sku": "201027",
"num": 10,
"price": 21.15
}, {
"sku": "201030",
"num": 20,
"price": 48.6
}],
"order_id": "PO001",
"apply_type": "4",
"apply_time": "2017-12-18 14:11:48",
"apply_reason": "产品发错",
"pickup_way": "1",
"address": "上海市XX区XX号",
,
"extends" : [{
"ColumnName" : "DepartmentName",
"ColumnRemark" : "下单部门",
"ColumnValue" : "采购部"
}
]
}
返回数据示例:
json
{
"success": true,
"errormsg ": "",
"requestId ": "9245fe4a-d402-451c-b9ed-9c1a04247482",
"errorcode": 0,
"result": {
" apply_code ": "RO001"
}
}