# 商家获取保障单列表
接口应在服务器端调用,不可在前端(小程序、网页、APP等)直接调用,具体可参考接口调用指南
接口英文名:searchguaranteeorder
通过该接口可以在微信小店售后管理中获取保障单列表
相关事件通知:保障单更新通知
# 1. 调用方式
# HTTPS 调用
POST https://api.weixin.qq.com/channels/ec/aftersale/searchguaranteeorder?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_list | numarray | 否 | 2000001077270153 | 保障单号 |
order_id_list | numarray | 否 | 3726524657461498624 | 订单号 |
type | number | 否 | - | 想要获取的保障单类型;0-全部类型,1-假一赔三,2-坏损包退 |
begin_time | number | 否 | - | 保障单申请的开始时间戳 |
end_time | number | 否 | - | 保障单申请的结束时间戳 |
status_list | numarray | 否 | - | 保障单当前状态筛选,枚举值参考下文 |
offset | number | 否 | - | 列表起始下标,默认从0开始 |
limit | number | 是 | - | 需要的保障单列表条数 |
# 3. 返回参数
# 返回体 Response Payload
参数名 | 类型 | 示例 | 说明 |
---|---|---|---|
errcode | number | 0 | 错误码 |
errmsg | string | ok | 错误信息 |
guarantee_order_list | objarray | - | 保障单详情列表 |
total_num | number | - | 保障单列表总数 |
# Res.guarantee_order_list(Array) Object Payload
保障单详情列表
参数名 | 类型 | 说明 |
---|---|---|
guarantee_order_id | number | 保障单号 |
type | number | 保障单类型 1-假一赔四 2-坏损包退 |
order_id | number | 订单号 |
status | string | 保障单当前状态,枚举值参考下文 |
create_time | number | 保障单创建时间戳 |
update_time | number | 保障单更新时间戳 |
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_list(Array).product_infoObject Payload
Object Payload
商品信息
参数名 | 类型 | 说明 |
---|---|---|
thumb_img | string | 商品小图 |
title | string | 商品名称 |
real_price | number | 商品价格 |
product_cnt | number | 商品件数 |
detail | string | 商品详情 |
# Res.guarantee_order_list(Array).order_pay_info Object Payload
订单支付信息
参数名 | 类型 | 说明 |
---|---|---|
transaction_id | string | 交易单号 |
# Res.guarantee_order_list(Array).order_present_info Object Payload
送礼信息
参数名 | 类型 | 说明 |
---|---|---|
present_order_id | number | 礼物单号 |
accept_present_time | number | 收礼时间 |
giver_nickname | string | 送礼者微信昵称 |
# Res.guarantee_order_list(Array).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_list(Array).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_list保障单当前状态
枚举值 | 描述 |
---|---|
10 | 等待商家处理 |
15 | 等待平台处理 |
12 | 等待用户确认 |
20 | 等待商家举证 |
25 | 等待用户举证 |
30 | 等待双方举证 |
31 | 等待OP确认 |
32 | 等待支付分付款 |
33 | 无需赔付 |
35 | 赔付中 |
36 | 假一赔四金额异常,待确认 |
40 | 赔付成功 |
45 | 赔付失败 |
50 | 用户取消申请 |
status保障单当前状态
枚举值 | 描述 |
---|---|
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_list": [
2000001077270153
],
"order_id_list": [
3726524657461498624
]
"type": 0
}
返回示例
{
"errcode": 0,
"errmsg": "ok"
}
# 6. 错误码
以下是本接口的错误码列表,其他错误码可参考 通用错误码
错误码 | 错误描述 | 解决方案 |
---|---|---|
9700223 | 系统失败 | |
9700224 | 参数错误 | |
10021041 | 当前售后单不支持此操作,请检查售后单状态 | |
10021057 | 售后单不存在 |
# 7. 适用范围
本接口支持「微信小店」账号类型调用。其他账号类型如无特殊说明,均不可调用。