简介

好呀,开发者,欢迎来到开发者中心,如果计划在网站、APP、小程序中接入班蔚相关服务,可阅读本文档。

开发过程中如需支持请访问以下链接联系我们:

https://www.bluvarri.com/mall/contact-us

获取带货商品列表

查询达人橱窗中的商品。

查询商品

get https://www.bluvarri.com/api/open/affiliate/choice_product

返回给定达人的带货列表

Query 参数

达人品牌ID,是带货达人的唯一标识。

分销渠道ID,比如独立网站或者APP。

分页查询当前页数。

分页查询返回列表的数据条数。

数据顺序,可选值:plan_price -- 单品价格,revshare -- 佣金比例,plan_sale_volume -- 单品销量,sales -- 销售额,views -- 浏览量,add_time -- 添加时间

返回响应

响应数据结构:商品列表数据结构

请求示例
javascripts
1
2
3
4
5
6
7
8
9
10
11
12
13
async function fetchProduct(influencer,chn,current,size,sort){
    const url="https://www.bluvarri.com/api/open/affiliate/choice_product?current="+current+"&size="+size+ "&influencer="+influencer+"&chn="+chn+"&sort="+sort;
    return await fetch(url);
}

async function loadProduct(){
    const response = await fetchProduct('达人的品牌Id','渠道Id',1,20,'add_time');
    var data = await response.json();
    console.log(data);
}
loadProduct()
响应示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    "code": 200,
    "message": "Success",
    "product": {
        "records": [
            {
                "brandAvatar": "https://d13-dev-content.oss-cn-hangzhou.aliyuncs.com/brand/avator/21eebe1523d948029e766b7ff10479a5.png.avif",
                "brandName": "Yove",
                "thumbnail": "https://d13-dev-content.oss-cn-hangzhou.aliyuncs.com/cell/cover/b9ffb6a9a24a47f89505c4cf00118f1a.jpg.avif",
                "productName": "新款大爱",
                "productPrice": "242.00",
                "affiliateLink": "https://www.bluvarri.com/mall/cell-detail?cell_id=8e041d10b9da4697b840c7ad01235ac1&brand_id=0298e729cdd4440fb9e77604511dac2b&influencer=91afe86c90ce45d3b3f59b33e9970f9d&chn=0044b89f7ecf476ea3ee62ad88102d6b&market=api"
            }
        ],
        "total": 2,
        "size": 30,
        "current": 1,
        "pages": 1
    }
}

商品列表数据结构

商品列表数据对象。

状态码:200 -- 成功,40023 -- 达人或渠道未配置正确。

请求状态消息。

商品对象

商品数据数组.

品牌头像URL。

品牌名称。

商品封面URL。

商品名称。

商品价格。

带货链接。

数据总条数.

数据列表条数。

分页查询当前页数。

分页查询总页数。

商品列表数据结构示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    "code": 200,
    "message": "string",
    "product": {
        "records": [
            {
                "brandAvatar": "string",
                "brandName": "string",
                "thumbnail": "string",
                "productName": "string",
                "productPrice": "string",
                "affiliateLink": "string"
            }
        ],
        "total": 0,
        "size": 10,
        "current": 1,
        "pages": 1
    }
}