List products for an authorized brand
curl --request GET \
--url https://app.openlight.tech/api/seller/v1/products \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/seller/v1/products"
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/products', 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/products",
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/products"
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/products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/seller/v1/products")
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{
"products": [
{
"id": "<string>",
"brand_id": "<string>",
"asin": "<string>",
"title": "<string>",
"status": "<string>",
"commission": {
"type": "<string>",
"rate": 123,
"rate_bps": 123,
"flat_cents": 123,
"currency_code": "<string>"
},
"image_url": "<string>",
"detail_page_url": "<string>",
"marketplace_id": "<string>",
"country_code": "<string>",
"price_cents": 123,
"currency": "<string>"
}
],
"next_cursor": "<string>"
}
Products
List products
List products available to the seller or operator
GET
/
api
/
seller
/
v1
/
products
List products for an authorized brand
curl --request GET \
--url https://app.openlight.tech/api/seller/v1/products \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/seller/v1/products"
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/products', 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/products",
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/products"
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/products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/seller/v1/products")
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{
"products": [
{
"id": "<string>",
"brand_id": "<string>",
"asin": "<string>",
"title": "<string>",
"status": "<string>",
"commission": {
"type": "<string>",
"rate": 123,
"rate_bps": 123,
"flat_cents": 123,
"currency_code": "<string>"
},
"image_url": "<string>",
"detail_page_url": "<string>",
"marketplace_id": "<string>",
"country_code": "<string>",
"price_cents": 123,
"currency": "<string>"
}
],
"next_cursor": "<string>"
}
This endpoint returns products for a brand authorized to the current seller or operator token owner. Requests must include
brand_id.
List endpoints use cursor pagination: limit defaults to 25 and cannot exceed 100; pass the previous response’s next_cursor as cursor to read the next page. When there are no more results, next_cursor is null.
Response fields:
id: Product ID.brand_id: Brand ID.asin: Amazon ASIN.title: Product title.image_url: Product image URL; may be omitted.detail_page_url: Amazon product detail page URL; may be omitted.marketplace_id: Amazon marketplace ID; may be omitted.country_code: Amazon country/region code; may be omitted.price_cents: Product price in minor currency units; may be omitted.currency: Price currency; may be omitted.status: Product status.commission: Product commission configuration; may benull. When present, it includestype,rate,rate_bps,flat_cents, andcurrency_code.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
品牌 ID。Brand ID.
每页返回数量,默认 25,最大 100。Number of items per page; defaults to 25 and maxes out at 100.
Required range:
x <= 100上一页响应返回的下一页游标。Cursor returned as next_cursor by the previous page.