Developers / Webhook events
Start building

Webhook events

Every event a site sends to its webhook endpoints, the payload of each, the headers, how to check the signature, retries and replays.

NewUpdated Developers

A site sends a signed POST to each of its webhook endpoints when something happens. Endpoints are set up in Settings › Developers › Webhooks (the Webhooks Gear in the Gear Shop opens the same page): a web address, the events it wants (or all of them), and on or off. A site can have up to 10 endpoints.

The request

Example
JSON
{
  "id": "evt_3f9a0c1d2b4e4f5a8b7c6d5e4f3a2b1c",
  "type": "order.paid",
  "site": "harbor-coffee",
  "createdAt": "2026-11-21T09:15:40.512Z",
  "data": { "id": "1042", "number": 1042, "paymentStatus": "paid", "total": 29, "currency": "USD", "customer": { "name": "Mia Wong", "email": "[email protected]", "phone": "" } }
}
  • id is the event's id. It stays the same on every retry and replay, so use it to skip events you've already handled.
  • type is the event name below (event carries the same value, for older receivers).
  • data is the record in the same shape the REST API returns, plus a few extras for some events.
HeaderValue
X-Vorjo-EventThe event name, like order.paid (test for a test event)
X-Vorjo-Event-IdThe event's id, the same as id in the body
X-Vorjo-DeliveryThis delivery's id: the same on its retries, new for a replay
X-Vorjo-TimestampUnix seconds when this try was signed
X-Vorjo-Signaturev1= and the hex HMAC-SHA256 of "<timestamp>.<raw body>" with the endpoint's signing secret
X-Vorjo-SiteThe site's ID

Answer with any 2xx within 10 seconds. Addresses must be https:// on a public host.

Checking the signature

Each endpoint has its own signing secret (whsec_…), revealed and rotated on its row in Settings › Developers. Check the signature on the raw body, before parsing it, and refuse timestamps more than 5 minutes old.

Verify a webhook
JavaScript
import crypto from "node:crypto";
export const verify = (rawBody, headers, secret) => {
  const ts = headers["x-vorjo-timestamp"], got = String(headers["x-vorjo-signature"] || "");
  const want = "v1=" + crypto.createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
  return got.length === want.length && crypto.timingSafeEqual(Buffer.from(got), Buffer.from(want)) && Math.abs(Date.now() / 1000 - Number(ts)) < 300;
};

After Rotate, the old secret stops working at once, retries included.

Retries, the log and replays

A delivery that doesn't get a 2xx is tried again after about 30 seconds, 5 minutes, 30 minutes, 2 hours and 6 hours (six tries in all). Addresses on a private network are blocked and not retried.

The Logs tab in Settings › Developers lists the last 30 days: the event, the endpoint, the status (delivered, retrying, failed or blocked), your address's response code and the first 500 characters of its answer, the number of tries, and the request body. Replay sends a delivery again now, with the same body and event id and a new delivery id. Send test event sends a test event (data: { message }) to one endpoint, once.

Events

EventWhendata
order.createdA new order was placed (paid or not yet)Order (with source: first and last visit, see the REST API)
order.paidAn order's payment was confirmed, or it was marked paidOrder
order.fulfilledItems were sent or are ready for pickupOrder, plus fulfillment: { id, lines, carrier, trackingNumber, trackingUrl, status, createdAt }
order.refundedMoney was refunded (part or all)Order, plus refund: { amount, reason }
order.cancelledAn order was cancelledOrder
customer.signed_upA shopper created a customer account{ id, email, name, phone, marketing, createdAt }
contact.createdA new contact card was made: from an order, booking, form, chat or email, or by handContact
booking.confirmedA booking was confirmed (paid, or nothing to pay)Booking
booking.createdThe same moment as booking.confirmed, under the name Gears use (pick one of the two)Booking
booking.movedA booking was moved to a new timeBooking, plus previous: { startsAt, endsAt, staff }
booking.cancelledA booking was cancelled, by the customer or the businessBooking
invoice.sentAn invoice was sentInvoice
invoice.paidAn invoice was paid in fullInvoice
quote.acceptedA quote was acceptedInvoice (the quote), plus invoiceId: the invoice made from it
review.postedA customer wrote a product review{ id, productId, productHandle, productTitle, rating, title, body, name, email, verified, status, createdAt }
chat.leadA visitor left their email in the website chat{ id, name, email, question, page, createdAt }
lead.tappedA visitor tapped the site's Call, WhatsApp or Email link (at most 60 an hour per site){ id, kind /* call | whatsapp | email */, page, createdAt }: never who it was
form.submittedA form was sent (not spam)Form entry
subscriber.addedSomeone joined the newsletter (after confirming, with double opt-in)Subscriber
subscriber.removedSomeone unsubscribedSubscriber
inventory.lowA product's stock dropped to your low-stock level (after an order, a Gear's stock change or a count){ variantId, productId, product, variant, sku, inventory, threshold }

Topics for Gears

Hosted Gears and private Gears subscribe in their manifest, not in Settings › Developers. Their requests carry X-Vorjo-Event, X-Vorjo-Delivery, X-Vorjo-Timestamp and X-Vorjo-Signature (v1= + HMAC-SHA256 of "<timestamp>.<raw body>" with the Gear's signing secret) and the body { id, event, createdAt, gear, shop, data }. Besides the order and product events, Gears get:

TopicNeedsWhendata
order.paidread_ordersAn order's payment was confirmed, or it was marked paidOrder
order.cancelledread_ordersAn order was cancelledOrder
booking.createdread_bookingsA booking was confirmed (on the site, by the owner, or through the API)Booking
booking.cancelledread_bookingsA booking was cancelledBooking
inventory.lowread_inventoryA variant's stock dropped to the site's alert level (after an order or an adjust){ variantId, productId, product, variant, sku, inventory, threshold }
app.uninstalledThe Gear was removed from the site{ installId }

They're retried after about 1, 5 and 30 minutes, 2 and 6 hours, logged (last 100, 30 days) and can be sent again from the Gear's Webhooks tab in the Developer dashboard.

Previews (test orders, bookings and messages) send nothing. contact.created isn't sent for CSV imports or for contacts copied in the first time Contacts was opened.

Shapes

TypeScript
Order = {
  id, number, name /* "#1042" */, status /* open | archived | cancelled */, paymentStatus /* pending | paid | partially_refunded | refunded */,
  fulfillmentStatus /* unfulfilled | partial | fulfilled | delivered */, currency, subtotal, discountTotal, shippingTotal, taxTotal, total, refunded,
  discountCode, payment: { method, label }, customer: { name, email, phone }, shippingAddress, billingAddress,
  shippingMethod: { kind, name, price } | null, note, tags: string[],
  lines: { id, productId, variantId, title, variantTitle, sku, qty, price, total, fulfilled }[],
  fulfillments: { id, lines, carrier, trackingNumber, trackingUrl, status, createdAt, deliveredAt }[],
  createdAt, updatedAt,
}
Booking = {
  id, serviceId, service /* its name */, staffId, staff, startsAt, endsAt, status /* confirmed | held | cancelled | done | no-show */,
  customer: { name, email, phone, note }, currency, price, paid, refunded, payStatus, createdAt, updatedAt,
}
Contact = { id, name, email, phone, company, address, tags: string[], notes, source, firstSeenAt, lastSeenAt, createdAt, updatedAt }
Invoice = {
  id, kind /* invoice | quote */, number /* "INV-0001" */, status /* draft | open | paid | void | sent | accepted | declined */, customer, contactId,
  currency, lines: { title, description, qty, price, taxName, taxRate, amount }[], subtotal, discountTotal, taxTotal, total, paid, balance,
  issueDate, dueDate, validUntil, sentAt, paidAt, acceptedAt, createdAt, updatedAt,
}
FormEntry = { id, form /* "contact" */, data: { [field]: string }, page, status /* new | read | done */, createdAt, updatedAt }
Subscriber = { id, email, name, status /* subscribed | pending | unsubscribed */, consentAt, confirmedAt, unsubscribedAt, country, page, via, tags: ["Newsletter"], createdAt, updatedAt }
Product = { id, handle, title, description, status /* active | draft | archived */, type, vendor, tags, images, options, collectionIds,
  variants: { id, title, options, sku, barcode, price, compareAtPrice, trackInventory, inventory, allowBackorder }[], createdAt, updatedAt }

New fields may be added to these shapes; existing ones keep their names and meaning.

See n8n, Zapier and Make to use these events without writing code.

Esc
Developer docs
Developer overviewHow a Vorjo site is put together, and the ways to build on it - the public API, the REST API and webhooks, the site toolkit and Gears.Shop and content APIEvery address a site uses for its products, checkout, orders, blog, content, forms, bookings, reviews and accounts, plus the admin routes.AI agents (MCP)Connect Claude, ChatGPT, Cursor or any MCP client to your Vorjo sites. It manages orders, products, bookings and messages, asks the Studio for changes and publishes, with the access you allow.Site REST APIRead a site's orders, products, bookings, contacts, invoices, form entries and subscribers, and make changes, with an API key from Settings › Developers.The site toolkit (React)The hooks and components every Vorjo site uses for its shop, blog, content, forms, bookings, reviews and SEO.GearsHow Gears (add-ons) are built - one module with a manifest that plugs into payments, the page head, routes, events and widget slots.
↑ ↓ to moveEnter to openEsc to close