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

  1. In RestoFleet open Setup → Integrations and choose Webhook.
  2. Enter your https URL and pick the events. Copy the signing secret.
  3. Press Send test to receive a sample delivery.

What you receive

A JSON POST with these headers:

RestoFleet-EventThe event, e.g. reservation.confirmed.
RestoFleet-DeliveryUnique id; the same id is used if a delivery is retried, so use it to ignore duplicates.
RestoFleet-TimestampUnix seconds when it was signed.
RestoFleet-Signaturev1= 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

EventWhenData
reservation.confirmedA reservation is made or confirmed.guest.name, reservation.date, reservation.time, reservation.partySize, branch.name, branch.phone
order.paidA bill is paid in full (only for guests on the order).guest.name, bill.invoiceNumber, bill.total, branch.name, receipt.text
spin.wonA guest wins a prize on the wheel.guest.name, prize.label, coupon.code, coupon.expiresOn, brand.name
purchase_order.sentA purchase order is marked as sent (to the supplier).supplier.name, po.number, po.total, po.expectedOn, po.lines, branch.name, branch.address
account.codeA 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.confirmedThe restaurant accepts an order placed on its page.guest.name, order.number, order.total, order.readyAt, order.trackUrl, branch.name
online_order.readyA pickup order is packed and waiting at the counter.guest.name, order.number, order.trackUrl, branch.name, branch.address
online_order.on_the_wayA delivery order leaves the restaurant.guest.name, order.number, order.trackUrl, rider.name, rider.phone, branch.name
online_order.declinedThe restaurant cannot take an order placed on its page.guest.name, order.number, order.reason, branch.name, branch.phone
online_order.completedA 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.announcementYou tell guests about a loyalty campaign (only guests who agreed to offers).guest.name, campaign.name, campaign.details, brand.name
feedback.lowA guest gives a branch a low score on a feedback form.branch.name, feedback.form, feedback.score, feedback.guest, feedback.url
cash.closedA cash drawer is closed at day end.branch.name, cash.expected, cash.counted, cash.difference, cash.closedBy
stock.lowAn ingredient falls below its reorder level.branch.name, item.name, item.quantity, item.reorderLevel