Contents
CommerceStableVersion v1

Commerce API

Read orders, returns, availability and locations from Nucleo Orders, and send in orders — for your ERP, BI, B2B and customer service tools.

The API for the systems that work next to Nucleo Orders: your ERP, your data warehouse, your customer service desk, your own apps — and for the ones that sell outside the sales channel (an ERP, a B2B portal, a smaller marketplace) and send their orders to Nucleo. One API key per integration: the key belongs to one company and only does what its permissions (scopes) allow.

Warehouses that fulfil orders use the Fulfillment API instead.

Conventions

  • JSON in UTF-8, snake_case field names, dates in ISO 8601 UTC (2026-10-13T08:30:00Z).
  • Amounts are decimal strings with their currency: {"amount": "180.00", "currency": "EUR"}.
  • Lists are paginated with an opaque cursor: limit (1–200, default 50), answer {data, next_cursor}. Follow next_cursor until it is null. Lists are sorted by last update, oldest first: keep the updated_at of the last item you read and pass it as updated_since next time to read only what changed.
  • Every response carries X-Request-Id. Errors always have the same shape: {"error": {"code", "message", "request_id", "details"}}.
  • Order numbers are the merchant's (#1042). In paths you can omit the # or encode it as %23, or use the order id.
  • Reads never change anything. The only write is POST /orders, which creates an order and needs the orders:write scope; it accepts an Idempotency-Key.
  • Optional signed webhooks tell you when an order or a return changes, so you read it right away instead of waiting for your next sync.

Authentication

  • apiKeyHTTP bearer

    The connection's API key (nck_…): Authorization: Bearer <api_key>.

  • webhookSignatureAPI key · header · X-Nucleo-Signature

    Webhooks Nucleo sends to your webhook URL. X-Nucleo-Signature: t=<unix time>,v1=<signature>, where the signature is the lowercase hex HMAC-SHA256 of <t>.<raw body> keyed with the connection's webhook secret (whsec_…). Verify it on the exact bytes you received, in constant time, and reject a t more than 5 minutes away from your clock. The event type is also in X-Nucleo-Event.

Base URL
https://api-commerce.nucleoplatform.com/api/commerce/v1Production
Who calls it
Your servers
Endpoints
9 + 5 webhook
OpenAPI 3.1 specification
commerce.yaml

Resources

Each resource has its own page with every endpoint, parameter and example.

Connection

Check that your API key works and see which company it belongs to and what it can read.

Orders

Orders as the customer and your back office see them, with their lines, shipments, refunds made on the sales channel and the returns opened on them.

Returns

Returns come from the sales channel, where the customer opens them. Nucleo follows them to the warehouse and records what arrived and in which condition.

Inventory

What you can sell now, per item and location: stock on hand, minus what is reserved for open orders and the safety stock, never below zero. With channel, the sales channel's allocation rules apply too: only the locations it sells from, minus the pieces held for other channels, within its caps. Pre-order quantities are not included.

Locations

Warehouses and stores of the company, with the codes used in shipments and availability.

Webhooks

Nucleo can call your server when something changes. In the connection's Settings, write your Webhook URL (https only, on a public address) and save. Your key receives the events of its scopes: