Get Products
const url = 'https://api-admin.billz.ai/v2/products?page=1&limit=5&search=Nike&include_empty_stocks=false';const options = { method: 'GET', headers: { 'platform-id': '7d4a4c38-dd84-4902-b744-0488b80a4c01', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-admin.billz.ai/v2/products?page=1&limit=5&search=Nike&include_empty_stocks=false' \ --header 'Authorization: Bearer <token>' \ --header 'platform-id: 7d4a4c38-dd84-4902-b744-0488b80a4c01'Error codes: 400 — input validation error; 404 — object not found; 401, 403, 429, 500 — shared by all methods. Body formats and semantics: Response codes and errors.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page number; non-numeric value — 400
Items per page. Non-numeric value -> 400
Example
5Search string. Limited in length; repeating patterns are rejected
Example
NikeSearch fields: name, sku, barcode, description, category, brand or custom_field_id. Passed as a comma-separated string
Format yyyy-mm-dd hh:mm:ss, UTC. Invalid format — 400
String true
Header Parameters
Section titled “Header Parameters”Platform identifier. A static value is used for integrations.
Responses
Section titled “Responses”Successful response
object
Number of products
List of products
object
Product id
Parent id (for variations)
Product categories
object
Brand id
Brand name
Whether the product has variations
Name
SKU
Main photo
Barcode
Description
Last update date
Unit of measure
object
Product type id
Stock by outlet
object
Prices by outlet
object
Promotions
object
Variation attributes
object
Custom attributes
object
Photos
object
Supply price
Supply currency
Suppliers
object
Stock by supplier
object
Examplegenerated
{ "count": 1, "products": [ { "id": "example", "parent_id": "example", "categories": [ { "id": "example", "name": "example", "parent_id": "example" } ], "brand_id": "example", "brand_name": "example", "is_variative": true, "name": "example", "sku": "example", "main_image_url": "example", "main_image_url_full": "example", "barcode": "example", "description": "example", "updated_at": "example", "measurement_unit": { "id": "example", "name": "example", "short_name": "example" }, "product_type_id": "example", "shop_measurement_values": [ { "shop_id": "example", "shop_name": "example", "active_measurement_value": 1 } ], "shop_prices": [ { "shop_id": "example", "shop_name": "example", "retail_price": 1, "retail_currency": "example", "supply_price": 1, "supply_currency": "example", "promo_price": 1, "promos": [ { "id": "example", "external_id": "example", "name": "example", "discount_value": 1, "discount_type": "example", "shop_ids": [ "example" ] } ] } ], "product_attributes": [ { "attribute_id": "example", "attribute_value_id": "example", "attribute_value": "example", "attribute_name": "example" } ], "custom_fields": [ { "custom_field_name": "example", "custom_field_system_name": "example", "custom_field_id": "example", "custom_field_value": "example", "from_parent": true } ], "is_marked": true, "photos": [ { "photo_url": "example", "sequence": 1, "is_main": true } ], "supply_price": 1, "supply_currency": "example", "suppliers": [ { "id": "example", "company_id": "example", "name": "example", "session_id": "example", "deleted_at": 1 } ], "product_supplier_stock": [ { "supplier_id": "example", "supplier_name": "example", "shop_id": "example", "measurement_value": 1, "min_supply_price": 1, "max_supply_price": 1, "retail_price": 1, "wholesale_price": 1 } ] } ]}