List products
List all products in your catalogue.
POST
/ bigblue.storeapi.v1.PublicAPI/ ListProductsReturns your products one page at a time. There are no filters. Bundles aren't
included. Use ListBundles for them.
Request body
page_sizeintegerdefault 500Products per page.
page_tokenstringThe next_page_token from the previous response. Leave empty for the first
page.
Responses
productsProduct[]The products on this page.
next_page_tokenstringToken for the next page. Missing on the last page.
POST
/ bigblue.storeapi.v1.PublicAPI/ ListProducts{ "page_size": 100 }{
"products": [
{
"id": "BGBL-ESPSRT-SMAL",
"sku": "ESP-SHIRT-S",
"name": "Espresso T-shirt, Small",
"weight": 210,
"barcode": "3401579800127",
"value": { "amount": "24.9", "currency": "EUR" }
},
{
"id": "BGBL-ESPSRT-MEDI",
"sku": "ESP-SHIRT-M",
"name": "Espresso T-shirt, Medium",
"weight": 225,
"barcode": "3401579800134",
"value": { "amount": "24.9", "currency": "EUR" }
}
],
"next_page_token": "ChgKFgoJcHJvZHVjdHMSCUJHQkwtRVNQ"
}async function* allProducts() {
let pageToken = '';
do {
const page = await call('ListProducts', { page_size: 250, page_token: pageToken });
yield* page.products ?? [];
pageToken = page.next_page_token ?? '';
} while (pageToken);
}