Skip to main content
The Datasource described on this page is an illustrative example. The actual fields, structure, and naming will vary based on your brand’s specific data model and integration. Use this as a reference for the type of data needed, not as an exact specification.

Overview

The Stock & Availability Datasource provides real-time inventory data: stock levels per product per location, availability status, restock dates, and low-stock indicators. This ensures personalised recommendations never display out-of-stock products and enables location-specific “available at your store” messaging.

Key Fields

FieldTypeDescriptionExample values
product_idStringProduct/SKU identifier"SKU-12345"
store_idStringStore or warehouse location"STR-PARIS-MARAIS"
quantity_availableIntegerCurrent stock level3
in_stockBooleanWhether available for purchasetrue
low_stockBooleanBelow threshold (creates urgency)true
restock_dateDateExpected restock date (if out of stock)2024-12-01
available_onlineBooleanAvailable for web/app purchasetrue
available_in_storeBooleanAvailable for in-store pickuptrue
size_availabilityObjectStock by size/variant{"38": 2, "39": 0, "40": 5}

Connected Use Cases

Use CaseHow Stock is used
Enriched Product RecommendationFilter out-of-stock, prioritise available products
Drive to Store / Web / App”Available at your store” or “Order online” logic
1:1 Personalised DigestReal-time product availability in recommendations

Data Requirements

RequirementDetails
Update frequencyReal-time or hourly (stock changes frequently)
Minimum fieldsproduct_id, in_stock
Recommended fieldsAll listed above for location-specific availability
FormatJSON via Datasources API
VolumeOne record per product × location combination

Integration Notes

Stock data is sourced from the brand’s ERP, OMS, or inventory management system. Key considerations:
  • Freshness is critical: A recommended out-of-stock product is a negative customer experience
  • Size/variant availability enables personalised messaging (“Your size is back in stock!”)
  • Low-stock indicators enable urgency messaging (“Only 2 left in your size”)
Stock data must be refreshed frequently. If your stock update frequency is longer than 24 hours, consider disabling stock-based filtering to avoid showing products that sold out overnight.