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.
- Sent to:
POST /api/v1/ingest/inventory - Feed:
Inventory feed
Fields
| Field | Type | Required | Description |
|---|---|---|---|
product_external_id | string | Yes | The product id from your catalog. A row whose product has not arrived yet is kept and attaches as soon as the product lands. |
location_ref | string | No | Your 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_ref | string | No | A 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. |
price | number | No | Price at this store. Absent means the catalog price applies. |
sale_price | number | No | Promotional price. Absent means price is what the shopper pays. |
currency | string | No | Currency of both prices. Absent means the currency the source declares. |
stock | integer | No | Units available. Absent is not zero: a row without stock still says the product is sold here, count unknown. 0 means out of stock. |
availability | string | No | Whether 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"
}