接口应在服务器端调用,不可在前端(小程序、网页、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 | 订单号 | - |
| create_time | timestamp | 保障单创建时间戳 | - |
| update_time | timestamp | 保障单更新时间戳 | - |
| apply_reason | string | 申请原因 | - |
| product_info | objarray | 商品信息 | - |
| expire_time | number | 保障单过期时间 | - |
| openid | string | 买家身份标识 | - |
| unionid | string | 买家在开放平台的唯一标识符,若当前微信小店已绑定到微信开放平台账号下会返回,详见 小店UnionID 机制说明 | - |
| 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 | objarray | 协商历史 | - |
| status | string | 保障单当前状态 | 枚举值 |
Res.guarantee_order.product_info(Array) Object Payload
商品信息
| 参数名 | 类型 | 说明 |
|---|---|---|
| thumb_img | string | 商品小图 |
| title | string | 商品名称 |
| real_price | number | 商品价格 |
| product_cnt | number | 商品件数 |
| detail | string | 商品详情 |
| product_id | string | 商品spuid |
| sku_id | string | 商品skuid |
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 | 鉴定凭证列表(旧字段,推荐使用 `new_identify_proof_pic_list`)。C2C 存储的多媒体不在此字段返回 |
| fee_proof_pic_list | array | 费用凭证列表(旧字段,推荐使用 `new_fee_proof_pic_list`)。C2C 存储的多媒体不在此字段返回 |
| apply_reason | number | 申请原因,1-假一赔三假冒注册商标,2-假一赔三假冒材质成分 |
| acctual_pay | number | 最终赔付金额 |
| new_identify_proof_pic_list | objarray | 鉴定凭证多媒体列表,包含图片和视频,推荐使用 |
| new_fee_proof_pic_list | objarray | 费用凭证多媒体列表,包含图片和视频,推荐使用 |
Res.guarantee_order.fake_one_pay_four_info.new_identify_proof_pic_list(Array) Object Payload
鉴定凭证多媒体列表,包含图片和视频,推荐使用
| 参数名 | 类型 | 说明 | 枚举 |
|---|---|---|---|
| type | number | 媒体类型。1:图片;2:视频 | 枚举值 |
| picture | object | 图片信息,type 为 1 时有值 | - |
| video | object | 视频信息,type 为 2 时有值 | - |
| video_play_length | number | 视频时长(秒),仅 type 为 2 且上传时填写了时长时有值 | - |
Res.guarantee_order.fake_one_pay_four_info.new_identify_proof_pic_list(Array).picture Object Payload
图片信息,type 为 1 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 图片临时访问 URL |
Res.guarantee_order.fake_one_pay_four_info.new_identify_proof_pic_list(Array).video Object Payload
视频信息,type 为 2 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 视频临时访问 URL |
Res.guarantee_order.fake_one_pay_four_info.new_fee_proof_pic_list(Array) Object Payload
费用凭证多媒体列表,包含图片和视频,推荐使用
| 参数名 | 类型 | 说明 | 枚举 |
|---|---|---|---|
| type | number | 媒体类型。1:图片;2:视频 | 枚举值 |
| picture | object | 图片信息,type 为 1 时有值 | - |
| video | object | 视频信息,type 为 2 时有值 | - |
| video_play_length | number | 视频时长(秒),仅 type 为 2 且上传时填写了时长时有值 | - |
Res.guarantee_order.fake_one_pay_four_info.new_fee_proof_pic_list(Array).picture Object Payload
图片信息,type 为 1 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 图片临时访问 URL |
Res.guarantee_order.fake_one_pay_four_info.new_fee_proof_pic_list(Array).video Object Payload
视频信息,type 为 2 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 视频临时访问 URL |
Res.guarantee_order.bad_pay_info Object Payload
坏损包退保障单详情
| 参数名 | 类型 | 说明 |
|---|---|---|
| bad_level | number | 损坏程度 |
| content | string | 损坏凭证文字 |
| pic_list | array | 损坏凭证图片列表(旧字段,推荐使用 `new_pic_list`)。C2C 存储的多媒体不在此字段返回 |
| 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 | objarray | 凭证多媒体列表,按类型分组 |
| new_pic_list | objarray | 损坏凭证多媒体列表,包含图片和视频,推荐使用 |
Res.guarantee_order.bad_pay_info.title_pic_list(Array) Object Payload
凭证多媒体列表,按类型分组
| 参数名 | 类型 | 说明 | 枚举 |
|---|---|---|---|
| title | number | 凭证类型,1-坏损商品图;2-全部商品图;3-包裹图 | 枚举值 |
| pic_list | array | 该类型下的凭证列表(旧字段,推荐使用 `new_media_list`)。C2C 存储的多媒体不在此字段返回 | - |
| new_media_list | objarray | 该类型下的凭证多媒体列表,包含图片和视频,推荐使用 | - |
Res.guarantee_order.bad_pay_info.title_pic_list(Array).new_media_list<Array> Object Payload
该类型下的凭证多媒体列表,包含图片和视频,推荐使用
| 参数名 | 类型 | 说明 | 枚举 |
|---|---|---|---|
| type | number | 媒体类型。1:图片;2:视频 | 枚举值 |
| picture | object | 图片信息,type 为 1 时有值 | - |
| video | object | 视频信息,type 为 2 时有值 | - |
| video_play_length | number | 视频时长(秒),仅 type 为 2 且上传时填写了时长时有值 | - |
Res.guarantee_order.bad_pay_info.title_pic_list(Array).new_media_list<Array>.picture Object Payload
图片信息,type 为 1 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 图片临时访问 URL |
Res.guarantee_order.bad_pay_info.title_pic_list(Array).new_media_list<Array>.video Object Payload
视频信息,type 为 2 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 视频临时访问 URL |
Res.guarantee_order.bad_pay_info.new_pic_list(Array) Object Payload
损坏凭证多媒体列表,包含图片和视频,推荐使用
| 参数名 | 类型 | 说明 | 枚举 |
|---|---|---|---|
| type | number | 媒体类型。1:图片;2:视频 | 枚举值 |
| picture | object | 图片信息,type 为 1 时有值 | - |
| video | object | 视频信息,type 为 2 时有值 | - |
| video_play_length | number | 视频时长(秒),仅 type 为 2 且上传时填写了时长时有值 | - |
Res.guarantee_order.bad_pay_info.new_pic_list(Array).picture Object Payload
图片信息,type 为 1 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 图片临时访问 URL |
Res.guarantee_order.bad_pay_info.new_pic_list(Array).video Object Payload
视频信息,type 为 2 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 视频临时访问 URL |
Res.guarantee_order.history_list(Array) Object Payload
协商历史
| 参数名 | 类型 | 说明 |
|---|---|---|
| event | number | 协商历史事件类型 |
| time | number | 事件发生时间戳 |
| content | string | 相关文字内容 |
| kf_name | string | 客服名称 |
| pic_list | array | 相关凭证列表(旧字段,推荐使用 `new_media_list`)。C2C 存储的多媒体不在此字段返回 |
| new_media_list | objarray | 相关凭证多媒体列表,包含图片和视频,推荐使用 |
Res.guarantee_order.history_list(Array).new_media_list<Array> Object Payload
相关凭证多媒体列表,包含图片和视频,推荐使用
| 参数名 | 类型 | 说明 | 枚举 |
|---|---|---|---|
| type | number | 媒体类型。1:图片;2:视频 | 枚举值 |
| picture | object | 图片信息,type 为 1 时有值 | - |
| video | object | 视频信息,type 为 2 时有值 | - |
| video_play_length | number | 视频时长(秒),仅 type 为 2 且上传时填写了时长时有值 | - |
Res.guarantee_order.history_list(Array).new_media_list<Array>.picture Object Payload
图片信息,type 为 1 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 图片临时访问 URL |
Res.guarantee_order.history_list(Array).new_media_list<Array>.video Object Payload
视频信息,type 为 2 时有值
| 参数名 | 类型 | 说明 |
|---|---|---|
| ticket_url | string | 视频临时访问 URL |
4. 枚举信息
Res.guarantee_order.status Enum
保障单当前状态
| 枚举值 | 描述 |
|---|---|
| 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 | 用户取消申请 |
Res.guarantee_order.fake_one_pay_four_info.new_identify_proof_pic_list(Array).type Enum
媒体类型。1:图片;2:视频
| 枚举值 | 描述 |
|---|---|
| 1 | 图片 |
| 2 | 视频 |
Res.guarantee_order.fake_one_pay_four_info.new_fee_proof_pic_list(Array).type Enum
媒体类型。1:图片;2:视频
| 枚举值 | 描述 |
|---|---|
| 1 | 图片 |
| 2 | 视频 |
Res.guarantee_order.bad_pay_info.title_pic_list(Array).title Enum
凭证类型,1-坏损商品图;2-全部商品图;3-包裹图
| 枚举值 | 描述 |
|---|---|
| 1 | 坏损商品图 |
| 2 | 全部商品图 |
| 3 | 包裹图 |
Res.guarantee_order.bad_pay_info.title_pic_list(Array).new_media_list<Array>.type Enum
媒体类型。1:图片;2:视频
| 枚举值 | 描述 |
|---|---|
| 1 | 图片 |
| 2 | 视频 |
Res.guarantee_order.bad_pay_info.new_pic_list(Array).type Enum
媒体类型。1:图片;2:视频
| 枚举值 | 描述 |
|---|---|
| 1 | 图片 |
| 2 | 视频 |
Res.guarantee_order.history_list(Array).new_media_list<Array>.type Enum
媒体类型。1:图片;2:视频
| 枚举值 | 描述 |
|---|---|
| 1 | 图片 |
| 2 | 视频 |
5. 注意事项
6. 代码示例
请求示例
{
"guarantee_order_id": 2000001077270153
}
返回示例
{
"errcode": 0,
"errmsg": "ok",
"guarantee_order": {
"guarantee_order_id": 2000001077270153,
"type": 2,
"order_id": 3726524657461498624,
"status": "STATUS_WAIT_MERCHANT_HANDLE",
"create_time": 1750000000,
"update_time": 1750000000,
"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,
"apply_reason": 0,
"acctual_pay": 0,
"new_identify_proof_pic_list": [
{
"type": 1,
"picture": {
"ticket_url": "TICKET_URL"
}
}
],
"new_fee_proof_pic_list": [
{
"type": 1,
"picture": {
"ticket_url": "TICKET_URL"
}
}
]
},
"bad_pay_info": {
"bad_level": 0,
"content": "",
"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": "",
"new_pic_list": [
{
"type": 1,
"picture": {
"ticket_url": "TICKET_URL"
}
}
],
"title_pic_list": [
{
"title": 1,
"new_media_list": [
{
"type": 1,
"picture": {
"ticket_url": "TICKET_URL"
}
},
{
"type": 2,
"video": {
"ticket_url": "TICKET_URL"
},
"video_play_length": 15
}
]
}
]
},
"wxa_vip_discounted_price": 0,
"history_list": [
{
"event": 1,
"time": 1750000000,
"content": "",
"new_media_list": [
{
"type": 1,
"picture": {
"ticket_url": "TICKET_URL"
}
}
]
}
]
}
}
7. 错误码
以下是本接口的错误码列表,其他错误码可参考 通用错误码;调用接口遇到报错,可使用官方提供的 API 诊断工具 辅助定位和分析问题。
| 错误码 | 错误描述 |
|---|---|
| 9700223 | 系统失败 |
| 9700224 | 参数错误 |
| 10021041 | 当前售后单不支持此操作,请检查售后单状态 |
| 10021057 | 售后单不存在 |
8. 适用范围
本接口支持「微信小店」账号类型调用。其他账号类型如无特殊说明,均不可调用。
new_identify_proof_pic_list 、 new_fee_proof_pic_list 、 new_pic_list 等多媒体字段, fake_one_pay_four_info 更名「假一赔四」,旧 pic_list 等字段标记废弃。product_id 字段「商品spuid」,新增 sku_id 字段「商品skuid」