Skip to main content

Products

A product is the sellable item: its name and description, its price and cost, its inventory, shipping attributes, tax rules, brand, and any custom attributes the category defines. Price ultimately lives on a variant — every product has at least one — so a single product can carry many SKUs while sharing one description and image set.

In the TypeScript SDK a product is created together with its required variants (the response is the hydrated product with resolved stock status and priceRange). In the Python SDK, create sets inventory directly on the product via stock_quantity and related fields.

Create a product​

const tshirt = await client.products.create({
categoryId: 'category_apparel',
name: 'Classic T-Shirt',
description: 'Comfortable cotton t-shirt',
price: 24.99,
sku: 'TS-CLASSIC',
trackInventory: true,
isActive: true,
isAlcoholic: false,
variants: [
{ axisValues: { Size: 'Small', Color: 'Black' }, price: 24.99, isDefault: true, isActive: true },
{ axisValues: { Size: 'Medium', Color: 'Black' }, price: 24.99, isDefault: false, isActive: true },
{ axisValues: { Size: 'Large', Color: 'Black' }, price: 26.99, isDefault: false, isActive: true },
],
});

console.log(`Created ${tshirt.name} with ${tshirt.variants.length} variants`);

Get, list, update, delete​

const product = await client.products.get('product_123');
const result = await client.products.list();

const updated = await client.products.update({ id: 'product_123', price: 179.99 });

await client.products.delete('product_123');

The Python SDK looks products up by SKU with get_by_sku; in TypeScript, SKU lookup is a variant operation.

Batch create​

const result = await client.products.createBatch([
{
categoryId: 'cat_accessories',
name: 'Wireless Mouse',
description: 'Ergonomic wireless mouse',
price: 29.99,
sku: 'WM-001',
trackInventory: true,
isActive: true,
isAlcoholic: false,
variants: [{ axisValues: {}, price: 29.99, isDefault: true, isActive: true }],
},
{
categoryId: 'cat_accessories',
name: 'Mechanical Keyboard',
description: 'RGB backlit mechanical keyboard',
price: 89.99,
sku: 'KB-001',
trackInventory: true,
isActive: true,
isAlcoholic: false,
variants: [{ axisValues: {}, price: 89.99, isDefault: true, isActive: true }],
},
]);
Limits

Both SDKs cap batch creation at 100 products per request.

BusinessProduct fields​

FieldTypeRequiredDescription
idstringautoUnique identifier
namestringYesProduct name (min 1 character)
descriptionstring | nullNoDetailed description
pricenumberYesBase price (≥ 0)
costnumber | nullNoCost of goods for margin calculation
compareAtPricenumber | nullNoOriginal price for sale display
categoryIdstringYesParent category (optional on create)
skustring | nullNoStock Keeping Unit
skuPatternstring | nullNoSKU template for variant generation
barcodestring | nullNoProduct barcode
barcodeFormatenum | nullNoUPC_A, EAN_13, CODE_128, QR, …
brand / brandIdstring | nullNoBrand name and reference
tagsarray | nullNoSearch/filter tags
imageUrl / imageUrlsstring | nullNoPrimary and gallery images
isAlcoholicbooleanNoTriggers age verification (default false)
trackInventorybooleanNoWhether inventory is tracked (default false)
stockQuantityinteger | nullNoCurrent available stock
lowStockThresholdinteger | nullNoLow-inventory alert threshold
reorderPoint / leadTime / supplierId—NoReplenishment planning
weightnumber | nullNoShipping weight
dimensionsobject | nullNolength, width, height, unit (inches/cm)
shippingClassId / HSCodestring | nullNoShipping class and customs code
taxRuleIdsarray | nullNoTax rules (override category)
attributesarray | nullNoCustom attribute values
isActivebooleanNoAvailable for sale (default true)
displayOrderinteger | nullNoOrder within category
orderCount / recentOrderCount / lastOrderedAt—read-onlyServer-computed analytics
Variants are required

Every product must have at least one variant — price and per-SKU stock live on the variant. The TypeScript SDK creates variants inline (and exposes a dedicated variants & axes resource); the Python create sets stock_quantity and pricing on the product directly.

Query options​

BusinessProduct queries filter by search, locationId, categoryId, isActive, brand, brandId, trackInventory, priceRange, lowStock, isAlcoholic, and tags, sorted by name, price, createdAt, or displayOrder (asc / desc), with page/pageSize pagination.

tip

Track cost for margin analysis, set reorderPoint and leadTime for replenishment alerts, and mark isAlcoholic so age verification triggers in the order flow.