# 获取保障单详情
接口应在服务器端调用,不可在前端(小程序、网页、APP等)直接调用,具体可参考接口调用指南
接口英文名:getguaranteeorder
通过该接口可以在微信小店售后管理中获取保障单详情
相关事件通知:保障单更新通知
# 1. 调用方式
# HTTPS 调用
POST https://api.weixin.qq.com/channels/ec/aftersale/getguaranteeorder?access_token=ACCESS_TOKEN
# 云调用
- 本接口不支持云调用
# 第三方调用
本接口支持第三方平台代商家调用。
该接口所属的权限集 id 为:131
服务商获得其中之一权限集授权后,可通过使用 authorizer_access_token 代商家进行调用,具体可查看 第三方调用 说明文档。
# 2. 请求参数
# 查询参数 Query String parameters
参数名 | 类型 | 必填 | 示例 | 说明 |
---|---|---|---|---|
access_token | string | 是 | ACCESS_TOKEN | 接口调用凭证,可使用 access_token、authorizer_access_token |
# 请求体 Request Payload
参数名 | 类型 | 必填 | 示例 | 说明 |
---|---|---|---|---|
guarantee_order_id | number | 是 | 2000001077270153 | 保障单号 |
# 3. 返回参数
# 返回体 Response Payload
参数名 | 类型 | 说明 |
---|---|---|
errcode | number | 错误码 |
errmsg | string | 错误信息 |
guarantee_order | object | 保障单详情 |
# Res.guarantee_order Object Payload
保障单详情
参数名 | 类型 | 说明 |
---|---|---|
guarantee_order_id | number | 保障单号 |
type | number | 保障单类型 1-假一赔四 2-坏损包退 |
order_id | number | 订单号 |
status | string | 保障单当前状态,参考下文 |
create_time | timestamp | 保障单创建时间戳 |
update_time | timestamp | 保障单更新时间戳 |
apply_reason | string | 申请原因 |
product_info | objarray | 商品信息 |
expire_time | number | 保障单过期时间 |
openid | string | 买家身份标识 |
unionid | string | 买家在开放平台的唯一标识符,若当前微信小店已绑定到微信开放平台账号下会返回,详见[UnionID 机制说明](https://developers.weixin.qq.com/doc/oplatform/open/intro.html) |
pay_amount | number | 退款金额(分) |
merchant_refuse_reason | string | 商家拒绝原因 |
order_pay_info | object | 订单支付信息 |
complete_time | number | 保障单完成时间 |
apply_reason_type | number | 申请原因 |
order_present_info | object | 送礼信息 |
order_type | number | 发起保障的订单类型;0-普通订单,10-礼物订单 |
fake_one_pay_four_info | object | 假一赔四保障单详情 |
bad_pay_info | object | 坏损包退保障单详情 |
wxa_vip_discounted_price | number | 小程序会员已经优惠金额,单位分 |
history_list | array | 协商历史 |
# Res.guarantee_order.product_info(Array) Object Payload
商品信息
参数名 | 类型 | 说明 |
---|---|---|
thumb_img | string | 商品小图 |
title | string | 商品名称 |
real_price | number | 商品价格 |
product_cnt | number | 商品件数 |
detail | string | 商品详情 |
# Res.guarantee_order.order_pay_info Object Payload
订单支付信息
参数名 | 类型 | 说明 |
---|---|---|
transaction_id | string | 交易单号 |
# Res.guarantee_order.order_present_info Object Payload
送礼信息
参数名 | 类型 | 说明 |
---|---|---|
present_order_id | number | 礼物单号 |
accept_present_time | number | 收礼时间 |
giver_nickname | string | 送礼者微信昵称 |
# Res.guarantee_order.fake_one_pay_four_info Object Payload
假一赔四保障单详情
参数名 | 类型 | 说明 |
---|---|---|
identify_fee | number | 鉴定费用 |
product_fee | number | 商品费用 |
total_pay_fee | number | 预计赔付 |
identify_proof_pic_list | array | 鉴定凭证media_id列表,根据mediaid获取文件内容接口 |
fee_proof_pic_list | array | 费用凭证media_id列表,根据mediaid获取文件内容接口 |
apply_reason | number | 申请原因,1-假一赔四假冒注册商标,2-假一赔四假冒材质成分 |
acctual_pay | number | 最终赔付金额 |
# Res.guarantee_order.bad_pay_info Object Payload
坏损包退保障单详情
参数名 | 类型 | 说明 |
---|---|---|
bad_level | number | 损坏程度 |
content | string | 损坏凭证文字 |
pic_list | array | 损坏凭证图片media_id列表,根据mediaid获取文件内容接口 |
pay_fee | number | 赔付金额,含运费 |
merchant_modify_level | number | 商家协商损坏程度 |
merchant_remark | string | 商家备注 |
platform_modify_level | number | 平台调整损坏程度 |
refund_type | number | 退款类型,1-仅退款,2-退货退款,3-换货 |
receive_product | number | 是否收到货,1-未收到货,2-收到货 |
refund_reason | number | 退款原因 |
refund_reason_text | string | 退款原因文案 |
title_pic_list | array | 凭证图片media_id列表,根据mediaid获取文件内容接口 |
# 4. 注意事项
保障单当前状态
枚举值 | 描述 |
---|---|
STATUS_WAIT_MERCHANT_HANDLE | 等待商家处理 |
STATUS_WAIT_PLATFORM_HANDLE | 等待平台处理 |
STATUS_WAIT_USER_CONFIRM | 等待用户确认 |
STATUS_WAIT_MERCHANT_PROOF | 等待商家举证 |
STATUS_WAIT_USER_PROOF | 等待用户举证 |
STATUS_WAIT_BOTH_PROOF | 等待双方举证 |
STATUS_WAIT_OP_COMFIRM | 等待OP确认 |
STATUS_WAIT_PAYSCORE_DONE | 等待支付分付款 |
STATUS_NO_NEED_PAY | 无需赔付 |
STATUS_PAYING | 赔付中 |
STATUS_PAY_BLOCK | 假一赔四金额异常,待确认 |
STATUS_PAY_SUCC | 赔付成功 |
STATUS_PAY_FAIL | 赔付失败 |
STATUS_USER_CANCEL | 用户取消申请 |
# 5. 代码示例
请求示例
{
"guarantee_order_id": 2000001077270153
}
返回示例
{
"errcode": 0,
"errmsg": "ok",
"guarantee_order": {
"guarantee_order_id": 0,
"type": 0,
"order_id": 0,
"status": "",
"create_time": 1750000000000,
"update_time": 1750000000000,
"apply_reason": "",
"product_info": {
"thumb_img": "",
"title": "",
"real_price": 0,
"product_cnt": 0,
"detail": ""
},
"expire_time": 0,
"openid": "",
"unionid": "",
"pay_amount": 0,
"merchant_refuse_reason": "",
"order_pay_info": {
"transaction_id": ""
},
"complete_time": 0,
"apply_reason_type": 0,
"order_present_info": {
"present_order_id": 0,
"accept_present_time": 0,
"giver_nickname": ""
},
"order_type": 0,
"fake_one_pay_four_info": {
"identify_fee": 0,
"product_fee": 0,
"total_pay_fee": 0,
"identify_proof_pic_list": [
""
],
"fee_proof_pic_list": [
""
],
"apply_reason": 0,
"acctual_pay": 0
},
"bad_pay_info": {
"bad_level": 0,
"content": "",
"pic_list": [
""
],
"pay_fee": 0,
"merchant_modify_level": 0,
"merchant_remark": "",
"platform_modify_level": 0,
"refund_type": 0,
"receive_product": 0,
"refund_reason": 0,
"refund_reason_text": "",
"title_pic_list": [
""
]
},
"wxa_vip_discounted_price": 0
}
}
# 6. 错误码
以下是本接口的错误码列表,其他错误码可参考 通用错误码
错误码 | 错误描述 | 解决方案 |
---|---|---|
9700223 | 系统失败 | |
9700224 | 参数错误 | |
10021041 | 当前售后单不支持此操作,请检查售后单状态 | |
10021057 | 售后单不存在 |
# 7. 适用范围
本接口支持「微信小店」账号类型调用。其他账号类型如无特殊说明,均不可调用。