Contents

Get started with the Catalog API

How the Catalog API keeps an external system in sync with a Nucleo catalog: key, who wins on a field, errors and limits.

How it works

The Catalog API keeps the software of another company — an ERP, a PLM, a supplier portal, a marketplace connector — in sync with one Nucleo catalog. A typical integration does four things:

  1. Loads the catalog once, in bulk.
  2. Pushes prices as they change (stock belongs to Nucleo Commerce: the API sets only the initial quantity of new variants).
  3. Downloads what changed in Nucleo since its last run (updated_since).
  4. Listens to webhooks, so it does not have to poll.

Products are matched by SKU: sending the same product twice updates it, it never creates a duplicate. Every write goes through the same import Nucleo uses for files and other connected systems, so it follows the same rules and shows up in the product's Activity with the name of your key as the author. Writing through the API never publishes anything to Shopify or other sales channels: publishing stays a decision taken in Nucleo.

Before you start

An owner or admin of the catalog creates the key in Nucleo; you need its value.

  1. In Nucleo, go to Settings > Organization > Connections and open Catalog API (under Library, tab Catalog, until the catalog has a key; then under Connected).
  2. Click New key, give it a name (it appears as the author of every change in the Activity), and choose:
  3. Copy the key (nck_…). It is shown only once; if you lose it, create a new one and revoke the old one.

A key works for that catalog only: there is no header to choose a company or a catalog. Check it with GET /ping:

curl https://api-catalog.nucleoplatform.com/api/catalog/v1/ping \
  -H "Authorization: Bearer $NUCLEO_CATALOG_KEY"

Then read the codes your products will refer to: GET /price-lists, GET /locations, GET /locales, GET /attributes (with the allowed values), GET /categories, GET /channels and GET /seasons. They are managed in Nucleo. A code that does not exist is an error that names it, never a value silently dropped.

Who wins on a field

A read and write key writes every field it sends, and the last write wins. There are no per-field rules and no field is locked: people in Nucleo, and other connected systems, can edit the products your key writes, and your next call overwrites what they changed.

Every change, yours included, appears in the product's Activity in Nucleo with its author, and the catalog owner can restore an earlier value from there. If a system should never change the catalog, give it a read only key.

Errors and retries

Every error has the same shape, in English, with a stable code to branch on and the request_id to quote to support (it is also in the X-Request-Id header):

{
  "error": {
    "code": "validation_failed",
    "message": "The request is not valid: see details.",
    "request_id": "7c0f8a1e-3b2d-4e5f-9a6b-1c2d3e4f5a6b",
    "details": {
      "variants.0.prices.0.price_list": ["Unknown price list \"usa\". GET /price-lists lists them."]
    }
  }
}
StatusCodesWhat to do
400validation_failed, invalid_json, invalid_cursor, product_not_writtenFix the request.
401unauthorizedThe key is missing, wrong or revoked.
403read_only_key, module_disabledUse a read and write key; module_disabled means the Catalog is no longer active for the company: ask its admin.
404product_not_found, variant_not_found, not_found…Check the id or SKU.
409idempotency_key_reused, idempotency_key_in_progressRead the message; retry only idempotency_key_in_progress.
413payload_too_largeSplit the request (20 MB at most).
429rate_limitedWait the seconds in Retry-After.
5xxinternal_error, catalog_not_readyRetry with backoff.

Retry writes safely with an Idempotency-Key header (any unique string, a UUID is fine). Sending the same request again with the same key within 48 hours returns the first answer without doing the work twice (Idempotent-Replayed: true). The same key with a different body is a 409. Answers 429 and 5xx are not stored, so you can retry them with the same key. Webhook secrets are never stored: a replayed POST /webhooks or rotate_secret answers with secret: null, and you get a new secret by rotating it.

Limits

LimitValue
Requests per key600 per minute (the catalog owner can set 1–6,000)
Failed authentications per address30 in 5 minutes, then 429
Request body20 MB
Products per page1–200 (default 50)
POST /products/batch100 products
POST /imports5,000 products
PUT /prices, PUT /stock1,000 lines
Variants per product in one call500
image_urls per product50
Image uploadJPEG, PNG or WebP, 10 MB
Image from URL40 MB, never SVG
Categories per product200
Webhooks per key10
Idempotency-Keykept 48 hours