Company Data
Company Data is what the retailer owns and Loyal Guru needs in order to decide anything: which products exist and how they are classified, which stores exist and how they are grouped, and what has actually been sold. If any of the three is incomplete or stale, campaigns miss eligible carts even when the checkout payload looks perfectly correct.
| Entity | What it is | Guide |
|---|---|---|
| Catalogue | The master of products and their classification β SKUs, taxonomies and the category values campaigns target | Catalogue |
| Locations | Stores and their features β the store master, plus the taxonomies that group stores by region, format or franchise | Locations |
| Carts | The sales themselves: ticket headers and ticket lines, both as history and as ongoing synchronisation | Carts |
Typical retailer sources: PIM or product master, ERP, e-commerce catalogue, store master, POS configuration, and the POS or sales data warehouse for carts.
Whether each of these arrives through the Streaming API or as agreed flat files is decided once, for the whole data connection β see Data β Two channels for the same data. Customer identity is the other half of the load: see Customer Data.
Product concepts and Owner App screens are documented separately in Company Data (Product Docs). This section covers how to integrate that master data.
Recommended load orderβ
Dependencies run in one direction, and getting the order wrong is the most common cause of a load that reports success and produces nothing usable.
- Product taxonomies, then their features (category values).
- Products, linked to those features.
- Location taxonomies, then their features.
- Locations (stores).
- Carts β historical tickets, once products and locations they reference exist.
- Validate with
POST /carts/simulateusing real product and location IDs taken from the loaded catalogue.
The same rule holds for the periodical load: process taxonomy and feature changes before the products or locations that reference them.
Carts depend on the catalogue and the location data, not the other way round. A ticket line that references a product ID which does not exist yet cannot be attributed to that product β so the cart contributes to the customer's totals, but it is invisible to any campaign or segment that filters by product or category.
How Company Data feeds checkoutβ
- Promo Engine (
POST /carts/simulate/POST /carts/realtime): Loyal Guru matches the line products and the store against the loaded master data and the campaign rules. See Checkout integration. - Coupon Server: the POS calculates the amounts itself, but the same IDs still have to exist in Loyal Guru so
GET /discountshelper arrays and eligibility stay consistent with local pricing logic. See New Engine Coupon Server. - Segmentation and audiences: cart history is what makes tier calculation, RFM segments and historical audiences possible from day one β the reason the initial load carries 24 months of tickets.
Checklist before campaign testsβ
- Cart line product IDs and codes exist in the catalogue, with the same values whether they arrived by file or API.
- Cart
location_idor store code exists in the location data. - Category-targeted campaigns: features exist, and products or stores are assigned to them.
- New SKUs and new stores are loaded before the campaigns that target them go live.
- File-based and API-based loads use the same external ID strategy β see One ID strategy.
- Retired products and closed stores are handled so historical carts still reconcile.
- Historical carts loaded before go-live reference products and locations that exist.
Troubleshootingβ
| Symptom | What to check |
|---|---|
| A discount or points campaign never applies | Product ID on the line vs the catalogue; feature membership; location filter; last successful load, file job or API. |
| Works in one store but not another | Location external ID, country, and location feature membership. |
| New SKU is never eligible | The POST /products call (or file row) succeeded; features attached; IDs match what the cart sends. |
| Category campaign misses products | Taxonomy slug and feature IDs; products linked after the taxonomy change; file and API using different category keys. |
| File load succeeds but API updates fail | Auth headers, ID format, and whether the middleware sends the same keys as the file contract. |
| Coupon Server helper arrays empty or wrong | Catalogue loaded for internal taxonomy expansion β see the Coupon Server guide. |
| Reporting dimensions look wrong | Same product and store IDs at runtime as in analytics; active/inactive status. |
| Historical tickets loaded but segments are empty | Cart history load completed, and the tickets reference customers, products and locations that exist. |