For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Property
Type
Description

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 Code

  • ean - European Article Number

  • gtin - Global Trade Item Number

  • asin - Amazon Standard Identification Number

  • isbn - 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 weight

  • height, width, length - Physical dimensions

  • Separate shipping_dimensions may 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_price of 2500 represents $25.00.

  • sale_price is the current selling price; retail_price is the suggested retail price.

  • Currency conversion is available - pass your desired currency to receive converted prices.

Availability & Inventory

  • Check in_stock for a quick availability boolean.

  • qty_available provides the actual quantity when inventory_tracked is true.

  • status must be AVAILABLE for the SKU to be purchasable.

  • A SKU carries ARCHIVED or FOR_DELETION status 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_DELETION status 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 new id.

  • Entire product deleted. The parent Offer becomes an ARCHIVED (and eventually FOR_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?