> ## Documentation Index
> Fetch the complete documentation index at: https://developers.criteo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload a Product Catalog

> How to submit a batch of product updates to Criteo Marketing Solutions and monitor ingestion status.

This guide walks through the Product Importer API: submit a batch of product upserts or deletes, retrieve the ingestion report to verify results, then check the merchant catalog statistics. By the end, you will have product data live in Criteo's catalog, confirmed through the ingestion summary and the catalog statistics.

***

## Prerequisites

* **Auth scope**: `MarketingSolutions_Catalog_Manage` (upload), `MarketingSolutions_Catalog_Read` (report and statistics) — see [Authentication](https://developers.criteo.com/marketing-solutions/v2027.01-rc/docs/authentication.md)
* **Merchant ID**: the identifier of the merchant whose catalog you are updating — obtainable from your Criteo account team
* **Product data**: a list of products to upsert or delete, each identified by a unique `id`

***

## Steps

### 1. Submit a product batch

[→ `POST /2027-01/marketing-solutions/catalog/products/batch`](https://developers.criteo.com/marketing-solutions/v2027.01-rc/reference/catalog/2027-01marketing-solutionscatalogproductsbatch)

Send an `entries` array. Each entry must include a `merchantId` and a `method` (`insert` or `delete`). For an insert, add a `product` object with the catalog fields. Required product fields are `id`, `title`, `link`, `imageLink` and `availability` (`in_stock`, `out_of_stock`, `preorder` or `backorder`). For a delete, set `productId` on the entry to the `id` of the product to remove.

```bash theme={null}
curl -X POST "https://api.criteo.com/2027-01/marketing-solutions/catalog/products/batch" \
  -H "Authorization: Bearer <MY_ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "entries": [
      {
        "merchantId": "12345",
        "method": "insert",
        "batchId": 1,
        "product": {
          "id": "PROD-001",
          "itemGroupId": "GROUP-001",
          "title": "Running Shoes",
          "description": "Lightweight trail running shoes",
          "link": "https://example.com/products/PROD-001",
          "imageLink": "https://example.com/images/PROD-001.jpg",
          "price": { "value": "99.99", "currency": "USD" },
          "availability": "in_stock",
          "googleProductCategory": "Apparel & Accessories > Shoes"
        }
      }
    ]
  }'
```

The response returns the ingestion identifier in `data.id`. Save this value — it is the `id` used in the next step.

```json theme={null}
{
  "data": {
    "type": "CatalogProductsBatchReport",
    "id": "ing-a1b2c3d4"
  }
}
```

> [!WARNING]
>
> Do not send multiple updates of the same product in a single batch — the batch will be rejected. Only send entries for products whose data has actually changed.

> [!NOTE]
>
> Products that are not updated expire after 30 days. Use the `expirationDate` field to extend the lifespan up to one year.

***

### 2. Retrieve the batch report

[→ `GET /2027-01/marketing-solutions/catalog/products/batch/report/{id}`](https://developers.criteo.com/marketing-solutions/v2027.01-rc/reference/catalog/2027-01marketing-solutionscatalogproductsbatchreport)

Poll using the `id` from step 1. Returns the ingestion status and product counts.

```bash theme={null}
curl "https://api.criteo.com/2027-01/marketing-solutions/catalog/products/batch/report/ing-a1b2c3d4" \
  -H "Authorization: Bearer <MY_ACCESS_TOKEN>"
```

```json theme={null}
{
  "data": {
    "type": "CatalogProductsBatchReport",
    "id": "ing-a1b2c3d4",
    "attributes": {
      "status": "validatedWithErrors",
      "importRequestTimestamp": "2020-10-02T09:36:32Z",
      "numberOfProductsInTheBatch": 2,
      "numberOfProductsUpserted": 1,
      "numberOfProductsDeleted": 0,
      "numberOfProductsWithErrors": 1,
      "numberOfProductsWithWarnings": 0
    }
  },
  "errors": [
    {
      "traceId": "56ed4096f96a4944888105468efe0ec9",
      "type": "validation",
      "code": "invalid-product-url",
      "instance": "/2027-01/marketing-solutions/catalog/products/batch/report/ing-a1b2c3d4",
      "title": "The product URL is invalid.",
      "detail": "The product URL is not a valid absolute URL",
      "source": { "productId": "sun-124" }
    }
  ]
}
```

Counts (`numberOfProducts*`) are JSON numbers. Retry with backoff while `data.attributes.status` is `accepted` or `inProgress`. Stop when it reaches `validated`, `validatedWithErrors`, or `failed`. The report is available for 4 days.

> [!NOTE]
>
> `validatedWithErrors` is a terminal state — some products were rejected but the remainder were accepted. The top-level `errors[]` array contains per-product details: `code`, `title`, `detail`, `type` (`"validation"` for a product data issue, `"unknown"` for a service failure), `traceId`, `instance`, and `source.productId`. Both `errors[]` and `warnings[]` are omitted when empty.

***

### 3. Check the merchant catalog statistics

[→ `GET /2027-01/marketing-solutions/catalog/stats/merchants/{merchant-id}`](https://developers.criteo.com/marketing-solutions/v2027.01-rc/reference/catalog/2027-01marketing-solutionscatalogstatsmerchants)

Once your batches are processed, check the state of the whole merchant catalog. Set the time window with `last-number-of-hours`: from 1 to 1000, 24 by default.

```bash theme={null}
curl "https://api.criteo.com/2027-01/marketing-solutions/catalog/stats/merchants/12345?last-number-of-hours=24" \
  -H "Authorization: Bearer <MY_ACCESS_TOKEN>"
```

```json theme={null}
{
  "data": {
    "type": "MerchantCatalogStatistics",
    "id": "12345",
    "attributes": {
      "records": [
        {
          "startDate": "2026-09-06T00:00:00Z",
          "endDate": "2026-09-07T00:00:00Z",
          "total": 125430,
          "variant": 8021,
          "displayable": 119004,
          "nonDisplayable": 6426,
          "added": 1204,
          "deleted": 311,
          "updated": 20877,
          "blacklisted": 58,
          "outOfStock": 4390,
          "missingImage": 12,
          "missingUrl": 0,
          "missingPrice": 37,
          "missingName": 0,
          "missingDescription": 941
        }
      ]
    }
  }
}
```

`data.attributes.records[]` contains one record per time bucket of the requested window. All counters are JSON numbers:

* `added`, `updated`, and `deleted` count the products changed between `startDate` and `endDate`.
* All other counters (`total`, `displayable`, `nonDisplayable`, `outOfStock`, `missing*`, etc.) give the state of the catalog at `endDate`.

Use the `missing*` counters to see how many products have incomplete data.

***

## Verify

A successful upload returns HTTP `202` with a non-empty `data.id`. A successful ingestion has `data.attributes.status` of `validated`. A `validatedWithErrors` status indicates partial success — some products were rejected. If `failed`, all products in the batch were rejected. A batch rejected as a whole returns HTTP `400` on upload and has no report.

***

## Constraints

| Limit | Value |
| - | - |
| Product lifespan without update | 30 days |
| Maximum `expirationDate` | 1 year from last update |
| Products per batch | 1,000 maximum |
| Merchants per batch | One — all entries must use the same `merchantId` |
| Duplicate product in a single batch | Not allowed |
| Batch processing time | Up to 1 hour |
| Report lifetime | 4 days |

The upload is rejected immediately with HTTP `400`, and no report is created, if the batch contains duplicate products, more than 1,000 products, more than one merchant, or invalid dates.

***

## Best practices

* **Only update changed products.** This API is not a feed ingestion mechanism — submit requests only for new, updated, or deleted products.
* **Send updates immediately after a change.** Do not hold updates to group them into a larger batch — send them as soon as the product data changes.
* **Submit a deletion immediately when a product is removed from your store.** Do not rely on the expiration date — a product approaching expiry may still be displayed even if it is no longer available.
* **Do not send multiple updates for the same product in a single batch.** The upload is rejected with HTTP `400` if the batch contains duplicates.
* **Do not send updates for unchanged products**, unless the product is approaching its expiration date.
* **`id` and `itemGroupId` must be different.** Use `id` to uniquely identify a single product and `itemGroupId` to group products as variants.
* **`itemGroupId` must be outside the `id` range.** If a product shares an `id` with an existing `itemGroupId` or vice versa, the behavior is undefined and updates may be silently ignored.
