Skip to content

Beta

Webhooks are in beta. Breaking changes may happen: topics, payloads and delivery rules can still change before general availability.

Webhooks ​

VenuePilot tells your systems the moment something happens. When a show is announced, changed, withdrawn or cancelled, or when a ticket order is paid for or refunded, VenuePilot sends the news straight to a system you choose: your website, your mailing list, your accounting, your team's chat. Nobody has to export a spreadsheet or check for changes by hand, and every message comes with the full details of the show or the order.

Webhooks are a separate product from the Public API. The Public API is a read-only feed of announced events that your systems ask for when they need it. Webhooks push changes to you as they happen.

Getting webhooks ​

Webhooks are in beta, and available to venues as an upgrade. To have them switched on, the venue asks its VenuePilot account manager, who can also say what the upgrade includes for that venue, such as how many subscriptions the account can have. Once they are on, a member of the venue's team sets up each subscription in the VenuePilot admin under Settings › Webhooks: where to send deliveries, and which kinds of news to send.

What you can build ​

Each kind of news is a topic, and each delivery carries the event or the order it is about. Field names below are paths inside data.event or data.order, as in the Reference.

Keep your website or app in step with your calendar ​

Show your upcoming events on your own site or app, and keep them right without copying anything across: new announcements appear, changed times and line-ups update, and withdrawn or cancelled shows come down or are marked cancelled.

  • Topics: event.published when an event is announced (confirmed events only), event.updated when its details change, a hold being confirmed included, event.unpublished when its announcement is withdrawn, and event.cancelled when it is cancelled. See Topics.
  • Fields it reads (Event bodies): id as your key, name, date, startTime, doorTime, timezone, state, venue.name, and from announceDetail: announced, description, images or attachments, announceArtists and ticketsUrlType.
  • Decide what to show from state first, then announceDetail.announced:
    • CONFIRMED: list it while announced is true; event.updated also fires for confirmed events that are not announced yet.
    • CANCELED (spelled with one L): if you already list it, mark it cancelled or take it down, as the venue prefers, whatever announced says; a cancelled event can arrive with announced set to false. Never add a cancelled event you were not already listing: it may never have been public.
    • DELETED: take it down.
  • For the ticket link, use announceDetail.ticketsUrl when it is set; otherwise use the top-level ticketsUrl, the VenuePilot checkout page, when announceDetail.ticketsUrlType is VENUEPILOT_CHECKOUT; otherwise show no link.
  • There is no topic for a deleted event: you see DELETED only if a later body for that event arrives. Unconfirmed holds are sent only to a subscription with the hold-events option on, and only while its creator can still see holds; see Hold events.

Add buyers to your CRM or mailing list ​

When someone buys tickets, add them to the venue's CRM or mailing list, and only market to the ones who said yes.

  • Topic: order.completed.
  • Fields it reads (Order bodies): from the buyer's customer record, customer.id, customer.email, customer.firstName, customer.lastName, customer.phoneNumber, customer.emailOptIn and customer.smsOptIn; and event.name. The opt-ins belong to the customer record, so market to its contact details, not the order's own email and phoneNumber.
  • Market to a channel only when its opt-in is OPTED_IN. DECLINED and NOT_ASKED mean no marketing, and so does a customer of null.
  • The opt-ins are a snapshot from the time of the order, and orders can arrive late and out of order. Keep each customer's opt-ins by customer.id. Let any delivery turn a channel off (DECLINED or NOT_ASKED), but turn it on (OPTED_IN) only from a delivery whose occurred_at is newer than the one you last applied for that customer. A later opt-out reaches you only with a later delivery for that buyer, a new order or an existing one sent again, so keep your own unsubscribe handling.
  • Buyer details are the venue's customer data: store and protect them as such.

Record sales and refunds in accounting or reporting ​

Book every sale and every refund in the venue's accounting or reporting tools as it happens, with tax, fees and donations already split out.

  • Topics: order.completed and order.refunded.
  • Fields it reads (Order bodies): total, currency, taxFee, processingFee, platformFee, donation, appliedCredit, lineItems[].price, lineItems[].fee, purchasedAt and paymentMethod; for each refund, refunds[].id, amount, creditAmount, taxFee, processingFee, donation and createdAt.
  • Book each sale once: an order.completed can come again with the same delivery id when a payment is re-checked, so skip an id you have already booked, and a sale whose purchasedAt is before you started receiving webhooks.
  • order.refunded fires for partial refunds too, and one delivery can carry several refunds. Book once per refunds[].id you have not seen, and skip refunds whose refunds[].createdAt is before you started receiving webhooks: refunds lists every refund on the order, old ones included.
  • Book refunds from refunds, not refundedAmount, which covers only the ticket part. A full refund's amount also includes any refunded platform fee, which is not broken out.

Alert your team about cancellations and refunds ​

Post a message in a chat channel when a show is cancelled or an order is refunded, so the box office and front of house hear about it straight away.

  • Topics: event.cancelled and order.refunded.
  • Fields it reads: for an event (Event bodies), name, date and venue.name; for an order (Order bodies), id, event.name, refunds[].id, refunds[].amount, refunds[].reason and refunds[].issuedBy.
  • Post each thing once: for event.cancelled, skip a delivery whose id you have already posted; for order.refunded, post once per refunds[].id you have not seen, skipping refunds made before you started receiving webhooks. See Retries and duplicates.
  • Keep buyers' names and contact details out of the channel.

Without writing code ​

Automation tools, for example Zapier, Make or n8n, have a step that catches a webhook. Use the URL that step gives you as the subscription's destination, pick the topics, and map the fields into the tool's next steps: a row in a spreadsheet, a contact in a mailing list, a chat message.

That convenience has a cost: those tools may not verify the X-Webhook-Signature header, which proves a delivery came from VenuePilot. Anyone who learns the URL could then send a fake delivery. Keep the URL private, verify the signature in a code step where the tool allows one, and don't let an unverified delivery trigger anything you can't undo. The tool also leaves duplicates and out-of-order deliveries to you.

What webhooks don't cover ​

  • No events for individual tickets, scans or guest lists; tickets change with their order.
  • No topic for customers or opt-in changes, and none for deleted events.
  • Order bodies never carry a ticket's token, its PDF or preview link, or its scans.
  • Nothing is replayed: what happened while a subscription was stopped is not sent later. See What we do not promise.

For your developer ​

  • The destination must be an absolute https:// URL on the public internet, not a private or loopback address.
  • Answer with any 2xx within 10 seconds, then do the work. See Responding.
  • Verify X-Webhook-Signature against the raw body on every request. See Verifying the signature.
  • Deliveries come in no particular order, and at least once. Compare occurred_at to keep a record current (Telling a stale body from a fresh one), and deduplicate anything you must do only once on id (Retries and duplicates).
  • Branch on the envelope's version, not on the fields you happen to see.

The Reference covers setting up a subscription, every topic and field, verifying signatures, responding, and retries.