What is a SKU?
A SKU (Stock Keeping Unit) represents a specific variant of a product. For example, for a t-shirt, each size/color combination is a distinct SKU.Identifier format:
sku_ followed by 36 alphanumeric characters.Example: sku_abc123def456ghi789jkl012mno345Product → SKU Relationship
A product can have multiple SKUs, and each SKU can have multiple prices (different currencies, monthly/yearly subscriptions, etc.).
SKU Attributes
Main Attributes
Inventory Management
Create a SKU
Simple SKU
SKU without Stock Management
For digital products or services, disable stock tracking:API Response
Inventory Management
WhenstockTracking is enabled, the system automatically manages stock:
- Pre-purchase verification: Availability is checked before validating an order
- Automatic update: Stock is decremented upon purchase
- Automatic restoration: On cancellation or payment failure, stock is restored
Custom Attributes
Theattributes field is a flexible JSON object that can contain any combination of attributes:
- Clothing
- Electronics
- Subscription
SKU Code
TheskuCode is a unique, human-readable identifier for internal management:
Recommended naming conventions
Recommended naming conventions
Best practices
Best practices
- Use alphanumeric characters and hyphens only
- Keep codes short but descriptive
- Avoid spaces and special characters
- Be consistent in your naming convention
Common Operations
List SKUs for a product
Update a SKU
Update stock
SKU → Price Relationship
Each SKU can have multiple prices for different pricing strategies:Complete Examples
- E-commerce clothing
- SaaS
- Online course
Next Steps
Configure prices
Define pricing for each SKU
Create promotions
Apply discounts to your SKUs