Skip to content

Catalogue and Offers Schema

Catalogue and Offers are standard entities, like Customer and Transaction: every FirstHive account has them, in every industry. They give you one model for products and offers, whichever system they come from: Shopify, WooCommerce, Magento, a file feed or an API.

Entities

EntityOne record perLinked to a customer?
ProductProduct (the parent item or style)No. It’s a reference entity.
VariantSellable unit (SKU), such as “Blue / L”No. It’s a reference entity.
Market PriceVariant per market, for any number of markets and currenciesNo
OfferOffer definitionNo
Offer CodeCode in an offer’s pool of unique codesYes, once the code is issued to a customer

Catalogue entities don’t create or change customer profiles. They join to customers through the product, variant or SKU on transaction items and on commerce events such as product_viewed, added_to_cart and checkout_started.

Each product has an item type, so the same model works in every industry: Physical Product, Digital Product, Service, Subscription Plan, Gift Card, Financial Product, Travel Product or Other.

Product

FieldDescription
product_id, source_systemThe product’s ID in its source system, and the source (for example shopify or file). Together they identify the product.
title, descriptionProduct name and description.
item_typeOne of the item types above.
brand, product_typeBrand or manufacturer, and the source’s product type.
category_pathThe category hierarchy, for example Apparel > Women > Dresses.
tagsSource tags.
statusActive, Draft, Archived or Deleted.
product_url, image_url, imagesProduct page, main image and all images.
optionsOption names and values, for example Size: S, M, L.
min_price, max_price, is_in_stockCalculated from the product’s variants.

Variant

FieldDescription
variant_id, product_idThe variant and its parent product.
sku, barcodeStock-keeping unit and GTIN, EAN or UPC.
option_valuesFor example Colour: Blue, Size: L.
price, compare_at_price, currencySelling price, list price (MRP) and currency in your default market.
availability_statusIn stock, out of stock, backorder, preorder or discontinued.
inventory_quantityTotal quantity across locations.
image_urlVariant image, if different from the product image.

Market Price

One row per variant per market, with the market code (for example IN, AE or US), currency, price, list price, whether the variant is sold there, and an optional sale-price window. Your account’s default market is used when a customer’s market isn’t known.

Offer and Offer Code

FieldDescription
name, display_title, display_descriptionInternal name and customer-facing copy.
offer_typePercentage Off, Amount Off, Fixed Price, Buy X Get Y, Free Shipping, Free Gift, Bonus Points, Cashback or Non-monetary Benefit.
discount_value, min_order_value, max_discount_amountThe discount, and any threshold or cap.
applies_toAll products, or chosen categories, brands, tags, products or variants.
code_modeNo code (applied automatically), one shared code, or unique codes.
valid_from, valid_toThe validity window.
per_customer_limit, total_redemption_limitRedemption limits.
statusDraft, Scheduled, Active, Paused, Expired or Archived.

Each Offer Code has a status (Available, Assigned, Redeemed, Expired or Voided), the customer it was issued to and when, and the transaction it was redeemed in. Codes are encrypted at rest and masked in the platform.

What you can do with it

  • Target by product, for example “bought from category X” or “viewed items over ₹5,000 but didn’t buy”.
  • Personalize messages with live product details such as name, image and price.
  • Run product-aware campaigns and journeys, such as price-drop, back-in-stock and abandoned-cart messages. FirstHive keeps 90 days of price history to work out price moves.

Bring your catalogue in

Your FirstHive team sets up the catalogue feed during onboarding:

SourceHow
ShopifyConnector (product data through Shopify’s GraphQL API)
WooCommerce, Magento and other platformsConnector or scheduled feed
Any other systemFile feed (SFTP) or the catalogue update webhook

Price and stock updates can be pushed to FirstHive as they happen through the catalogue update webhook. See APIs Overview.

Use it

Good to know

FirstHive doesn’t replace your product system or apply discounts at checkout. Your commerce platform still applies the discount when a customer uses an offer.