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.
Quick start
- The business creates an API key in Dashboard › Webshop › API and webhooks (Shop Pro or Business) and chooses its permissions.
- Send the key with every request as Authorization: Bearer.
- 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 productsproducts:write— Read and change productsstock:read— Read stockstock:write— Read and change stockorders:read— Read ordersorders:write— Read and update orderswebhooks— 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/me | Business, plan and scopes of this key | |
GET | /api/v1/products | List products | products:read |
POST | /api/v1/products | Create a product (simple or with options and variants) | products:write |
GET | /api/v1/products/{id} | Get a product | products:read |
PATCH | /api/v1/products/{id} | Update a product | products:write |
DELETE | /api/v1/products/{id} | Archive a product (orders keep their history) | products:write |
GET | /api/v1/variants | List variants (find by SKU or EAN) | products:read |
PATCH | /api/v1/variants/{id} | Update a variant | products:write |
GET | /api/v1/categories | List categories | products:read |
GET | /api/v1/locations | List stock locations (stores, warehouses, suppliers) | stock:read |
GET | /api/v1/stock | Stock per variant and location | stock:read |
POST | /api/v1/stock | Change stock (up to 100 changes, all or nothing) | stock:write |
GET | /api/v1/orders | List orders | orders:read |
GET | /api/v1/orders/{id} | Get an order (by id or order number) | orders:read |
POST | /api/v1/orders/{id}/status | Move an order to processing, ready_for_pickup, shipped or delivered | orders:write |
POST | /api/v1/orders/{id}/paid | Mark as paid (e.g. paid at the till on pickup) | orders:write |
POST | /api/v1/orders/{id}/cancel | Cancel an unpaid order (stock is returned) | orders:write |
GET | /api/v1/webhooks | List webhook endpoints | webhooks |
POST | /api/v1/webhooks | Subscribe a URL to events (returns the signing secret once) | webhooks |
DELETE | /api/v1/webhooks/{id} | Unsubscribe | webhooks |
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 orderorder.paid— Order paidorder.shipped— Order shippedorder.delivered— Order deliveredorder.cancelled— Order cancelledorder.refunded— Refundproduct.created— New productproduct.updated— Product changedproduct.deleted— Product deletedstock.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.