Object
Nested in APIvariant
A sellable variant of a product.
Nested under product.variants. Holds pricing, identifiers, and on-hand inventory used by POS and storefront.
Exposure
Appears nested inside Merchant API responses (not a top-level route).
What
The variant object is the JSON / domain shape for this resource in RetailLink.
Why
Use these fields when integrating — not scraped Admin HTML — so sync jobs and apps stay stable across UI changes.
How
Read each property below — description first, then that property's Code / Data / Output (or type). Use the sticky example JSON on the right as a full fixture.
Properties
8 fields on variant. Types link to related objects when available. Snippets for a property appear under that property.
id
stringUnique variant id.
id: stringtitle
stringVariant title. Default single-variant products use "Default Title".
title: stringsku
string | nullStock keeping unit. Auto-generated if omitted on create.
sku: string | nullbarcode
string | nullBarcode / GTIN scanned on the till.
barcode: string | nullprice
numberUnit price in the shop currency.
const price = variant.price;compareAtPrice
number | nullOptional compare-at (was) price. Present on single-product fetches.
compareAtPrice: number | nullinventoryQuantity
numberOn-hand quantity for the variant (shop inventory model).
inventoryQuantity: numberactive
booleanWhether the variant is active for sale. Present on single-product fetches.
active: boolean