Product Feeds

Stable Product IDs & Variants Across AI Shopping Feeds

By Michael E.Updated Sources checked 13 min

Short answer

Yes. In AI shopping feeds each purchasable variant needs its own stable ID, and all variants of one product share a separate parent group ID. OpenAI's product feed schema requires an item_id that is unique per item or variant, stays stable, and is never reused, with group_id linking variants. Changing IDs between exports makes existing items look deleted and new ones look added.

Key takeaways

  • One ID per sellable variant, one shared group ID per product. They must differ when variants exist.
  • OpenAI's feed schema says item_id must stay stable and never be reused for a different item.
  • GTIN identifies the trade item, not the product group. Never invent one to fill a gap.
  • Keep an ID crosswalk so platform, ERP, and feed IDs can change without changing the feed ID.
  • Reconcile every snapshot against the previous one: duplicates, reused IDs, drifted IDs, and broken groups.

Should each variant have its own product ID?

Yes. Every variant a shopper can buy (a specific color and size, a specific capacity) should carry its own identifier, and every variant of the same product should share one parent identifier. This is how the major AI shopping and search surfaces model products as of 2026-11-29.

OpenAI's product feed schema (the file format behind ChatGPT shopping results) documents item_id as required and unique per item or variant, and says it must stay stable and never be reused for a different item. Variants are linked with group_id, which must differ from item_id for grouping to work; if it is omitted it defaults to item_id and no group is established. Variant rows also set listing_has_variations to true and describe their options in variant_dict. The field-by-field reference is in our ChatGPT product feed specification guide.

Google's product variant structured data follows the same shape: a ProductGroup with a productGroupID, variant Product items linked by hasVariant or isVariantOf, and the documentation states that each variant must have a unique ID in its markup, using properties such as sku or gtin.

Identity concepts and where they appear (documented in the cited specs as of 2026-11-29)
ConceptWhat it identifiesOpenAI product feedGoogle structured data
Variant (sellable item)One purchasable configurationitem_id (required)Product with sku / gtin
Product groupThe parent listing all variants belong togroup_id (conditionally required)ProductGroup.productGroupID, or inProductGroupWithID on the variant
Variant optionsThe attributes that differvariant_dict, e.g. color and sizevariesBy (color, size, suggestedAge, suggestedGender, material, pattern)
Trade itemThe manufactured item as sold in tradegtin (optional, valid check digit)GTIN properties (recommended)
Manufacturer partThe maker's part numbermpn (optional, with brand)mpn (recommended)
OfferA specific seller's offer for the itemoffer_id (optional, stable, must not include price)Offer nested in Product

What is the difference between a product, a variant, an offer, and a trade item?

These four things are often stored in the same database row, which is why ID problems start. Separate them on paper before you map anything.

Product (group)
The listing a shopper thinks of as one thing, such as "Organic Cotton Tee". It has no single price or stock level when it has variants.
Variant
One buyable configuration of the product, such as the black tee in medium. It has its own price, availability, image, and URL state.
Offer
Terms under which a seller sells the variant. Marketplaces can have several offers for the same variant; a single-seller store usually has one.
Trade item (GTIN)
The item as identified in the supply chain by the brand owner's GTIN. OpenAI's schema notes that GTIN identifies the trade item, not the variant group.
Product feed
A structured file (or API stream) of catalog records that a shopping surface ingests to show products, prices, and availability.
Identity decisions by situation (our recommendations; check each destination's rules)
SituationSeparate variant IDs?Why
Tee in 4 colors x 5 sizesYes, 20 item IDs, 1 group IDEach combination has its own stock, image, and often GTIN
Price changes for a saleNo, keep the same IDPrice is an attribute of the item, not its identity. OpenAI says offer_id must not include price either
Sofa with 40 fabrics, made to orderUsually only for fabrics you list as purchasable optionsIf every fabric is a real option with its own price or lead time, it is a variant; a swatch request is not
Bundle of three existing itemsYes, a new item ID for the bundleThe bundle is its own sellable item; component IDs stay unchanged
Same item, new packaging from the brandFollow the brand owner's GTIN decisionIf the trade item gets a new GTIN, record it; keep your internal ID if shoppers see the same product
Product discontinuedRetire the ID, never reuse itReuse would attach old history and links to a different item
Single item with no optionsOne item ID; group ID optionalOpenAI defaults group_id to item_id, which establishes no group

What does correct product and variant identity look like in a feed?

Below is a synthetic example using OpenAI product feed field names: two variants of one tee and one product with no variants. The variant rows share a group_id that differs from each item_id, and each URL preselects its variant.

Synthetic data. Fields trimmed for readability; a real row also needs description, brand, seller_name, image_url, target_countries, and store_country.
[
  {
    "item_id": "VAR-000184",
    "group_id": "GRP-00042",
    "listing_has_variations": true,
    "variant_dict": { "color": "Black", "size": "M" },
    "title": "Organic Cotton Tee - Black - M",
    "url": "https://example.com/products/organic-tee?variant=184",
    "gtin": "00012345678905",
    "price": "28.00 USD",
    "availability": "in_stock"
  },
  {
    "item_id": "VAR-000185",
    "group_id": "GRP-00042",
    "listing_has_variations": true,
    "variant_dict": { "color": "Black", "size": "L" },
    "title": "Organic Cotton Tee - Black - L",
    "url": "https://example.com/products/organic-tee?variant=185",
    "gtin": "00012345678912",
    "price": "28.00 USD",
    "availability": "out_of_stock"
  },
  {
    "item_id": "VAR-000310",
    "group_id": "VAR-000310",
    "title": "Cast Iron Skillet 10 in",
    "url": "https://example.com/products/skillet-10",
    "price": "39.00 USD",
    "availability": "in_stock"
  }
]

Three details matter more than they look. The title names the selected variant, which OpenAI's schema recommends. The variant_dict keys are identical across the group. And the URL loads the page with that variant chosen; Google's variant documentation likewise asks that each variant be preselectable through its own URL showing the correct image, price, and availability.

What happens when SKU IDs change across exports?

A shopping surface that keys on item_id sees a changed ID as one item removed and an unrelated item added. Neither OpenAI's feed guide nor its schema documents a field that maps an old ID to a new one as of 2026-11-29, so assume continuity is lost when the ID changes.

What you lose is partly documented and partly inferred. Documented: OpenAI tells merchants to keep item_id values stable across submissions and to keep product URLs stable. OpenAI's product checkout conversion spec (an approved-partner beta) tells partners to use checkout item and offer IDs to retrieve authoritative product, inventory, and pricing data from their own catalog, so an ID that no longer resolves breaks that lookup. Inferred: any per-item history a surface keeps, such as reviews matched to the item or past engagement, may not carry over, and both IDs can appear at once during the changeover.

Common causes of ID drift
CauseHow it shows upFix
Feed ID built from editable SKUOps renames a SKU and the feed ID changesUse an immutable internal key; keep SKU as an attribute
ID concatenated from attributesTEE-BLACK-M becomes TEE-JET-BLACK-M after a color renameNever encode names, prices, or colors into the ID
Row number or export orderIDs shift when products are added or sorted differentlyGenerate IDs at creation, not at export
Platform or PIM migrationNew platform issues new native IDsKeep the old feed ID through a crosswalk (see below)
Feed tool regenerates IDsThird-party feed app uses its own prefix after reinstallPin the ID template in the tool and store it in version control
Variant re-creationDeleting and re-adding a size creates a new platform variant IDMap the new platform ID to the existing feed ID before export

Which value should be the feed item_id?

Use a value your organization controls, assigns once, and never edits: either the commerce platform's native variant ID (if you will never migrate) or a dedicated internal key stored in the PIM. A merchant SKU is acceptable only when someone owns it as immutable.

CandidateStabilityRiskWhen it works
Platform variant IDStable until you migrate platforms or re-create the variantPlatform migration changes every IDSingle platform, no migration planned
Merchant SKUAs stable as your change processEdited by ops; reused for new itemsSKU is governed and never reused
GTINOwned by the brandMissing for private label; identifies trade item, not your listingNever as the only ID; send it in gtin
Internal immutable key (recommended)Stable by designNeeds a crosswalk tableMulti-system catalogs, planned migrations, marketplaces

Record the choice in a data dictionary so every team uses the same rule. Our catalog data dictionary template has product_key and group_key rows you can adopt.

How do you migrate product identifiers without losing continuity?

Keep the feed-facing ID constant and change only what sits behind it. A crosswalk table maps each feed ID to its current and past source IDs with validity dates, so a platform move or SKU cleanup does not reach the feed.

Synthetic ID crosswalk. Retired rows stay forever so a retired feed ID is never handed to a new item.
feed_item_id,source_system,source_id,valid_from,valid_to,status,note
VAR-000184,shopify,gid://shopify/ProductVariant/41110000184,2024-03-01,,active,
VAR-000184,legacy_erp,TS-ORG-BLK-M,2021-06-15,2024-02-29,retired,SKU renamed during ERP cleanup
VAR-000185,shopify,gid://shopify/ProductVariant/41110000185,2024-03-01,,active,
VAR-000310,shopify,gid://shopify/ProductVariant/41110000310,2024-03-01,,active,
VAR-000099,shopify,gid://shopify/ProductVariant/41110000099,2024-03-01,2026-08-01,retired,Discontinued; ID never reused
  1. 1

    Inventory every identifier

    List each system that emits or stores an ID (platform, ERP, PIM, feed tool, reviews, analytics, marketplaces) and which ID each destination currently receives.

  2. 2

    Freeze the feed ID rule

    Choose the feed-facing key and write down that it is never edited or reused. Assign keys to every active variant and group before cutover.

  3. 3

    Build the crosswalk

    Map feed ID to each source ID with valid_from and valid_to. Include retired and discontinued items so their IDs remain reserved.

  4. 4

    Dry-run the export

    Generate the new feed from the new system and diff it against the last production snapshot. Every existing item should keep its ID; investigate each one that does not.

  5. 5

    Keep URLs stable or redirect

    If product URLs change, add permanent redirects and update the feed url in the same release. OpenAI asks for stable product URLs.

  6. 6

    Cut over in one snapshot

    OpenAI's feed guide describes delivery as full snapshots, so switch the whole file at once rather than mixing old and new ID schemes.

  7. 7

    Monitor for two cycles

    Watch item counts, rejected rows, and diagnostics in the destination dashboards. Run the reconciliation tests below on every snapshot.

How do you test that feed records reconcile with the store?

Run automated checks on every snapshot before delivery: compare it with the previous snapshot, with the crosswalk, and with the live store. Block the delivery on identity failures; alert on the rest.

Reconciliation test suite
TestRuleSeverity
Unique item IDsNo item_id appears twice in a snapshotBlock
No reuseNo item_id in the snapshot is marked retired in the crosswalkBlock
ID driftAn item with the same GTIN and URL as last snapshot has the same item_idBlock
Group integrityVariant rows have listing_has_variations=true and a group_id different from item_idBlock
Option consistencyAll variants in a group use the same variant_dict keys; no two variants have identical optionsAlert
GTIN validity8, 12, 13, or 14 digits with a valid check digit, leading zeros keptAlert (drop the GTIN, not the row)
Vanish rateShare of last snapshot's IDs missing from this one stays under your thresholdBlock above threshold
URL preselectionSampled variant URLs return 200 and render the same variant's price and availabilityAlert
Source matchSampled price and availability equal the platform's current valuesAlert
Illustrative TypeScript sketch. The 2% vanish threshold is an example; set yours from normal catalog churn.
// Illustrative reconciliation sketch (not run against production data).
// Compares two feed snapshots plus the ID crosswalk and returns failures.
type Row = { item_id: string; group_id?: string; gtin?: string; url: string;
  title: string; listing_has_variations?: boolean;
  variant_dict?: Record<string, string> };

export function reconcile(prev: Row[], next: Row[], retired: Set<string>) {
  const failures: string[] = [];
  const seen = new Map<string, Row>();
  for (const r of next) {
    if (seen.has(r.item_id)) failures.push("duplicate item_id " + r.item_id);
    seen.set(r.item_id, r);
    if (retired.has(r.item_id)) failures.push("retired ID reused " + r.item_id);
    if (r.gtin && !validGtin(r.gtin)) failures.push("bad GTIN " + r.item_id);
    if (r.listing_has_variations && (!r.group_id || r.group_id === r.item_id))
      failures.push("variant without distinct group_id " + r.item_id);
  }
  // Same URL + same GTIN under a new item_id usually means an ID drifted.
  const prevByKey = new Map(prev.map((r) => [(r.gtin || "") + "|" + r.url, r]));
  for (const r of next) {
    const old = prevByKey.get((r.gtin || "") + "|" + r.url);
    if (old && old.item_id !== r.item_id)
      failures.push("ID changed " + old.item_id + " -> " + r.item_id);
  }
  // Every variant in a group should use the same option keys.
  const keysByGroup = new Map<string, string>();
  for (const r of next) {
    if (!r.listing_has_variations || !r.group_id) continue;
    const keys = Object.keys(r.variant_dict || {}).sort().join(",");
    const k = keysByGroup.get(r.group_id);
    if (k !== undefined && k !== keys) failures.push("mixed option keys " + r.group_id);
    keysByGroup.set(r.group_id, keys);
  }
  const vanished = prev.filter((r) => !seen.has(r.item_id)).length;
  if (vanished > prev.length * 0.02) failures.push("more than 2% of IDs vanished");
  return failures;
}

function validGtin(g: string): boolean {
  if (!/^(\d{8}|\d{12}|\d{13}|\d{14})$/.test(g)) return false;
  const d = g.split("").map(Number);
  const check = d.pop()!;
  const sum = d.reverse().reduce((s, n, i) => s + n * (i % 2 === 0 ? 3 : 1), 0);
  return (10 - (sum % 10)) % 10 === check;
}

Our catalog quality checker and product feed validator cover several of these rules in the browser. For error messages you already see in a dashboard, use the feed validation errors guide.

What are the most common variant identity mistakes?

  • Group ID equals item ID on variant rows. OpenAI's schema then establishes no group, so variants appear as unrelated items.
  • One row per product, options in the title. The surface cannot show the right price or stock for the size a shopper wants.
  • The same GTIN on every variant. GTIN identifies the trade item; most brand owners assign separate GTINs per size and color.
  • Invented GTINs or MPNs. OpenAI's schema says not to invent an MPN to replace a missing GTIN. Leave identifiers blank when none exist.
  • Variant URLs that all open the default option. The page then contradicts the feed row's price, image, or availability.
  • Mixed option keys inside one group (Size on some rows, size on others), which splits or corrupts the option set.

Most of these come from source data, not the feed tool. Fixing them is often part of product data enrichment, covered in our attribute enrichment guide. If your feed is assembled from several systems, our product feed integration work starts with exactly this identity map.

Frequently asked questions

Should each variant have its own product ID in the OpenAI feed?

Yes. OpenAI's product feed schema describes item_id as unique per item or variant, with group_id shared by all variants of a listing. The group_id must differ from item_id for grouping to work, and variant rows should set listing_has_variations to true.

Can I use the SKU as the feed item_id?

Only if your SKUs are governed as immutable and never reused. Many teams edit SKUs during ERP cleanups or reuse them for new items, which changes or corrupts the feed ID. A dedicated internal key with a crosswalk is safer.

What happens if I change all my product IDs at once?

Destinations keyed on item ID will treat every product as removed and re-added. OpenAI's documentation, as checked on 2026-11-29, does not describe a remapping field, so plan for continuity to reset. If a change is unavoidable, do it in one full snapshot rather than gradually.

Do variants need different GTINs?

That is the brand owner's decision under GS1 rules, and most assign separate GTINs to each size and color. Send the GTIN the brand assigned to each variant. If none exists, leave the field empty instead of generating one.

Is group_id required for products without variants?

No. OpenAI's schema says group_id defaults to item_id when omitted, which simply establishes no group. Add a group_id only when the item belongs to a multi-variant listing.

How do I keep IDs stable during a Shopify or PIM migration?

Assign each variant a feed-facing key before the migration and store it in a crosswalk mapping old and new native IDs. Generate the first feed from the new system, diff it against the last production snapshot, and fix any item whose ID changed before cutover.

Does stable identity guarantee my products will be recommended?

No. Stable IDs prevent avoidable data loss and mismatches; they do not determine ranking or recommendations, which the platforms control. Treat identity as a precondition for reliable data, not a visibility lever.

Untangle product identity across your systems

Tell us which platform, PIM, ERP, and feed destinations you use, and whether a migration is planned. We will map the identifiers and the reconciliation checks you need.

Sources

  1. OpenAI: Product feed schema — item_id, group_id, variant_dict, gtin, mpn, offer_id rules
  2. OpenAI: Submit product feeds — Full-snapshot delivery; stable item_id across submissions
  3. Shopify Help: Shopify Catalog and product discovery
  4. Google Search Central: Product variant structured data
  5. Google Search Central: Merchant listing structured data
  6. OpenAI: Product checkout conversion spec (approved-partner beta)

Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.