getProduct
获取店铺全部已上架商品(按分类分组,包含所有语言)。
:::tip 体积较大
响应包含全部商品与语言,请求时请开启 gzip(curl 用 --compressed)。只需要部分商品时,优先用 getTagProducts 或 getProductDetail。
:::
| 属性 | 值 |
|---|---|
| 方法 | GET |
| 路径 | /config/getProduct |
| 鉴权 | 公开 |
请求参数
无。
响应
{
"code": 0,
"message": "",
"data": { "list": [] }
}
B 端字段
list 中的商品对象带出以下两个字段,B 端站(business_mode: "b2b")在商品页展示;C 端站一般为 null。
| 字段 | 类型 | 说明 |
|---|---|---|
moq | number | null | 最小起订量(件) |
lead_time | string | null | 交期,如 "15-25 days" |
示例
curl -s --compressed 'https://service.boldsaasify.com/config/getProduct' \
-H 'X-Site-Domain: your-store.com'