Bbili-open-mcpMCP
★

订单列表查询

POST#78api SHOP_ORDER_INFO
https://member.bilibili.com/arcopen/fn/market/common/order_searchList

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

调用该接口可查询订单列表

body 参数

名称类型必填说明
productstring否商品,int型代表商品ID,其它代表商品名称
refund_statusint否售后状态:0-无售后;1-售后中;2-退款中;3-退款成功;4-售后关闭;5-退款失败
tracking_nostring否物流单号
create_time_startint否下单时间:开始,秒级时间戳
create_time_endint否下单时间:截止,秒级时间戳
pay_time_startint否支付时间:开始,秒级时间戳
pay_time_endint否支付时间:截止,秒级时间戳
pre_stepint否102-待支付定金;103-待支付尾款;106-未付定金取消;107-已付定金取消;108-未补尾款取消;
order_statuslist否订单状态:1-待支付;2-支付失败;3-待发货;4-待收货;5-已完成;6-已关闭(支付前关闭);7-已关闭(支付后关闭);300-订单待审核;301-审核通过;302-审核不通过
update_time_startint否更新时间:开始,秒级时间戳
update_time_endint否更新时间:截止,秒级时间戳
sizeint是单页大小,限制100以内,超过按100
pageint是页码,1页开始
sort_rulestring否排序,ctime订单创建时间;mtime订单更新时间;asc 升序;desc 倒序;默认ctime desc

响应字段

名称类型必填说明
shop_order_listlist否订单信息
totalint64否总数
shop_idint否店铺ID
shop_namestring否店铺名称
order_idstring否店铺订单号
order_levelint否订单层级
order_typeint否订单类型:0-现货订单;1-全款预售订单;2-定金预售订单;3-惊喜赏发货订单;4-惊喜赏抽赏订单;5-游戏点卡订单;6-虚拟订单;7-预订金订单(该订单类型仅供参考,请以SKU维度的订单类型为准)
order_type_descstring否订单类型描述
order_statusint否订单状态:1-待支付;2-支付失败;3-待发货;4-待收货;5-已完成;6-已关闭(支付前关闭);7-已关闭(支付后关闭);102-待支付定金;103-待支付尾款;106-未付定金取消;107-已付定金取消;108-未补尾款取消;
order_status_descstring否订单状态描述
pay_timeint否支付时间,秒级时间戳
finish_timeint否订单完成时间时间,秒级时间戳
create_timeint否下单时间,秒级时间戳
update_timeint否订单更新时间,秒级时间戳
cancel_reasonstring否取消原因
buyer_wordsstring否买家留言
order_mark_listlist否商家备注
shop_flagint否插旗信息:1-灰色、2-红色、3-橘色、4-绿色、5-蓝色、6-紫色
pay_typestring否支付方式:支付宝;微信支付;qq钱包;B币;花呗分期;交通银行;支付宝国际;微信跨境;微信支付分;花呗;招行一网通支付;新微信支付
channel_payment_noint否支付渠道的流水号
order_amountint否订单金额(单位:分)
pay_amountint否支付金额(单位:分)
post_amountint否快递费(单位:分)
modify_amountint否改价金额变化量(单位:分)
promotion_amountint否订单优惠总金额(单位:分)
post_telstring否收件人电话
post_receiverstring否收件人姓名
post_addrstruct否收件人地址
ship_timeint否发货时间,秒级时间戳
logistics_infolist否物流信息
sku_order_listlist否商品单信息
post_origin_amountint否运费原价(单位:分)
tax_amountint否税费(子单税费之和)
merge_order_idstring否合并发货ID
open_idstring否用户uid对应client_id下映射
unamestring否用户昵称
user_id_infolist否用户证件信息
provincestruct否省/直辖市
citystruct否市
townstruct否区县
encrypt_detailstring否详细地址
namestring否名称
idstring否地区ID
tracking_nostring否物流单号
companystring否物流公司
company_namestring否物流公司名称
product_infolist否商品信息
sku_idint否商品skuId
product_countint否发货商品数量
sku_order_idstring否店铺子订单号,由平台生成,平台下唯一
goods_priceint否商品原价
order_idstring否商品订单号
parent_order_idstring否父订单号(店铺订单号)
order_typeint否订单类型:0-现货订单;1-全款预售订单;2-定金预售订单;3-惊喜赏发货订单;4-惊喜赏抽赏订单;5-游戏点卡订单;6-虚拟订单;7-预订金订单
finish_timeint否订单完成时间,秒级时间戳
exp_ship_timeint否预计最晚发货时间,秒级时间戳
goods_typeint否商品类型:0-现货;1-预售;2-先行预定;3-全款预售;4-众筹
product_idint否商品ID
sku_idint否商品SKU ID
specstring否商品规格
cate_idint否末级类目
origin_amountint否商品现价(单位:分)
item_numint否订单商品数量
sum_amountint否商品现价 件数
product_picstring否商品图片
product_namestring否商品名称
after_sale_infostruct否售后信息
receive_typeint否运输方式:1-邮寄;2-自提
product_id_strstring否商品ID,字符串型
tax_amountint否税费
promotion_detailstruct否优惠信息
shop_codestruct否商家编码
gift_product_typestring否赠品类型:1-主品单;0-免费赠品
gift_relation_order_idsstring否赠品绑定子订单号,如果是主品单,则关联的是赠品子订单号;如果是赠品,则关联的是主品子订单号
refund_statusint否售后状态:0-无售后;1-售后中;2-退款中;3-退款成功;4-售后关闭;5-退款失败
promotion_info_listlist否优惠列表
discount_infostruct否营销明细
settle_infostruct否结算明细
discount_typeint否优惠类型
coupon_typeint否优惠券类型
discount_idint否营销ID
discount_namestring否营销名称
discount_amountint否优惠金额(单位:分)
discount_origin_amountint否优惠原金额(单位:分)
stepint否使用阶段
target_scene_idint否优惠阶段(预售/现货/尾款)
coupon_idint否券模板ID
ratio_typeint否分摊类型:0-平台全分摊;1-商家平台按比例分摊;2-商家全分摊
platform_costint否平台承担金额(单位:分),订单参与活动和优惠中平台承担部分的总金额
shop_costint否商家承担金额(单位:分),订单参与活动和优惠中商家承担部分的总金额
suppler_activity_idint否供应商活动ID
coupon_settle_typeint否优惠券结算类型
crystal_numint否盲盒优惠,魔晶优惠数量
reduction_magic_stoneint否优惠魔石
show_namestring否展示名称
activity_mergedint否是否有合并的活动类型
layerint否优惠层级:1-单品;2-店铺;3-平台
encrypt_id_card_nostring否证件号
encrypt_id_card_namestring否证件姓名
phone_nostring否手机号

调用方式

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

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

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

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/market/common/order_searchlist' \
--header 'Accept: application/json' \
--header 'Access-Token: a24e56a0fc0093668bca0f3a15410ea2' \
--header 'Content-Type: application/json' \
--header 'x-bili-timestamp: 1712473117' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: afdf0ddc6dd8f5af9c7f25cf3115a03142e67df99e15f909a17c11e4c82ad4f9' \
--header 'x-bili-signature-nonce: 1712473117993237000' \
--header 'x-bili-accesskeyid: 8ca079bc20ce433d' \
--header 'x-bili-content-md5: 795a2d7e13f989cee460801379fe543c' \
--header 'Connection: keep-alive' \
--data-raw '{
  "page": 1,
  "size": 1
}'

原始文档:078_订单列表查询.md(22216 字节)。用 bili_docs_get { "ref": "78" } 读全文,或用 bili_api_spec { "ref": "78" } 取结构化规格。