Trial phase Try Mozanza for free until 31 January 2027, with no costs or obligations.Start for free →

API and webhooks

Read and change products, stock and orders of a Mozanza webshop, and receive messages on every change. For tills, ERPs, warehouses and integration platforms.

OpenAPI description (JSON)

Quick start

  1. The business creates an API key in Dashboard › Webshop › API and webhooks (Shop Pro or Business) and chooses its permissions.
  2. Send the key with every request as Authorization: Bearer.
  3. Amounts are whole numbers in cents, including VAT. Times are ISO 8601 in UTC.
curl https://app.mozanza.com/api/v1/products?updated_since=2026-11-01T00:00:00Z \
  -H "Authorization: Bearer mz_live_…"

curl -X POST https://app.mozanza.com/api/v1/stock \
  -H "Authorization: Bearer mz_live_…" -H "Idempotency-Key: sale-4711" \
  -H "Content-Type: application/json" \
  -d '{"changes":[{"sku":"BO-1","delta":-1,"reason":"sale"}]}'

Permissions per key

Each key has its own permissions. A permission to change also grants the permission to read. A revoked key stops working immediately.

  • products:read — Read products
  • products:write — Read and change products
  • stock:read — Read stock
  • stock:write — Read and change stock
  • orders:read — Read orders
  • orders:write — Read and update orders
  • webhooks — Manage webhooks

Pages and syncing

Lists are ordered by last change. Use updated_since to request only what changed, and follow next_cursor until has_more is false. That way a sync never misses a change.

Idempotency

Send an Idempotency-Key header with write requests. The same key within 24 hours returns the same response without repeating the change, even if your request is retried after a network error.

Rate limit and errors

At most 120 requests per minute per key; above that you get 429 with Retry-After. Errors always have the form error.code, error.message and error.status.

{ "error": { "code": "shop.stock.belowZero", "message": "…", "status": 409 } }

Endpoints

The full overview with fields is in the OpenAPI description.

GET/api/v1/meBusiness, plan and scopes of this key
GET/api/v1/productsList productsproducts:read
POST/api/v1/productsCreate a product (simple or with options and variants)products:write
GET/api/v1/products/{id}Get a productproducts:read
PATCH/api/v1/products/{id}Update a productproducts:write
DELETE/api/v1/products/{id}Archive a product (orders keep their history)products:write
GET/api/v1/variantsList variants (find by SKU or EAN)products:read
PATCH/api/v1/variants/{id}Update a variantproducts:write
GET/api/v1/categoriesList categoriesproducts:read
GET/api/v1/locationsList stock locations (stores, warehouses, suppliers)stock:read
GET/api/v1/stockStock per variant and locationstock:read
POST/api/v1/stockChange stock (up to 100 changes, all or nothing)stock:write
GET/api/v1/ordersList ordersorders:read
GET/api/v1/orders/{id}Get an order (by id or order number)orders:read
POST/api/v1/orders/{id}/statusMove an order to processing, ready_for_pickup, shipped or deliveredorders:write
POST/api/v1/orders/{id}/paidMark as paid (e.g. paid at the till on pickup)orders:write
POST/api/v1/orders/{id}/cancelCancel an unpaid order (stock is returned)orders:write
GET/api/v1/webhooksList webhook endpointswebhooks
POST/api/v1/webhooksSubscribe a URL to events (returns the signing secret once)webhooks
DELETE/api/v1/webhooks/{id}Unsubscribewebhooks

Webhooks

Mozanza posts every event as JSON to your https address, signed with HMAC-SHA256. Respond within 10 seconds with 2xx; otherwise we retry for up to 3 days. Use the id field to ignore a duplicate message.

Events

  • order.created — New order
  • order.paid — Order paid
  • order.shipped — Order shipped
  • order.delivered — Order delivered
  • order.cancelled — Order cancelled
  • order.refunded — Refund
  • product.created — New product
  • product.updated — Product changed
  • product.deleted — Product deleted
  • stock.changed — Stock changed

Verifying the signature

import { createHmac, timingSafeEqual } from 'node:crypto';

// header = req.headers['mozanza-signature'], body = de ruwe tekst van het verzoek
export function verify(header, body, secret) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const expected = createHmac('sha256', secret).update(parts.t + '.' + body).digest('hex');
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Zapier, Make and n8n

Use your platform's HTTP module with the header Authorization: Bearer and a key. For triggers: paste your platform's webhook URL in the dashboard, or subscribe it via POST /api/v1/webhooks.