Bbili-open-mcpMCP
★

订单详情

POST#79api SHOP_ORDER_INFO
https://member.bilibili.com/arcopen/fn/market/common/order_detail

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

调用该接口可查询订单详情

body 参数

名称类型必填说明
shop_order_idstring是店铺父订单号,由平台生成,平台下唯一;

响应字段

名称类型必填说明
shop_idint否店铺id平台下唯一
shop_namestring否商户名称
order_idstring否店铺父订单号,由平台生成,平台下唯一
order_levelint否订单层级,主订单是2级
order_typeint否订单类型::0-购物车订单;1-单商品订单;2-预售订单;3-预订金订单;6-盲盒订单;9-混合订单;13-游戏点卡订单;14-惊喜赏订单;17-虚拟订单
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_list[]string否商家备注
shop_flagint否插旗信息:1-灰色、2-红色、3-橘色、4-绿色、5-蓝色、6-紫色
pay_typeint否支付方式:支付宝;微信支付;qq钱包;B币;花呗分期;交通银行;支付宝国际;微信跨境;微信支付分;花呗;招行一网通支付;新微信支付
channel_payment_nostring否支付渠道的流水号
order_amountint否订单金额(单位:分)
pay_amountint否支付金额(单位:分)
post_amountint否快递费(单位:分)
modify_amountint否改价金额变化量(单位:分)
promotion_amountint否订单优惠总金额(单位:分)
post_telstring否收件人电话
post_receiverstring否收件人姓名
post_addrstruct否收件人地址
ship_timeint否发货时间,秒级时间戳
logistics_infolist否物流信息
sku_order_listlist否订单详情信息,一个主订单下有可以最大返回40个子订单
user_id_infostruct否用户证件信息
post_origin_amountint否运费原价(单位:分)
tax_amountint否税费(子单税费之和)
merge_relation_idstring否合并发货id
open_idstring否用户uid对应client_id下映射
unamestring否用户昵称
up_idint64否带货达人uid(建议以sku维度带货信息为准)
up_namestring否带货达人昵称(建议以sku维度带货信息为准)
up_typestring否带货渠道,直播、橱窗、视频、图文、其他
content_idlong否内容id,”直播”渠道对应直播场次id,”视频”渠道对应视频稿件id,”图文”渠道对应图文id,”其他”渠道专栏id
confirm_statusint否审核确认状态:0-待审核;1-审核通过;2-审核拒绝(含超时未审核)
encrypt_id_card_nostring否证件号
encrypt_id_card_namestring否证件姓名
phone_nostring否手机号
provincestruct否省/直辖市
citystruct否市
townstruct否区县
detailstring否详细地址
namestring否名称
idstring否地区ID
tracking_nostring否物流单号
companystring否物流公司
company_namestring否物流公司名称
product_infolist否商品信息
sku_idint否商品skuId
product_countint否发货商品数量
sku_order_idstring否店铺子订单号,由平台生成,平台下唯一
order_idstring否店铺子订单号,由平台生成,平台下唯一;
parent_order_idstring否店铺父订单号,由平台生成,平台下唯一;
goods_priceint否商品原价(单位:分)
order_levelint否订单层级
order_typeint否订单类型:0-现货订单;1-全款预售订单;2-定金预售订单;3-惊喜赏发货订单;4-惊喜赏抽赏订单;5-游戏点卡订单;6-虚拟订单;7-预订金订单
author_idint否直播主播id(达人),仅直播间和橱窗产生的订单会有值返回,已废弃
author_namestring否直播主播名称,仅直播间和橱窗产生的订单会有值返回,已废弃
promotion_amountint否sku优惠总金额(单位:分)
exp_ship_timeint否预计发货时间
goods_typeint否商品类型:0-现货;1-预售;2-先行预定;3-全款预售;4-众筹
product_idint否商品ID
specstring否规格信息
cate_idint否末级类目id
origin_amountint否商品现价(单位:分)
item_numint否订单商品数量
sum_amountint否商品现价件数
promotion_detailstruct否优惠信息
product_picstring否商品图片
is_commentint否是否评价:0-未评价;1-买家已评价卖家未评;2-卖家已评买家未评
product_namestring否商品名称
post_amountint否运费(单位:分)
after_sale_infostruct否售后信息
relation_orderstruct否关联订单
receive_typeint否运输方式:1-邮寄;2-自提
product_id_strstring否商品ID,字符串类型
account_liststruct否当order_type=5,order_type_desc游戏点卡订单时该参数会返回信息
tax_amountint否税费
order_phase_listlist否定金预售阶段单
shop_codestring否商家编码
gift_product_typestring否赠品类型:1-主品单;0-免费赠品
gift_relation_order_idsstring否赠品绑定子订单号,如果是主品单,则关联的是赠品子订单号;如果是赠品,则关联的是主品子订单号
up_idint64否带货达人uid,仅返回实时归因数据
up_namestring否带货达人昵称,仅返回实时归因数据
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-平台
refund_statusint否售后状态:0-无售后;1-售后中;2-退款中;3-退款成功;4-售后关闭;5-退款失败
relation_order_idstring否关联店铺单订单id
external_order_idstring否外部订单id
account_infolist否买家账号信息
account_namestring否买家账号名称
account_typestring否买家账号类型
account_idstring否账号值
phase_order_idint否阶段单id
total_phaseint否总共有几阶段
current_phaseint否第几阶段
pay_successbool否是否支付成功
phase_pay_typestring否支付方式:支付宝;微信支付;qq钱包;B币;花呗分期;交通银行;支付宝国际;微信跨境;微信支付分;花呗;招行一网通支付;新微信支付
phase_pay_timeint否阶段单支付成功时间,秒级时间戳
channel_payment_nostring否渠道支付订单号
phase_pay_amountint否阶段单用户实际支付金额,单位分
current_phase_status_descstring否阶段状态描述:未付款,已付款,已确认打款,未支付关单,已退款

调用方式

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

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

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

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/market/common/order_detail' \
--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 '{
  "shop_order_id" : 2000000243008406
}'

原始文档:079_订单详情.md(26308 字节)。用 bili_docs_get { "ref": "79" } 读全文,或用 bili_api_spec { "ref": "79" } 取结构化规格。