Bbili-open-mcpMCP
★

用户优先购信息

POST#107api SHOP_TICKET_ORDER_DATA
https://member.bilibili.com/arcopen/fn/common/market_create_early_purchase

开放能力 / 交易电商 / 用户票务信息 / 接口

用于回传已经购买权益的用户信息

body 参数

名称类型必填说明
itemsIdLong是项目id
open_idLong是用户openid
mainAccountInfoAccountInfo是主购买人信息
nameString是实名信息-姓名
idCardString是实名信息-证件号
idCardTypeByte是实名信息证件类型: 0-身份证 1-护照 2-港澳居民来往内地通行证 3-台湾居民来往大陆通行证
mobileString是手机号
attachAccountInfoList<AccountInfo>否附带购买人信息

响应字段

名称类型必填说明
codeInteger否状态码
messageString否响应消息
dataVoid否无返回数据

调用方式

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

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

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

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/common/market_create_early_purchase' \
--header 'Accept: application/json' \
--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 'access_token: 454b8fb09ddf1e7ba405f158160f61a1' \
--header 'Connection: keep-alive' \
--header 'Host: member.bilibili.com' \
--data-raw '{
  "itemsId": 123456,
  "open_id": "d64ec2b5b6554b27a4e6ccc51c9c4d30",
  "mainAccountInfo": {
    "name": "张三",
    "idCard": "110101199001011234",
    "idCardType": 0,
    "mobile": "13800138000"
  },
  "attachAccountInfo": [
    {
      "name": "李四",
      "idCard": "110101199002021234",
      "idCardType": 0,
      "mobile": "13800138001"
    }
  ]
}'

原始文档:107_用户优先购信息.md(2869 字节)。用 bili_docs_get { "ref": "107" } 读全文,或用 bili_api_spec { "ref": "107" } 取结构化规格。