用户优先购信息
https://member.bilibili.com/arcopen/fn/common/market_create_early_purchase
开放能力 / 交易电商 / 用户票务信息 / 接口
用于回传已经购买权益的用户信息
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| itemsId | Long | 是 | 项目id |
| open_id | Long | 是 | 用户openid |
| mainAccountInfo | AccountInfo | 是 | 主购买人信息 |
| name | String | 是 | 实名信息-姓名 |
| idCard | String | 是 | 实名信息-证件号 |
| idCardType | Byte | 是 | 实名信息证件类型: 0-身份证 1-护照 2-港澳居民来往内地通行证 3-台湾居民来往大陆通行证 |
| mobile | String | 是 | 手机号 |
| attachAccountInfo | List<AccountInfo> | 否 | 附带购买人信息 |
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| code | Integer | 否 | 状态码 |
| message | String | 否 | 响应消息 |
| data | Void | 否 | 无返回数据 |
调用方式
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" } 取结构化规格。