> ## Documentation Index
> Fetch the complete documentation index at: https://808-labs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Catalog synchronization

> Use bounded pages and checkpoints instead of full repeated imports.

Synchronization
Import once. Follow committed checkpoints. Refresh only the products and variants that changed.

## Choose the right endpoint

All catalog endpoints enforce tenant/app/environment visibility and require `catalog:read`. Batch calls count as one integration HTTP request each. A product must also be enabled by its merchant and published by the store. Merchant-disabled products continue to sync from the store and are unavailable through tenant catalog reads and new checkout.

| Endpoint | Use |
| - | - |
| `GET /v1/catalog/sync` | Read a committed checkpoint and stock-code definitions |
| `GET /v1/catalog/products` | Initial bounded product pages; optionally bound embedded variants |
| `GET /v1/catalog/categories` | Category names with product counts, for the `category` filter |
| `GET /v1/catalog/products/{product_id}/variants` | Continue large variant sets |
| `GET /v1/catalog/changes` | Incremental changes or a bounded historical time window |
| `POST /v1/catalog/products/batch` | Refresh up to 100 selected product headers |
| `POST /v1/catalog/variants/batch` | Refresh up to 100 selected offers |

## Reliable synchronization

**1. Save the starting checkpoint**

Read and persist a checkpoint **before** taking the initial snapshot.

**2. Import the snapshot**

Fetch product pages and any truncated variant pages, following every returned cursor.

**3. Catch up with changes**

Read changes after the saved checkpoint. The first response freezes an upper `checkpoint` for the cycle.

**4. Complete and commit the cycle**

While `next_cursor` exists, continue with `after=next_cursor&through=checkpoint` and unchanged filters. An empty visible page can still have a next cursor. Apply changes idempotently by sequence, refresh affected IDs in batches and save the final checkpoint only after the cycle completes.

### Handle removals and access changes

`variant_removed` and `product_removed` are tombstones. Remove the corresponding local offer or product.
On `enrollment_changed`, fetch every product page for that merchant. If a product reports
`variants_truncated`, fetch all of its variant pages through
`GET /v1/catalog/products/{product_id}/variants` before replacing the local catalog subset.
Remove products and offers absent from the complete snapshot. If the merchant is no longer eligible,
remove its entire subset. Merchant visibility changes also use this marker, with no product or
variant ID. Batch `unavailable_ids` do not reveal whether an ID is private, missing or removed.

Subscribe to `catalog.products.changed` for a checkpoint hint, then recover from your own saved checkpoint. A webhook alone is not a replacement for the change feed.

## Search, filter and sort products

`GET /v1/catalog/products` narrows the list before paging:

| Parameter | Use |
| - | - |
| `merchant_id` | One merchant ID, or up to 50 comma-separated |
| `q` | Title text, SKU, product ID or variant ID |
| `category` | A name from `GET /v1/catalog/categories`: the merchant's own product type, as the store reports it |
| `availability` | `available` (any variant observed in stock), `sold_out` (every variant observed out of stock) or `unknown` |
| `sort` | `updated`, `name_asc`, `name_desc`, `price_asc` or `price_desc`; price sorts use each product's lowest variant price |
| `page` | A numbered page (1–10,000) of `limit` products |

Without `page` or `sort`, products come in ID order and you follow `next_cursor`. With either, the response includes `total` and `next_cursor` is `null`; combining them with `cursor` returns `422 validation_failed`. Products whose store has not reported a category have an empty `category`.

## Import progress

Ignyt imports a newly connected store's catalog in batches on its own. The merchant portal's
connection read reports `import_in_progress: true` while that import has work left: a batched import
has pages left, including while a failed batch is retried, or a first import that failed before
saving its first batch is retried, up to three failures in a row. Imported products appear as each
batch is saved, and a failed batch keeps earlier products.

## Shopify store imports

Shopify imports save product and variant pages in bounded batches. The merchant portal's
**Import** action continues incomplete work, and earlier imported products remain after a failed
batch. Missing variants are reconciled only after that product's variant scan finishes; missing
products are reconciled after a complete full import.

Explicit `kind=full` restarts an import; `kind=delta` resumes it. Imports keep their starting update
watermark, so edits during a long scan remain eligible for the next incremental update. If a
product changes during a multi-page variant scan, that product's variant membership starts again.
An already observed product deleted during its variant walk can remain until the next full
import. Changes without an updated parent timestamp can require an explicit full refresh.
Existing catalog size limits and request deadlines still apply.

## WooCommerce store imports

WooCommerce imports save progress in batches. Products become available as batches finish, while
large variation sets continue across runs. In the merchant portal, **Import** continues incomplete
work. If a batch fails, earlier imported products remain; retry after the connection's cooldown.
A partial scan does not prove that a previously imported offer was removed.
Imports retain their starting time boundary, so changes that advance the product's modification
timestamp during a long import remain eligible for the next update when the store clock lags Ignyt
by at most five minutes. Delta reads overlap the watermark by five minutes and one second. Larger
clock lag is not detected automatically; synchronize the store clock and run a full import before
relying on incremental updates. Variation-only changes can leave
that timestamp unchanged; use an explicit `kind=full` import to refresh those variants.
Page boundaries are checked when products or variations are deleted during an
import. An explicit `kind=full` restarts a store import; `kind=delta` resumes incomplete work. If a
saved continuation is rejected, `409 catalog_scan_restart_required` means it was reset: retry to
start a fresh full import while retaining imported identifiers. This repaired restart has no retry
cooldown. Completing a short variation page requires an exact native total, unless the store explicitly
reports an empty collection. An empty later page without that total rewinds the scan without
completing it or removing offers. A rewind to the beginning starts fresh variation membership;
surviving IDs are collected again, and missing offers are removed only after that pass finishes.
Nonzero rewinds retain earlier membership. A variation deleted after an earlier page can remain
visible until a fresh scan; use a full import if the parent product timestamp has not changed.
Successive backtracks to earlier offsets are allowed, as is recovery
when a later deletion shifts the observed boundary. A rewind cycle that neither reads new variation
IDs nor advances that recovery fails safely instead of stalling the import. Missing or conflicting completion coverage also fails safely; check store read
permissions and response headers before retrying. Actual failed store calls retain their retry cooldown.

## Merchant-defined Ignyt prices

In Sandbox, eligible Shopify and WooCommerce merchants can set an Ignyt price for each variant,
upload a `sku,price_aed` CSV (up to 750 rows), or clear a price to restore the latest synced store price.
An ambiguous SKU rejects the entire upload. Editing prices requires the merchant's verified session
and recent authenticator verification. Ignyt prices do not change storefront product prices;
imports continue updating source prices and stock independently.

WooCommerce uses its existing authenticated REST API; merchants do not install an extension.
A custom-price quote creates a native checkout draft before payment. WooCommerce calculates its tax
and coupon amounts, and the approved purchase uses that same draft as the paid order. Coupons used
for calculation are removed afterward. Provider failures can delay this release until cleanup succeeds.
Placement reapplies accepted coupons and verifies the approved amount. Quote creation that is
uncertain is reconciled against its original identity; Ignyt does not blindly create another order.
An interrupted quote whose draft may still receive a delayed mutation is retired before approval
and cannot be placed later. Start a fresh cart for a new quote. If an unconfirmed draft is missing
after the recovery deadline, the original operation becomes terminal and retains its evidence for
review. Accepted purchases continue recovering through their original purchase identity.

Custom-price delivery supports qualified WooCommerce core flat-rate and free-shipping rules,
including thresholds after discounts and shipping-class costs. Local pickup is not offered as
delivery. Carrier plugins, cart-only pricing/fee extensions and custom shipping calculators need
separate qualification. Unrecognized shipping methods and observed cart fees fail before payment;
arbitrary extension hooks cannot be detected universally through REST. Qualify the store configuration
before enabling custom-price checkout. A new cart or material
price change requires a fresh approved quote. Live custom pricing is not enabled by this change.

## Time windows

`updated_from` and `updated_until` require timezone-aware timestamps and define a half-open window: start included, end excluded, maximum 31 days. They describe when Ignyt recorded a semantic change, not the merchant's clock or every successful poll. Preserve sequence checkpoints as well as time filters so late-arriving updates are not missed.

## Stock values

| `availability_code` | Meaning |
| - | - |
| `1` | Observed in stock |
| `0` | Observed out of stock |
| `-1` | Unknown |

The matching `stock_state` remains available. `stock_qty=null` is unknown/untracked quantity, not zero. A failed or incomplete scan does not prove removal or sold-out stock. These are Ignyt's own definitions.

> [!TIP]
>
> Stock observations are not reservations. Quote and placement revalidate the merchant's current stock and price.

## Related guides

> [card] [Use stable IDs](https://808-labs.mintlify.site/identifiers-and-custom-fields.md)
>
> Keep variant, product and external references distinct.

> [card] [Receive change hints](https://808-labs.mintlify.site/webhooks.md)
>
> Combine signed events with your saved catalog checkpoint.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.