申请售后V2
POST
/v2/afterSale
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
orderSn
string
三方订单号
sku
number
商品sku
num
number
申请售后的商品数量
goodsFee
number
可选
退货退款时,需要填写
logisticFee
number
必需
仅做参考作用,具体以实际为准。
serviceTypeCode
string
必需
必须填写校验接口中serviceType项返回的code
pickTypeCode
string
可选
必须返回校验接口中pickType返回的code
packageTypeCode
string
可选
必须根据校验接口的返回情况,决定该项是否必须
如果必须,必须填写校验接口packageType中返回的code
returnTypeCode
string
可选
reasonsTypeCode
string
可选
必须根据校验接口的返回情况,决定该项是否必须
如果必须,必须填写校验接口reasonsType中返回的code
reasonsDescription
string
必需
限制最长150个文字
serviceTime
string
可 选
vouchers
array[string]
可选
必须根据校验接口的返回情况,决定该项是否必须
如果必须,必须填写上传售后凭证接口返回的url
最多填写5个url
userInfo
object
可选
仅当取件方式为上门取件、售后类型为维修、换货 需要传递此项
consignee
string
联系人姓名
phone
string
联系人电话
province
string
省
city
string
市
area
string
区
street
string
街道
description
string
详细地址
示例
{
"orderSn": "string",
"sku": 0,
"num": 0,
"goodsFee": 0,
"logisticFee": 0,
"serviceTypeCode": "string",
"pickTypeCode": "string",
"packageTypeCode": "string",
"returnTypeCode": "string",
"reasonsTypeCode": "string",
"reasonsDescription": "string",
"serviceTime": "string",
"vouchers": [
"string"
],
"userInfo": {
"consignee": "string",
"phone": "string",
"province": "string",
"city": "string",
"area": "string",
"street": "string",
"description": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/afterSale' \
--header 'Content-Type: application/json' \
--data-raw '{
"orderSn": "string",
"sku": 0,
"num": 0,
"goodsFee": 0,
"logisticFee": 0,
"serviceTypeCode": "string",
"pickTypeCode": "string",
"packageTypeCode": "string",
"returnTypeCode": "string",
"reasonsTypeCode": "string",
"reasonsDescription": "string",
"serviceTime": "string",
"vouchers": [
"string"
],
"userInfo": {
"consignee": "string",
"phone": "string",
"province": "string",
"city": "string",
"area": "string",
"street": "string",
"description": "string"
}
}'
返回响应
🟢200成功
application/json
Body
code
number
必需
msg
string
必需
data
object
必需
id
integer
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"id": 0
}
}