Contents

Keep prices and stock current

Send price changes in bulk, and the initial stock of new variants, without touching the rest of the product.

Prices change far more often than anything else. Send just those, by variant SKU, up to 1,000 lines per call — only the price lists you name change. PUT /stock works the same way but sets only the initial quantity of a variant at a location that has none: stock is owned by Nucleo Commerce, which reads it from Shopify (or writes it there when Nucleo runs your orders), and a line for a location that already has stock comes back invalid. GET /products always returns the quantity Commerce last reported.

curl -X PUT https://api-catalog.nucleoplatform.com/api/catalog/v1/stock \
  -H "Authorization: Bearer $NUCLEO_CATALOG_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stock": [
    {"sku": "TEE-001-M", "location": "main", "available": 12},
    {"sku": "TEE-001-L", "location": "main", "available": 0}
  ]}'

The answer has one result per line, in order: updated, or invalid / failed with the reason (for example an unknown SKU). available replaces the quantity at that location.