小程序开放平台

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

获取订单信息

开发
>
服务端 API
>
电商担保交易能力
>
API列表
>
获取订单信息
>
更新时间:2025-05-22 21:02:28

支持第三方调用

支持沙箱环境调用

禁止个人开发者调用

获取订单信息

请求地址

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

公共请求参数

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

业务请求参数

名称
类型
是否必须
描述
out_order_idstring外部订单号
open_idstringopenId

请求示例

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

响应参数

名称
类型
是否必须
描述
data
struct
out_order_id
string外部订单号
open_id
string小红书用户openId
path
string订单详情小程序链接
biz_create_time
int64外部订单创建时间
biz_update_time
int64外部订单修改时间
order_expired_time
int64订单过期时间
product_infos
list_struct订单商品
out_product_id
string外部商品id
out_sku_id
string外部商品skuId
num
int32外部商品数量
sale_price
int64商品销售价格
real_price
int64商品实付价格
discount_infos
list_struct商品优惠明细
name
string商品优惠名称
price
int64商品优惠价格
num
int32商品优惠数量
image
string生成订单时商品的实际图片,建议定制品商品下使用,普通商品不建议使用。如果图片违规3次将被停用此功能
price_info
struct订单价格信息
order_price
int64订单实付价格
freight_price
int64订单运费
extra_price_infos
list_struct订单额外价格
name
string订单额外价格名称
price
int64订单额外价格
num
int32订单额外价格数量
status
int32订单状态
open_pay_type
string支付方式
successbool是否成功
msgstring说明,正确响应时为 success,错误响应时为错误描述
codeint32错误码,正确响应时为 0,错误响应时非0

响应示例

{
    "data":{
        "out_order_id":"string",
        "open_id":"string",
        "path":"string",
        "biz_create_time":0,
        "biz_update_time":0,
        "order_expired_time":0,
        "product_infos":[
            {
                "out_product_id":"string",
                "out_sku_id":"string",
                "num":0,
                "sale_price":0,
                "real_price":0,
                "discount_infos":[
                    {
                        "name":"string",
                        "price":0,
                        "num":0
                    }
                ],
                "image":"string"
            }
        ],
        "price_info":{
            "order_price":0,
            "freight_price":0,
            "extra_price_infos":[
                {
                    "name":"string",
                    "price":0,
                    "num":0
                }
            ]
        },
        "status":0,
        "open_pay_type":"string"
    },
    "success":true,
    "msg":"string",
    "code":0
}

业务错误码

参见错误码