小程序开放平台

文档中心
API 简介
登录
接口调用凭证
小程序码与链接
小程序基础信息
本地担保交易能力
通用担保交易能力
业务接入流程
API列表
新增订单
获取支付token
订单查询
同步订单状态
新增售后
同步售后单状态
获取售后订单详情
结算明细查询
电商担保交易能力
地点管理能力
客服能力
群聊能力
小说能力
短剧能力
服务组件能力
直播能力

[交易组件]获取售后订单详情

开发
>
服务端 API
>
通用担保交易能力
>
API列表
>
获取售后订单详情
>
更新时间:2025-05-22 20:58:02

支持第三方调用

支持沙箱环境调用

禁止个人开发者调用

获取售后订单详情

请求地址

POST https://miniapp.xiaohongshu.com/api/rmp/mp/deal/order/after_sales_order/get

公共请求参数

名称
类型
是否必须
描述
app_idstring小程序appid
access_tokenstring小程序调用凭证

业务请求参数

名称
类型
是否必须
描述
out_order_idstring外部订单id,退日历商品时可为空
out_after_sales_order_idstring外部售后单id
open_idstring用户openId

请求示例

{
    "out_order_id":"string",
    "out_after_sales_order_id":"string",
    "open_id":"string"
}

响应参数

名称
类型
是否必须
描述
data
struct
status
int32售后单状态,1-处理中 2-成功 3-失败
out_order_id
string外部订单id,退日历商品时可为空
out_after_sales_order_id
string外部售后单id
open_id
string用户openId
type
int32售后类型
reason
string售后原因
biz_create_time
int64售后单创建的秒级时间戳
price_info
struct售后单价格信息
refund_price
int64订单总价,单位到(分)
freight_price
int64订单运费,单位到(分)
extra_price_infos
list_struct附加费信息,单位到(分)
name
string费用项
price
int64费用之和,单位到(分)
num
int32项目数量,必须大于0
product_infos
list_struct售后单商品信息,担保支付没有保存
out_product_id
string外部商品
out_sku_id
string外部sku商品Id
num
int32购买的商品数量
price
int64商品最终售卖价格,该商品原始售卖价格 - 优惠价格,单位(分)
refund_voucher_detail
list_struct售后单退凭证
voucher_code
string凭证code
refund_price
int64券金额,单位(分)
refund_book_detail
list_struct售后单退预订明细
book_id
string小红书侧预约单订单ID,预约时返回
refund_price
int64退款价格,单位到(分)
product_type
int32售后商品类型,本地生活担保支付必传
auto_confirm
boolfalse-需要二次商家确认 true-不需要商家确认,直接发起退款
successbool是否成功
msgstring说明,正确响应时为 success,错误响应时为错误描述
codeint32错误码,正确响应时为 0,错误响应时非0

响应示例

{
    "data":{
        "status":0,
        "out_order_id":"string",
        "out_after_sales_order_id":"string",
        "open_id":"string",
        "type":0,
        "reason":"string",
        "biz_create_time":0,
        "price_info":{
            "refund_price":0,
            "freight_price":0,
            "extra_price_infos":[
                {
                    "name":"string",
                    "price":0,
                    "num":0
                }
            ]
        },
        "product_infos":[
            {
                "out_product_id":"string",
                "out_sku_id":"string",
                "num":0,
                "price":0
            }
        ],
        "refund_voucher_detail":[
            {
                "voucher_code":"string",
                "refund_price":0
            }
        ],
        "refund_book_detail":[
            {
                "book_id":"string",
                "refund_price":0
            }
        ],
        "product_type":0,
        "auto_confirm":true
    },
    "success":true,
    "msg":"string",
    "code":0
}

业务错误码

参见错误码