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
| Method | Path | What it does |
|---|---|---|
| GET | /integration/info | Connection identity: warehouse, the key's client and buildings. |
| POST | /integration/products | Create 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/inbounds | Advance shipping notice (ASN): reference and lines [{sku|ean, qty}]. |
| GET | /integration/inbounds | Inbounds: status, expected, received and over-received quantity (qtyOverReceived). Filters: number, date (YYYY-MM-DD), lines=1, updatedSince, take, skip. |
| DELETE | /integration/inbounds/:number | Deletes the notice only if nothing has been received (otherwise 409). |
| POST | /integration/outbounds | Outbound 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/outbounds | Orders: status, carrier, tracking, picking start and packing time. Filters: number, date, lines=1, updatedSince, take, skip. |
| DELETE | /integration/outbounds/:number | Cancels 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/returns | Return notice: reference, orderRef, reason and lines [{sku|ean, qty}]. |
| GET | /integration/returns | Returns with the grade and disposition of each line. Filters: number, updatedSince, take, skip. |
| DELETE | /integration/returns/:number | Deletes 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.
| Event | What it does |
|---|---|
| order.created-via-api | Order created via the API. |
| order.shipped | Order shipped (with carrier and tracking). |
| order.cancelled | Order cancelled (from the office, the PDA, the online store or the portal). One notice per order. |
| stock.changed | Change 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.received | Return received at the warehouse, with its lines and anything missing. |
| return.refund-requested | Return closed: refund due. |
| inbound.completed | Inbound fully received. |
| inbound.over | More arrived than notified. |
| manifest.signed | Manifest 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
- Warehouse management software for small businesses and 3PLs in Spain: what each one does and when it fits
- How to count stock with a PDA: counting by bin, blind counts and approved differences
- Goods receiving in the warehouse, step by step
- Packing without errors: verify, pack, weigh and label
- Picking replenishment: minimums and maximums, reserve and pick bin
- Warehouse ABC analysis: what it is, how to calculate it step by step and where to place each class
- Batch traceability in the warehouse: what to record and how to locate a batch in a recall
- Fixed, chaotic or mixed location storage in the warehouse: what each one is and when to use it
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.