SKUs

Overview

SKUs (Stock Keeping Units) are variants of e-commerce products. Each SKU has its own price, currency, inventory, and optional attributes like weight and country restrictions.

Endpoints

MethodEndpointDescription
GET/ecommerce/products/skusList SKUs
GET/ecommerce/products/skus/{id}Get SKU
POST/ecommerce/products/skusCreate SKU
PUT/ecommerce/products/skus/{id}Update SKU
DELETE/ecommerce/products/skus/{id}Delete SKU

SKU object

AttributeTypeDescription
idintegerUnique identifier
product_idintegerParent product ID
namestringSKU name (max 255 chars)
activebooleanWhether the SKU is available for purchase
currencystringThree-letter ISO currency code
priceintegerPrice in cents
weightnumberWeight for shipping calculations
countriesarrayCountry codes where available
imagestringSKU image URL
inventory_typeinteger0 = infinite, 1 = finite
inventory_quantityintegerStock count (when finite)
inventory_descriptionstringInventory description
metadataobjectCustom key-value metadata
entitlementsarrayAccess entitlements granted on purchase
expires_atintegerUnix timestamp of expiration
created_atintegerUnix timestamp
updated_atintegerUnix timestamp