查询发品配置
https://member.bilibili.com/arcopen/fn/market/common/product_get_product_publish_rule
开放能力 / 交易电商 / 电商 / 接口 / 商品模块接口
调用该接口可查询店铺和类目查询商品发布规则,包含发货时效、无理由退货等规则。
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| category_id | int | 是 | 末级类目ID |
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| fulfillment_rule | struct | 是 | 履约规则 |
| normal_rule | struct | 是 | 现货发货模式 |
| support | bool | 是 | 是否支持该模式 |
| delay_options | []int32 | 是 | 发货时效选项(天) |
| after_sale_rule | struct | 是 | 售后服务规则 |
| supply_day_return_rule | struct | 是 | 无理由退货规则 |
| enable | bool | 是 | true 支持七天无理由,false 不支持七天无理由 |
| options | list | 是 | 可选的无理由退货选项 |
| name | string | 是 | 无理由退货文案 |
| value | string | 是 | 无理由退货类型,7-1:支持7天无理由,7-2:支持7天无理由(拆封后不支持) |
调用方式
javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "70", "query": {…}, "body": {…} }
// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "70", "dryRun": true }
// 生成完整调用代码
bili_codegen { "ref": "70", "lang": "python" }官方请求示例
bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/market/common/product_get_product_publish_rule' \
--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 '{
"category_id" : 2308
}'原始文档:070_查询发品配置.md(3153 字节)。用 bili_docs_get { "ref": "70" } 读全文,或用 bili_api_spec { "ref": "70" } 取结构化规格。