Syncing Products Through the API

You can sync data for recommendations and personalized messages using either a product feed or the API. With the API, you can send updates as soon as they occur — for example, when a new product is added, a price changes, or a product goes out of stock. If the whole catalog and all later updates come through the API, a separate feed isn't needed.

When to Sync Through the API

  • Integrations and plugins: send product data directly from the platform without exporting a separate feed.
  • Frequent price and availability changes: so that recommendations don't show unavailable products or outdated prices.
  • Multiple markets: prices, currency, availability, and links can be updated separately for each market.
📘

If the Account Already Has a Feed

The feed updates on schedule and overwrites the data sent through the API. Keep the feed data up to date, or turn the feed's auto-update off so that the API becomes the only source: in the Products block open the … menu and select Remove feed auto-update — the menu item names the language. The catalog itself stays either way.

Before You Start

To use the Add products, Delete products, and Add markets methods, you need:

  • an API key;
  • stable identifiers of products or their variants in your system.

Catalog Sync

MethodRequestWhat it does
Add productsPOST /v1/productsCreates and updates products
Delete productsDELETE /v1/productsDeletes products
Add marketsPOST /v1/marketsCreates and updates product data for separate markets: price, currency, availability, and links

For the first sync, send the whole catalog. If the catalog exceeds either request limit — 1,000 records or 10 MB — split it across multiple requests.

After that, send only the changes. Products that aren't in the request are neither changed nor deleted. To update an existing product, send productId, updatedDate and the fields that changed.

Product Identifiers

productId must match the identifier used for this product or its variant in web tracking events, recommendation requests, the product feed, and market data.

What web tracking usesproductId in the APIitemGroupId in the API
Product IDThe same product IDOptional
Variant ID, for example, of a size or a colorThe same variant IDShared product ID for all its variants (recommended)

For example, if a black T-shirt in size M has the ID variant_987 and the parent product has the ID product_123, send productId: "variant_987" and itemGroupId: "product_123".

📘

Specify updatedDate

updatedDate is the time the product changed in your system, in UTC. If the platform doesn't provide it, send the time of the event or the time your integration recorded the change. The system uses updatedDate to order updates and discard outdated ones.

Creating and Updating Products

In every request, specify languageCode in the BCP 47 format, for example, en, uk, or en-GB. It defines the language of the name, description, url, and categories fields. The languageCode of the first accepted request becomes the default language of the site. When the account has a feed, the default language is already set, and API requests do not change it.

Required Fields

For every product, specify the action:

ActionRequired fields
create — a new productproductId, updatedDate, name, url, imageUrl, price, currency, isInStock, categories
update — existing productproductId, updatedDate, and the fields that changed

Other field requirements:

FieldRequirement
imageUrlAn image of at least 200×200 pixels
categoriesAt least one category
oldPriceIf sent together with price, it must be greater than price
descriptionPlain text without HTML
📘

Repeated create

create for a product that is already in the catalog updates it, but the request must still contain all the fields required for create.

How Fields Are Updated

A field that isn't in the request stays unchanged, and a sent value replaces the previous one. categories, tags, and translations follow separate rules:

FieldHow it is updated
categoriesA new array replaces all the product categories
tagsA provided value replaces only the corresponding tag; other tags are preserved
translationsA new translation replaces the whole translation in that language: fields missing from it are deleted. Translations in other languages are preserved

A tag name is the tag name in your feed: recommendation data sources and email variables expose it with the tags_ prefix, for example, tags_color.

To delete oldPrice, description, brand, itemGroupId, or a tag, send the field name in remove.fields or the tag name in remove.tags:

{
  "languageCode": "en",
  "products": [
    {
      "action": "update",
      "productId": "430738",
      "updatedDate": "2026-04-01T10:06:00Z",
      "remove": { "fields": ["oldPrice"], "tags": ["season"] }
    }
  ]
}

Examples

Creating a product:

{
  "languageCode": "en",
  "products": [
    {
      "action": "create",
      "productId": "variant_987",
      "updatedDate": "2026-04-01T09:07:15Z",
      "itemGroupId": "product_123",
      "name": "Men's T-shirt / Black / M",
      "url": "https://example.com/products/t-shirt-black-m",
      "imageUrl": "https://example.com/images/t-shirt-black-m.jpg",
      "isInStock": 1,
      "price": 19.99,
      "oldPrice": 24.99,
      "currency": "USD",
      "categories": [
        { "id": "8", "name": "T-shirts", "path": ["Clothing", "Tops", "T-shirts"] }
      ],
      "tags": { "color": ["Black"], "size": ["M"] }
    }
  ]
}

Updating the price and availability:

{
  "languageCode": "en",
  "products": [
    {
      "action": "update",
      "productId": "430738",
      "updatedDate": "2026-04-01T10:07:00Z",
      "price": 479.99,
      "oldPrice": 549.99,
      "isInStock": 1
    }
  ]
}

Where the Data Appears

Products and market data sent through the API are shown in Settings → Product catalog, the same place a feed fills, with the same statistics whichever source the data came from. Every language version you have sent is listed there.

Product catalog page with the Products and Markets statistics and the block menu open

Every statistic leads to the products behind it: select the view icon at the end of its row, or View product list in the block menu, where the name includes the language. The list shows each product's identifiers, name, link, image, brand, category, and price, and can be filtered by any of them.

In the catalog you can also:

  • switch the Default language;
  • delete a language catalog with Delete catalog;
  • delete the market data with Delete markets.

Delete catalog removes the products of that language as well, so API sync starts with an empty catalog. To move from the feed to the API without losing data, send the products through the API, then select Remove feed auto-update.

Deleting Products

Send the productId and updatedDate of the products to delete. When you delete a product:

  • the system doesn't apply an outdated deletion if it has already received a newer change for this product;
  • if the product has already been deleted, the request has no effect;
  • the market data of the product is deleted together with it.
{
  "products": [
    { "productId": "430738", "updatedDate": "2026-04-01T10:10:00Z" }
  ]
}

Market Data

For each market, you can set the price, currency, availability, and product link separately. This data can also be sent through the API instead of a market feed, including for products that arrive in the catalog from a feed. A product has to be in the catalog before you send its market data: when products arrive through the API, first create or update them with POST /v1/products, then send the market data with POST /v1/markets.

marketId is a stable identifier of the market in your system, for example, a country, region, or city code. It must match the marketId in contacts, orders, web tracking events and recommendation requests.

Fields that aren't in the request are preserved.

CaseWhat is needed
Update market dataproductId, updatedDate, and at least one of price, currency, isInStock, oldPrice, urls
Use the product in recommendationsThe base product in the catalog and price, currency, isInStock: 1 for the market
Remove the product from recommendations on a marketisInStock: 0

A product is used in recommendations for a market once price, currency, and isInStock: 1 are set for it. Until then, the market data is only stored.

Updating the price and availability of two products in a market:

{
  "markets": [
    {
      "marketId": "ca",
      "products": [
        { "productId": "SKU123", "updatedDate": "2026-04-01T10:30:00Z", "price": 29.99, "currency": "CAD", "isInStock": 1 },
        { "productId": "SKU456", "updatedDate": "2026-04-01T10:31:00Z", "price": 49.00, "currency": "CAD", "isInStock": 0 }
      ]
    }
  ]
}

If You Are Switching from a Market Feed

The market feed fields map to the API fields like this:

Market feedAPI
idproductId
marketIDmarketId
availabilityisInStock
currencycurrency

Prices map like this: send the feed's salePrice as price. If the feed also has price and it differs from salePrice, send it as oldPrice; if the feed has no price or it equals salePrice, omit oldPrice.

Response

If the request structure is valid, each item is validated independently: an error in one item doesn't stop the others from being processed.

The response contains:

  • the number of received, accepted, and rejected items;
  • the status of each item and, for rejected items, an error code and explanation;
  • a requestId for diagnostics, also returned in the X-Request-Id header.

The order of items in items may differ from their order in the request. Match the results by productId, and for markets by marketId and productId.

The accepted status means the item passed initial validation and was accepted for processing. Processing then continues asynchronously, so accepted does not mean the change has already been applied.

Response codeMeaning
200All items accepted
207Some items not accepted
400Request structure error, for example, malformed JSON or a missing required top-level field
409The request language does not match the default language of the site
413Request too large
429Rate limit exceeded
500 or higherServer error; retry the request later

For 207, check the result of each item:

  • accepted — no need to send the item again;
  • a validation error — fix the data and send the item again;
  • QUEUE_PUBLISH_FAILED — send the item again without changing the data.

You can retry the entire request after a 500 or higher response.

Limits

The following limits apply to requests:

  • up to 1,000 product records in one request;
  • request size up to 10 MB;
  • up to 60 requests per minute per site.

Don't send the same record twice in one request: for products this is the same productId, and for market data the same pair of marketId and productId.


Did this page help you?