Ubika

Ubika integration API

To connect the management system (ERP) of an online store or a warehouse client: items, inbound notices, orders, returns and stock, plus automatic notices (webhooks) when something changes.

Access

Every request carries the x-api-key header with a key generated under Integrations (warehouse) or in the client portal. A client key only sees and changes that client's data; with a warehouse key you name the client in clientCode (its external reference or its name). The full key is shown only once, when created; it can be revoked instantly.

Base URL: https://ubikawms.com/api

curl -H "x-api-key: ubk_…" "https://ubikawms.com/api/integration/outbounds?updatedSince=2026-11-23T08:00:00Z&take=200"

Endpoints

MethodPathWhat it does
GET/integration/infoConnection identity: warehouse, the key's client and buildings.
POST/integration/productsCreate or update an item by (client, sku). Only the fields you send are changed. Fields: sku, name, ean, family, subfamily, weightGr, lengthMm, widthMm, heightMm, adr, tariffCode, originCountry, sizeLabel, colorLabel, tracksLot, tracksSerial, tracksExpiry, packagings [{name, baseQty, barcode}].
GET/integration/products?sku=|ean=Item record with packagings and total stock.
POST/integration/inboundsAdvance shipping notice (ASN): reference and lines [{sku|ean, qty}].
GET/integration/inboundsInbounds: status, expected, received and over-received quantity (qtyOverReceived). Filters: number, date (YYYY-MM-DD), lines=1, updatedSince, take, skip.
DELETE/integration/inbounds/:numberDeletes the notice only if nothing has been received (otherwise 409).
POST/integration/outboundsOutbound order: reference, customer {name, address, city, zip, province, country, phone, email} (or flat ship* fields), lines [{sku|ean, qty, unitPrice}], carrier, priority, codCents (cash on delivery), insuredCents, currency.
GET/integration/outboundsOrders: status, carrier, tracking, picking start and packing time. Filters: number, date, lines=1, updatedSince, take, skip.
DELETE/integration/outbounds/:numberCancels the order: before the cut-off it is deleted if not yet prepared; if it is already at the dock, the dock is told to cancel it. After the cut-off it is refused.
POST/integration/returnsReturn notice: reference, orderRef, reason and lines [{sku|ean, qty}].
GET/integration/returnsReturns with the grade and disposition of each line. Filters: number, updatedSince, take, skip.
DELETE/integration/returns/:numberDeletes the return only if it has not arrived yet (otherwise 409).
GET/integration/stock?sku=&take=&skip=Stock per item and bin with the quantity available to sell (available), lot, serial and expiry. Pages of up to 5,000 rows.

Paging and “changed since”

Inbound, order and return queries return at most take rows (default 200, maximum 1,000) starting at skip, and report total and hasMore. With updatedSince=<ISO 8601 date> you only get rows modified AFTER that date, oldest first, and the response includes nextUpdatedSince: store it and send it in the next call to receive only what is new.

{ "ok": true, "total": 412, "take": 200, "skip": 0, "hasMore": true,
  "nextUpdatedSince": "2026-11-23T09:41:07.118Z", "outbounds": [ … ] }

Automatic notices (webhooks)

They are set up under Integrations or in the portal: event and address (https). Ubika sends a POST with JSON and the headers X-Ubika-Event (the event) and, if you set a secret, X-Ubika-Signature = hex HMAC-SHA256 of the body with that secret. A 2xx within 8 s counts as delivered; otherwise it is retried up to 5 times (2, 4, 8, 16 min…) and then shown as failed in the viewer, with manual retry. A client's webhook only receives that client's events.

EventWhat it does
order.created-via-apiOrder created via the API.
order.shippedOrder shipped (with carrier and tracking).
order.cancelledOrder cancelled (from the office, the PDA, the online store or the portal). One notice per order.
stock.changedChange in the quantity available to sell. Grouped for 20 s; each item's CURRENT figure is sent (not the difference), so a lost notice never leaves you out of balance.
return.receivedReturn received at the warehouse, with its lines and anything missing.
return.refund-requestedReturn closed: refund due.
inbound.completedInbound fully received.
inbound.overMore arrived than notified.
manifest.signedManifest signed by the driver (warehouse keys only).

stock.changed example (sample data):

POST https://erp.example.invalid/ubika
X-Ubika-Event: stock.changed
X-Ubika-Signature: 5d41…

{ "clientId": "…", "at": "2026-11-23T10:02:11.000Z", "causes": ["picking.completed"],
  "items": [ { "sku": "EXAMPLE-001", "ean": "8400000000000", "available": 37 } ] }

Verifying the signature (Node.js):

const signature = crypto.createHmac("sha256", SECRET).update(rawBody).digest("hex");
if (signature !== req.headers["x-ubika-signature"]) return res.status(401).end();

Errors

400 missing or invalid data (the message says which) · 401 no key or revoked key · 404 does not exist (or is not your client's) · 409 not possible (already prepared, already received, duplicate). The error text is in the warehouse's language.

From the blog

Tell us how you work and we'll set it up

Tell us what you move, which stores and carriers you use and how you run it today. We fit it to your warehouse; anything missing, we build.

No lock-in, no card required. You can also email us at hello@ubikawms.com.