Webhooks
RestoFleet can call your server whenever something happens: a table is booked, a bill is paid, stock runs low. Use it to update your CRM, post to your team chat or trigger your own automations.
Set it up
- In RestoFleet open Setup → Integrations and choose Webhook.
- Enter your https URL and pick the events. Copy the signing secret.
- Press Send test to receive a sample delivery.
What you receive
A JSON POST with these headers:
RestoFleet-Event | The event, e.g. reservation.confirmed. |
RestoFleet-Delivery | Unique id; the same id is used if a delivery is retried, so use it to ignore duplicates. |
RestoFleet-Timestamp | Unix seconds when it was signed. |
RestoFleet-Signature | v1= followed by the hex HMAC-SHA256 of timestamp.body with your signing secret. |
Body (reservation.confirmed)
{
"id": "0b6f4f6e-3a5c-4a9e-9a43-0d1f0c6f2e11",
"event": "reservation.confirmed",
"createdAt": "2026-12-20T13:45:12.000Z",
"data": {
"guest": {
"name": "…"
},
"reservation": {
"date": "…",
"time": "…",
"partySize": "…"
},
"branch": {
"name": "…",
"phone": "…"
}
}
}Verify the signature
import { createHmac, timingSafeEqual } from 'node:crypto';
// Use the raw request body, exactly as received.
export function verify(rawBody, headers, secret) {
const timestamp = headers['restofleet-timestamp'];
const signature = headers['restofleet-signature'] ?? '';
// Refuse old deliveries (replays): 5 minutes of clock tolerance.
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const expected = 'v1=' + createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest('hex');
return expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}Retries
Answer with any 2xx status within 10 seconds. Other answers and timeouts are retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours; the restaurant sees every attempt in the delivery log and can retry by hand. A 4xx answer (other than 408 and 429) means "do not retry".
Events
| Event | When | Data |
|---|---|---|
reservation.confirmed | A reservation is made or confirmed. | guest.name, reservation.date, reservation.time, reservation.partySize, branch.name, branch.phone |
order.paid | A bill is paid in full (only for guests on the order). | guest.name, bill.invoiceNumber, bill.total, branch.name, receipt.text |
spin.won | A guest wins a prize on the wheel. | guest.name, prize.label, coupon.code, coupon.expiresOn, brand.name |
purchase_order.sent | A purchase order is marked as sent (to the supplier). | supplier.name, po.number, po.total, po.expectedOn, po.lines, branch.name, branch.address |
account.code | A guest signs in on your restaurant page or confirms their phone. Always sent; only the wording is yours. | code.value, code.minutes, brand.name |
online_order.confirmed | The restaurant accepts an order placed on its page. | guest.name, order.number, order.total, order.readyAt, order.trackUrl, branch.name |
online_order.ready | A pickup order is packed and waiting at the counter. | guest.name, order.number, order.trackUrl, branch.name, branch.address |
online_order.on_the_way | A delivery order leaves the restaurant. | guest.name, order.number, order.trackUrl, rider.name, rider.phone, branch.name |
online_order.declined | The restaurant cannot take an order placed on its page. | guest.name, order.number, order.reason, branch.name, branch.phone |
online_order.completed | A delivery is handed over or a pickup collected; asks for feedback when a form is set up. | guest.name, order.number, order.feedbackUrl, branch.name |
campaign.announcement | You tell guests about a loyalty campaign (only guests who agreed to offers). | guest.name, campaign.name, campaign.details, brand.name |
feedback.low | A guest gives a branch a low score on a feedback form. | branch.name, feedback.form, feedback.score, feedback.guest, feedback.url |
cash.closed | A cash drawer is closed at day end. | branch.name, cash.expected, cash.counted, cash.difference, cash.closedBy |
stock.low | An ingredient falls below its reorder level. | branch.name, item.name, item.quantity, item.reorderLevel |