Skip to main content

Inventory row

Price and stock of one product at one store, or the product’s general row. Optional; once an inventory source exists it owns price and stock.

Fields​

FieldTypeRequiredDescription
product_external_idstringYesThe product id from your catalog. A row whose product has not arrived yet is kept and attaches as soon as the product lands.
location_refstringNoYour store code. Leave it empty for the product’s general row: the price and stock that apply wherever a store has none of its own. A code for a store that has not arrived yet is kept and attaches when it does.
product_seller_refstringNoA seller code, when the price and stock are one seller’s offer of the product. Leave it empty and the row is the product’s, read by every seller that sends no row of its own.
pricenumberNoPrice at this store. Absent means the catalog price applies.
sale_pricenumberNoPromotional price. Absent means price is what the shopper pays.
currencystringNoCurrency of both prices. Absent means the currency the source declares.
stockintegerNoUnits available. Absent is not zero: a row without stock still says the product is sold here, count unknown. 0 means out of stock.
availabilitystringNoWhether the product can be bought here right now. preorder and backorder stay advertisable at a stock of 0. One of in_stock, out_of_stock, preorder, backorder, discontinued.

Shape​

{
"product_external_id": "P30001",
"location_ref": "STORE-012",
"product_seller_ref": "<product_seller_ref>",
"price": 124.99,
"sale_price": 0,
"currency": "<currency>",
"stock": 8,
"availability": "in_stock"
}