Webhook reference

Outbound webhooks

Send signed Nimlio events to your backend when orders or bookings change.

How it works

Register up to 5 HTTPS endpoints per business in Settings -> Webhooks. Each endpoint subscribes only to the event types it should receive.

Event catalog

order.created

A storefront order was created.

order.paid

A payment provider confirmed the order payment.

order.cancelled

The order was cancelled before completion.

order.expired

The pending order or checkout expired.

order.refunded

The order payment was refunded.

appointment.requested

A customer requested a booking.

appointment.confirmed

The booking was confirmed.

appointment.cancelled

The booking was cancelled.

Delivery envelope

Sample order.paid delivery (abridged)

{
"id": "6f1c1d52-3b8e-4c43-9a57-0e2f7d9b1a10",
"type": "order.paid",
"createdAt": "2026-07-08T14:30:00Z",
"businessId": "9f9a...",
"data": {
"order-id": "b2d4...",
"status": "paid",
"amount-total": 12500000,
"currency": "COP",
"created-at": "2026-07-08T14:28:41Z",
"paid-at": "2026-07-08T14:30:00Z",
"items": [{ "name": "...", "quantity": 1, "unit-amount": 12500000 }]
}
}

Every delivery sends {id, type, createdAt, businessId, data}. The id is a UUID that is also sent in the X-Nimlio-Delivery header. The data field is built by the producer and keeps its kebab-case keys (for example order-id, amount-total, starts-at), unlike the camelCase Platform API. Order events carry the same PII-free status projection as GET /api/v1/orders/{orderId}/status; there is no endpoint that returns full customer detail.

Signature headers

X-Nimlio-EventX-Nimlio-DeliveryX-Nimlio-Signature: t=<unix>,v1=<hex>

Verify signatures

X-Nimlio-Signature uses t=<unix>,v1=<hex>. v1 is HMAC-SHA256(secret, `${t}.${rawBody}`). Reject deliveries when |now - t| is greater than 5 minutes, then compare the digest with crypto.timingSafeEqual. The signing secret is shown once, when you create the endpoint.

Node.js verification

import crypto from "node:crypto";

export function verifyNimlioWebhook({ rawBody, signature, secret, now = Date.now() }) {
const parts = Object.fromEntries(
signature.split(",").map((part) => {
const [key, value] = part.split("=");
return [key, value];
}),
);

const timestamp = Number(parts.t);
if (!Number.isFinite(timestamp)) return false;
if (Math.abs(now / 1000 - timestamp) > 5 * 60) return false;

const signedPayload = `${timestamp}.${rawBody}`;
const expected = crypto.createHmac("sha256", secret).update(signedPayload).digest("hex");

const received = Buffer.from(parts.v1 ?? "", "hex");
const trusted = Buffer.from(expected, "hex");
return received.length === trusted.length && crypto.timingSafeEqual(received, trusted);
}

Retries and timeouts

Nimlio attempts delivery up to 7 times: 1m, 5m, 30m, 2h, 6h, and 24h between retries. After the final failed attempt the delivery is marked dead, and you can redeliver it from the dashboard.

Respond with any 2xx status. Each attempt has a 10-second socket deadline (DNS resolution has its own 3-second allowance), so acknowledge first and process expensive work asynchronously.