Bbili-open-mcpMCP
★

带货订单查询

POST#83api SHOP_ORDER_INFO
https://member.bilibili.com/arcopen/fn/market/common/page

开放能力 / 交易电商 / 电商 / 接口 / 订单模块接口

调用该接口可查询带货订单信息

body 参数

名称类型必填说明
openIdstring是开放平台openId
pageSizeint否每页订单数量,默认100,取值区间[1,200]
nextPageIndexint否下一页索引,第一页传0
queryTimeTypeint否查询时间类型,时间区间查询时必传,固定值1-支付完成时间
queryStartTimeint64否订单查询开始时间,毫秒级时间戳
queryEndTimeint64否订单查询结束时间,毫秒级时间戳
orderIdsstring否订单号,按英文逗号分隔,最多10个,按父单匹配

响应字段

名称类型必填说明
successbool否接口是否成功
codeint64否返回码,成功默认 0
messagestring否返回信息
dataobject否分页结果
pageNumint否当前页码,按 nextPageIndex / pageSize + 1 计算
pageSizeint否本次查询分页大小
totalint64否总记录数
listlist否订单列表
orderIdstring否父订单号
orderStatusint否订单状态:1-支付完成;2-确认收货;3-结算完成;4-已取消
goodsIdstring否商品ID
goodsNamestring否商品名称
goodsImgUrlstring否商品图片URL
merchantNamestring否商家名称
shopIdstring否店铺ID
settlePriceint64否计费金额,单位分
commRatioint64否带货佣金比例,真实值x100
commissionAmountint64否带货佣金,单位分
payTimestring否订单支付时间,格式 yyyy-MM-dd HH:mm:ss
entryTimestring否确认收货时间,格式 yyyy-MM-dd HH:mm:ss
upSettleTimestring否UP主佣金结算时间,格式 yyyy-MM-dd HH:mm:ss,未结算时为空
upUidstring否UP主UID
commNicknamestring否UP主昵称
commSceneint否带货场景:1-视频;2-直播;3-橱窗;4-动态图文;5-其他
contentTypeint否内容类型:0-直播;1-稿件;2-动态;3-专栏;-1-商品
contentIdstring否直播间id/稿件id
salesTypeint否佣金类型:1-自带货;2-通用;3-定向
payStepIdint否订单支付阶段:0-现货;1-定金;2-尾款

调用方式

javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "83", "query": {…}, "body": {…} }

// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "83", "dryRun": true }

// 生成完整调用代码
bili_codegen { "ref": "83", "lang": "python" }

官方请求示例

bash
curl --location --request GET 'https://{gateway-host}/mall-settle/open/platform/commSettle/page?uid=123456&pageSize=20&nextPageIndex=0&queryTimeType=1&queryStartTime=1744819200000&queryEndTime=1744905599000' \
--header 'Accept: application/json' \
--header 'Access-Token: your-access-token' \
--header 'x-bili-timestamp: 1744905600' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: your-signature'

原始文档:083_带货订单查询.md(5658 字节)。用 bili_docs_get { "ref": "83" } 读全文,或用 bili_api_spec { "ref": "83" } 取结构化规格。