SKUs
What is a SKU?
A SKU (Stock Keeping Unit) represents a specific purchasable variant of a product within a merchant's Offer. SKUs are the atomic unit of inventory and pricing in Violet's catalog - when a customer adds an item to their cart, they're adding a specific SKU.
Data Model Hierarchy
Offer (merchant's listing of that product)
└── SKU (specific purchasable variant)Offer: A merchant's specific listing with their pricing and availability.
SKU: A purchasable variant with unique attributes (e.g., "Classic T-Shirt - Blue - Large").
A single Offer can have multiple SKUs representing different variants (sizes, colors, configurations).
Key SKU Properties
id
integer
Violet's unique SKU identifier
external_id
string
The merchant's own SKU identifier
merchant_id
integer
The merchant selling this SKU
offer_id
integer
The parent Offer this SKU belongs to
name
string
Display name (often includes variant details)
sale_price
integer
Current selling price in minor units (cents)
retail_price
integer
MSRP in minor units
currency
string
ISO 4217 currency code (default: source merchant currency)
in_stock
boolean
Whether the SKU is currently in stock
qty_available
integer
Available inventory quantity
inventory_tracked
boolean
Whether inventory is actively managed
status
enum
AVAILABLE, UNAVAILABLE, ARCHIVED, FOR_DELETION
type
enum
PHYSICAL, DIGITAL, VIRTUAL
Product Identifiers
SKUs can include standard product identifiers for matching and verification:
upc- Universal Product Codeean- European Article Numbergtin- Global Trade Item Numberasin- Amazon Standard Identification Numberisbn- ISBN (for books)
Variant Values
SKUs include a variant_values array containing key-value pairs that describe what makes this variant unique:
SKU Dimensions
Physical SKUs can include dimensional data for shipping calculations:
weight- Product weightheight,width,length- Physical dimensionsSeparate
shipping_dimensionsmay be provided for packaged dimensions
Common Use Cases
Retrieving SKU Details
Use GET /catalog/skus/{sku_id} to fetch complete SKU information including pricing, availability, and variant details.
Pricing Notes
Prices are stored in minor units (cents for USD). A
sale_priceof2500represents $25.00.sale_priceis the current selling price;retail_priceis the suggested retail price.Currency conversion is available - pass your desired currency to receive converted prices.
Availability & Inventory
Check
in_stockfor a quick availability boolean.qty_availableprovides the actual quantity wheninventory_trackedistrue.statusmust beAVAILABLEfor the SKU to be purchasable.A SKU carries
ARCHIVEDorFOR_DELETIONstatus only when its parent Offer has been moved into that state (see below). SKUs are no longer active in the catalog once their Offer reaches these states.
Deletion Behavior
How a SKU is affected depends on whether the merchant deleted just the variant or the entire product:
Individual variant (SKU) deleted. The SKU is permanently deleted from Violet and removed from its parent Offer. It does not receive an
ARCHIVED/FOR_DELETIONstatus of its own; it disappears from the Offer's SKU list. If a SKU that previously appeared under an Offer is no longer present, the merchant has permanently deleted it; it will not return unless the merchant recreates it, in which case it comes back as a new SKU with a newid.Entire product deleted. The parent Offer becomes an
ARCHIVED(and eventuallyFOR_DELETION) snapshot of its final state, and its SKUs inherit that status. Any variants the merchant deleted from the platform before deleting the product will not appear in that snapshot; SKUs still present at deletion time will.
Individual SKU deletions are not surfaced through a dedicated webhook event. Detect a removed SKU by diffing the Offer's current SKUs against a previously stored copy, or by handling the OFFER_UPDATED event that fires when an Offer's SKUs change.
Relationship to Orders
When items are added to a cart or applied to an order, they reference the specific SKU ID. Changes to SKU availability (out of stock, deleted) are automatically communicated to active carts containing that SKU.
Available endpoints:
Last updated
Was this helpful?