Skip to main content

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.

EntityWhat it isGuide
CatalogueThe master of products and their classification β€” SKUs, taxonomies and the category values campaigns targetCatalogue
LocationsStores and their features β€” the store master, plus the taxonomies that group stores by region, format or franchiseLocations
CartsThe sales themselves: ticket headers and ticket lines, both as history and as ongoing synchronisationCarts

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.

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.

  1. Product taxonomies, then their features (category values).
  2. Products, linked to those features.
  3. Location taxonomies, then their features.
  4. Locations (stores).
  5. Carts β€” historical tickets, once products and locations they reference exist.
  6. Validate with POST /carts/simulate using 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.

caution

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 /discounts helper 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_id or 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​

SymptomWhat to check
A discount or points campaign never appliesProduct ID on the line vs the catalogue; feature membership; location filter; last successful load, file job or API.
Works in one store but not anotherLocation external ID, country, and location feature membership.
New SKU is never eligibleThe POST /products call (or file row) succeeded; features attached; IDs match what the cart sends.
Category campaign misses productsTaxonomy slug and feature IDs; products linked after the taxonomy change; file and API using different category keys.
File load succeeds but API updates failAuth headers, ID format, and whether the middleware sends the same keys as the file contract.
Coupon Server helper arrays empty or wrongCatalogue loaded for internal taxonomy expansion β€” see the Coupon Server guide.
Reporting dimensions look wrongSame product and store IDs at runtime as in analytics; active/inactive status.
Historical tickets loaded but segments are emptyCart history load completed, and the tickets reference customers, products and locations that exist.