List token-authorized brands
curl --request GET \
--url https://app.openlight.tech/api/seller/v1/brands \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/seller/v1/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.openlight.tech/api/seller/v1/brands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.openlight.tech/api/seller/v1/brands",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.openlight.tech/api/seller/v1/brands"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.openlight.tech/api/seller/v1/brands")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/seller/v1/brands")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"brands": [
{
"id": "<string>",
"name": "<string>",
"status": "active",
"description": "<string>",
"logo_url": "<string>",
"website": "<string>",
"product_count": 123,
"amazon_regions": [
"<string>"
],
"amazon_marketplaces": [
"<string>"
],
"partnership_status": "approved"
}
],
"next_cursor": "<string>"
}品牌
列出品牌
列出卖家或运营账号可访问的品牌
GET
/
api
/
seller
/
v1
/
brands
List token-authorized brands
curl --request GET \
--url https://app.openlight.tech/api/seller/v1/brands \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/seller/v1/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.openlight.tech/api/seller/v1/brands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.openlight.tech/api/seller/v1/brands",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.openlight.tech/api/seller/v1/brands"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.openlight.tech/api/seller/v1/brands")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/seller/v1/brands")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"brands": [
{
"id": "<string>",
"name": "<string>",
"status": "active",
"description": "<string>",
"logo_url": "<string>",
"website": "<string>",
"product_count": 123,
"amazon_regions": [
"<string>"
],
"amazon_marketplaces": [
"<string>"
],
"partnership_status": "approved"
}
],
"next_cursor": "<string>"
}使用该接口获取当前卖家或运营 Token owner 被授权访问的品牌列表。运营账号属于商家端角色,只能看到被授权的品牌。
列表接口支持游标分页:
limit 默认 25、最大 100,传入上一页返回的 next_cursor 作为 cursor 可继续读取下一页;没有更多结果时 next_cursor 为 null。
响应字段:
id:品牌 ID。name:品牌名称。description:品牌简介,可能缺省。logo_url:品牌 Logo 图片 URL,可能缺省。website:品牌官网 URL,可能缺省。status:品牌自身状态。product_count:当前可见商品数量,可能缺省。amazon_regions:品牌当前有 active 商品覆盖的 Amazon 国家/地区码,可能缺省。amazon_marketplaces:Amazon 站点域名,例如amazon.com、amazon.co.uk,可能缺省。partnership_status:当前 Token owner 与品牌的合作状态;卖家侧通常不依赖该字段判断授权范围。
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
每页返回数量,默认 25,最大 100。Number of items per page; defaults to 25 and maxes out at 100.
必填范围:
x <= 100上一页响应返回的下一页游标。Cursor returned as next_cursor by the previous page.