VenuePilot outbound webhooks — integration reference
For the developer writing the endpoint that receives VenuePilot webhooks. Webhooks are in beta: the body and the rules described here can still change, including in ways that break a receiver. Everything here describes them as they stand today.
A webhook tells you that something happened to a record in a venue's VenuePilot account, and carries that record in full: an event delivery carries the event, an order delivery the order (see Payloads). A body is a snapshot of the record, read just after the fact happened, and an older snapshot can arrive after a newer one (No ordering, below).
Availability
Webhooks are available to venues as an upgrade. To have them switched on for a venue's account, 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.
What we do not promise
Build against these three from the start. Each is deliberate, and each is far cheaper to design for now than to discover in production.
- No ordering. Deliveries can arrive in any order. A retry can land after a later fact, and topics are not sequenced against each other: you may receive
order.refundedbefore theorder.completedit follows, orevent.updatedafter theevent.cancelledit preceded. Never infer state from the order of arrival; compareoccurred_atinstead (see Telling a stale body from a fresh one). - Queued updates collapse to the latest state. While a delivery for a topic and record is still waiting to go out to your subscription, a newer fact for the same topic and record replaces it, with a fresh set of attempts. Five quick edits to an event can reach you as one
event.updated. You get the latest state, not every transition. The exception is a send of the older fact that was already under way and then fails (any failure, a4xxincluded): the newer fact takes over the older one's attempt count, that failed send included, and waits out the retry delay; if that was the fifth attempt, the newer fact is given up without being sent. - No replay. When a subscription stops delivering, every delivery still waiting for it is dropped, and nothing is replayed when it starts again. That applies whether it was switched off, auto-paused, suspended because its creator lost access, or stopped because the account's webhooks were turned off. Anything that happened while it was stopped is not sent later. When a subscription stops for a reason the venue did not choose, the venue's team members who manage webhooks are emailed when it stopped (switching one off by hand sends no email). A receiver that missed deliveries asks the venue's VenuePilot account manager for help.
Setting up a subscription
A subscription belongs to one venue account, and is set up by a member of the venue's team in the VenuePilot admin, under Settings › Webhooks. If you are building the receiving endpoint for a venue, they create it with you, or give you a team login with the access described below. It has:
- a destination URL — where we
POSTdeliveries; - a list of topics — which facts you want to hear about;
- a signing secret — which we generate, and use to sign every delivery.
Who can manage webhooks
It depends on the Webhooks permission of the member's role: Read to see the account's subscriptions and their delivery history, Edit to create, change, rotate, switch, delete or take one over. Anyone whose role can edit roles — normally the account's owner or an Admin — sets it in the role editor. The permission and the Settings › Webhooks page appear only while the venue's account has webhooks switched on (see Availability).
Creating one
On Settings › Webhooks, enter the destination URL and pick the topics, and the hold-events option if you need it (below). The signing secret is shown once, when the subscription is created, and never again. Copy it into your server-side configuration there and then. If it is lost, rotate it (see Managing a subscription).
The admin refuses a subscription when:
- the destination is not an absolute
https://URL, or points at a private or loopback address (localhost,10.x,192.168.x,127.xand similar); - the account already has as many subscriptions as its upgrade allows, switched-off, paused and suspended ones included;
- an active subscription on the account already delivers the same topics, in any order, to the same destination. Use or change that one instead of making a second that delivers everything twice. A paused, suspended or switched-off subscription does not count, the same URL with a different set of topics is allowed, and the hold-events option is not part of the match;
- a topic needs a permission the member creating it does not have. A subscription can never deliver data its creator cannot see.
Hold events
Venues hold dates they have not confirmed, and those are confidential. Hold events are never delivered unless the subscription's hold-events option is switched on, and even then only while its creator can still see hold dates. The same gate covers orders on a hold event. Only switch it on if the venue has explicitly asked you to receive their unconfirmed dates. With it on, you receive those events in full: keep them confidential, and protect them as you would the venue's customer data (see Order bodies).
Topics
These are every topic there is. A subscription picks any of them; nothing else is accepted.
| Topic | What it means | When it fires | data carries | Needs permission |
|---|---|---|---|---|
event.updated | An event's details changed | An event is saved, its presales, ticketing or announcement details change, or it is confirmed | event — the event | Event details → confirmed dates |
event.published | An event was announced to the public | Its announcement is triggered (confirmed events only) | event — the event | Event details → announce |
event.unpublished | An event's announcement was withdrawn | It is unannounced | event — the event | Event details → announce |
event.cancelled | An event was cancelled | Its cancellation completes | event — the event | Event details → cancelled dates |
order.completed | An order was paid for and finalised | The order is finalised after payment | order — the order | Orders |
order.refunded | Money was refunded on an order | A refund on the order succeeds — full or partial | order — the order, with every refund | Orders |
event.confirmed is not a topic. Confirming a hold arrives as event.updated. There are no ticket-level topics yet; tickets change with their order.
Payloads
Every delivery is an HTTP POST whose JSON body is the same envelope for every topic:
| Field | Type | |
|---|---|---|
id | string (UUID) | identifies the fact this delivery reports. A retry repeats it; a different fact never shares it. Also sent as Idempotency-Key; see Idempotency key |
topic | string | which of the topics above this fact is; also in the X-Webhook-Topic header |
occurred_at | string | when the fact happened, as VenuePilot recorded it, in ISO 8601 UTC with microseconds (2025-09-29T09:59:58.412000Z); where each topic takes it from is in the table below. Use it to tell a stale body from a fresh one |
version | string | the shape of this body: 2026-11-25.beta for every delivery today. It changes when the shape does, so branch on version rather than on the fields you happen to see |
data | object | the record, under one key: event for event topics (see Event bodies), order for order topics (see Order bodies) |
record_id is no longer sent.
Telling a stale body from a fresh one
A body shows the record as it was when the fact happened, or later: we read the event or order just after the fact is recorded, so a body never shows an earlier state, though it can already include a change made since. An order.refunded body, for instance, can already list the next refund. A retry resends the same body unchanged. Because deliveries arrive in no particular order, keep, for each event and each order you hold, the occurred_at of the body you last applied, and:
- ignore a body whose
occurred_atis older than that. You already hold a later state of the record; - apply a body whose
occurred_atis the same or newer. The same does happen: when we re-check a payment and re-finalise an order,order.completedcomes again with the sameidandoccurred_at, and a body read when it was re-finalised.
occurred_at values all have the same format, so they compare correctly as text. This check is for keeping your copy of a record current; for actions you must take only once, deduplicate on id (see Retries and duplicates).
Where each topic's occurred_at comes from:
| Topic | occurred_at |
|---|---|
event.updated | when the change was queued — some of the changes it reports (presales, ticketing) are not stamped on the event |
event.published | when the event was announced |
event.unpublished | when the withdrawal was queued |
event.cancelled | when the event was cancelled, which is when its state became CANCELED |
order.completed | when the order was paid; when it was queued for an order with no payment |
order.refunded | when the refund was made |
Field types
The tables below name each field by its path inside data.event or data.order; [] marks the items of a list. Types are JSON types:
- integer, number (money, in the order's currency, as a decimal number such as
54.7), boolean, string, object, list; - date — a string,
YYYY-MM-DD; - time — a string, ISO 8601 UTC to the second, such as
2025-10-18T01:00:00Z; - enum — a string from the values listed;
- or null — the field is always present, and
nullwhen there is no value.
Event bodies
data.event is the same for every subscription, and it never includes sales figures or anything else behind a permission beyond the topic's own.
| Field | Type | Meaning |
|---|---|---|
id | integer | the event's id; stable for the life of the event |
slug | string | the event's URL slug |
name | string | the event's name |
state | enum | CONFIRMED, CANCELED (note the spelling), HOLD (only with the hold-events option) or DELETED |
date | date | the event's calendar date, in the venue's time zone |
startTime | time or null | when the show starts |
doorTime | time or null | when doors open |
endTime | time or null | when the show ends |
timezone | string or null | the venue's time zone, as an IANA name such as America/Chicago |
ticketsUrl | string or null | the event's VenuePilot checkout page |
venue | object or null | the venue the event is at |
venue.id | integer | the venue's id |
venue.name | string | the venue's name |
venue.address | object or null | the venue's public address |
venue.address.street1 | string or null | first street line |
venue.address.street2 | string or null | second street line |
venue.address.city | string or null | city |
venue.address.state | string or null | state or region |
venue.address.postalCode | string or null | postal code |
venue.address.country | string or null | country code, such as US |
venueRoom | object or null | the room in the venue, when the event has one |
venueRoom.id | integer | the room's id |
venueRoom.name | string | the room's name |
announceDetail | object | the public announcement: what the venue shows the public about the event |
announceDetail.announced | boolean | whether the event is announced now |
announceDetail.announceAt | time or null | when the announcement is, or was, scheduled to go out |
announceDetail.onSaleAt | time or null | when tickets go on sale |
announceDetail.description | string or null | the public description |
announceDetail.tags | list of strings | the event's tags |
announceDetail.images | list of strings | image URLs |
announceDetail.attachments | list of objects | the uploaded images that are ready to show |
announceDetail.attachments[].attachmentId | integer | the uploaded file's id |
announceDetail.attachments[].highlighted | boolean or null | whether the venue chose it as the featured image |
announceDetail.attachments[].attachment | object | the uploaded file |
announceDetail.attachments[].attachment.id | integer | the file's id, the same as attachmentId |
announceDetail.attachments[].attachment.name | string | the file name |
announceDetail.attachments[].attachment.mime | string | the file's media type, such as image/jpeg |
announceDetail.attachments[].attachment.url | string or null | where to download the file |
announceDetail.category | object or null | the event's category |
announceDetail.category.id | string | the category's id, a UUID |
announceDetail.category.name | string | the category's name |
announceDetail.announceArtists | list of objects | the artists the announcement names, in the venue's order |
announceDetail.announceArtists[].id | integer | the artist's id |
announceDetail.announceArtists[].name | string | the artist's name |
announceDetail.announceArtists[].website | string or null | the artist's website |
announceDetail.announceArtists[].facebook | string or null | Facebook link |
announceDetail.announceArtists[].instagram | string or null | Instagram link |
announceDetail.announceArtists[].twitter | string or null | X (Twitter) link |
announceDetail.announceArtists[].spotify | string or null | Spotify link |
announceDetail.announceArtists[].applemusic | string or null | Apple Music link |
announceDetail.announceArtists[].bandcamp | string or null | Bandcamp link |
announceDetail.announceArtists[].youtube | string or null | YouTube link |
announceDetail.announceArtists[].songkick | string or null | Songkick link |
announceDetail.announceArtists[].lastfm | string or null | Last.fm link |
announceDetail.announceArtists[].wikipedia | string or null | Wikipedia link |
announceDetail.ticketsUrl | string or null | the ticket link to show: the venue's own link for CUSTOM, the checkout page for an event whose announcement details were never saved (see below) |
announceDetail.ticketsUrlType | enum | which ticket link the venue chose to show: CUSTOM, VENUEPILOT_CHECKOUT, HANDSTAMP or NO_URL |
announced is false until the announcement is triggered, and false again after it is withdrawn. The other announceDetail fields can still be set while it is false: a scheduled announcement already carries its announceAt, description and artists.
Once the venue has saved the announcement details, only a CUSTOM link comes in announceDetail.ticketsUrl; for the other three types it is null. For VENUEPILOT_CHECKOUT, link to the event's checkout page, the top-level ticketsUrl. The body carries no Handstamp link. The exception is an event whose announcement details were never saved: its ticketsUrlType is VENUEPILOT_CHECKOUT when the event sells tickets, with announceDetail.ticketsUrl set to the checkout page, and NO_URL otherwise.
Order bodies
data.order is the order as it was paid for and refunded, with its buyer and its event.
| Field | Type | Meaning |
|---|---|---|
id | integer | the order's id; stable for the life of the order |
state | string | the order's state; completed once it is paid and finalised |
origin | enum | where it was sold: online or register (the box office) |
currency | string | the currency of every amount in the body, as a lowercase ISO 4217 code such as usd |
createdAt | time | when the order was started |
updatedAt | time | when the order itself last changed; a refund does not change it |
purchasedAt | time or null | when it was paid; null for an order with no payment |
firstName | string or null | the buyer's first name, as entered on the order |
lastName | string or null | the buyer's last name, as entered on the order |
email | string or null | the buyer's email address, as entered on the order |
phoneNumber | string or null | the buyer's phone number, as entered on the order |
customer | object or null | the buyer's customer record, which the venue keeps across orders |
customer.id | integer | the customer's id |
customer.firstName | string or null | the customer's first name |
customer.lastName | string or null | the customer's last name |
customer.email | string or null | the customer's email address |
customer.phoneNumber | string or null | the customer's phone number |
customer.createdAt | time | when the customer record was created |
customer.emailOptIn | enum | whether the customer agreed to marketing email from this venue: OPTED_IN, DECLINED or NOT_ASKED |
customer.smsOptIn | enum | the same for marketing text messages |
lineItems | list of objects | one per ticket or add-on |
lineItems[].id | integer | the ticket's id |
lineItems[].ticketId | integer | the ticket's id, the same as id |
lineItems[].name | string | the ticket type's name |
lineItems[].tier | string | the ticket type's name, the same as name |
lineItems[].kind | enum | ticket or addon |
lineItems[].seat | string or null | the seat, for a seated ticket |
lineItems[].table | string or null | the table, for a table ticket |
lineItems[].price | number | the price, after any discount |
lineItems[].fee | number | the ticket fee |
lineItems[].paid | number | price plus fee |
discountAmount | number | the discount given, for information (see below) |
discountCode | string or null | the discount code used |
discountId | integer or null | the discount's id |
appliedCredit | number or null | store credit put toward the order; null when none was |
donation | number | the donation added to the order |
taxFee | number | tax |
processingFee | number | the processing fee |
platformFee | number | the platform fee |
total | number | the amount charged |
refundedAmount | number | the ticket part refunded across all refunds (see below) |
refundStatus | enum | none, partial or full |
refunds | list of objects | every refund on the order, oldest first |
refunds[].id | integer | the refund's id |
refunds[].createdAt | time | when the refund was made |
refunds[].kind | enum | partial or full |
refunds[].amount | number | the money returned to the original payment method |
refunds[].creditAmount | number | the store credit given |
refunds[].taxFee | number | the part of the refund that was tax |
refunds[].processingFee | number | the part that was processing fee |
refunds[].donation | number | the part that was donation |
refunds[].reason | string or null | the reason the venue gave |
refunds[].issuedBy | string or null | the name of the team member who made the refund |
refunds[].lines | list of objects | what was refunded, one line per ticket type and amount |
refunds[].lines[].amount | number | the amount refunded on this line |
refunds[].lines[].eventName | string or null | the event's name |
refunds[].lines[].quantity | integer | how many tickets the line covers |
refunds[].lines[].seatLabels | list of strings or null | the seats, for a seated event |
refunds[].lines[].ticketTypeName | string or null | the ticket type's name |
paymentMethod | string or null | how the order was paid, such as credit or cash |
cardBrand | string or null | the card brand, such as visa; null for a payment not made by card |
lastFourDigits | string or null | the card's last four digits |
transactionId | string or null | the payment processor's id for the charge |
event | object or null | the event the order is for |
event.id | integer | the event's id, as in event bodies |
event.name | string | the event's name |
event.startTime | time or null | when the show starts |
event.venue | object or null | the venue |
event.venue.id | integer | the venue's id |
event.venue.name | string | the venue's name |
Order bodies carry the buyer's personal data. The buyer's name, email address and phone number, and the customer's email and SMS opt-in status for the venue, are the venue's customer data. Store and protect them as the venue's: keep them out of logs, limit who and what can read them, keep them only as long as the venue's purpose needs, and use them only for what the venue has asked you to do. Respect the opt-ins: DECLINED and NOT_ASKED mean no marketing to that channel.
The line prices already include any discount, so discountAmount is for information: the sum of every line's price and fee, plus platformFee, processingFee, taxFee and donation, minus appliedCredit (taken as 0 when null), is total. A few discounted orders from 2014 are a cent out, because their line prices were rounded one by one; book total as the amount charged.
For refunds, book each entry in refunds: amount is the money returned to the original payment method, creditAmount the store credit, and taxFee, processingFee and donation the parts of it that were tax, processing fee and donation; a full refund's amount also includes any refunded platform fee, which is not broken out. refundedAmount is narrower than their sum: it is the ticket part refunded across all refunds, before any store credit, and leaves out refunded tax, processing fee, donation and platform fee.
Nothing in an order body gets anyone in: it never carries a ticket's token, its PDF or preview link, or its scans. Nor does it carry the order's fingerprint, the staff member who sold it or the ticket layout.
Example deliveries
One complete delivery for each topic, headers and body. The bodies are shown pretty-printed, in a readable field order. On the wire a body is compact JSON with no trailing newline, and each signature here is over those compact bytes: the worked example under Verifying the signature shows one byte for byte.
event.updated
http
POST /venuepilot HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
Idempotency-Key: eea30a5b-c31c-5003-b0b6-151d976244d0
X-Webhook-Topic: event.updated
X-Webhook-Timestamp: 1759154610
X-Webhook-Signature: sha256=893a2870bc316e07c522d82e408a803af8a20fc6bc4f3b86950eabaf3132b37a
{
"id": "eea30a5b-c31c-5003-b0b6-151d976244d0",
"topic": "event.updated",
"occurred_at": "2025-09-29T14:03:27.481920Z",
"version": "2026-11-25.beta",
"data": {
"event": {
"id": 9120,
"slug": "the-night-owls-9120",
"name": "The Night Owls",
"state": "CONFIRMED",
"date": "2025-10-17",
"startTime": "2025-10-18T01:00:00Z",
"doorTime": "2025-10-18T00:00:00Z",
"endTime": "2025-10-18T04:00:00Z",
"timezone": "America/Chicago",
"ticketsUrl": "https://tickets.venuepilot.co/e/the-night-owls-9120",
"venue": {
"id": 311,
"name": "The Lantern",
"address": {
"street1": "1200 Main Street",
"street2": null,
"city": "Springfield",
"state": "IL",
"postalCode": "62701",
"country": "US"
}
},
"venueRoom": {
"id": 702,
"name": "Main Room"
},
"announceDetail": {
"announced": true,
"announceAt": "2025-09-01T15:00:00Z",
"onSaleAt": "2025-09-05T15:00:00Z",
"description": "Two sets, doors at seven.",
"tags": [
"indie",
"all-ages"
],
"images": [],
"attachments": [
{
"attachmentId": 55120,
"highlighted": true,
"attachment": {
"id": 55120,
"name": "night-owls.jpg",
"mime": "image/jpeg",
"url": "https://files.venuepilot.co/attachments/55120/night-owls.jpg"
}
}
],
"category": {
"id": "0f8e2d6a-3b1c-4c57-9a0e-6f2b8d4c1a90",
"name": "Music"
},
"announceArtists": [
{
"id": 4410,
"name": "The Night Owls",
"website": "https://nightowls.example",
"facebook": null,
"instagram": "https://instagram.com/nightowls",
"twitter": null,
"spotify": "https://open.spotify.com/artist/example",
"applemusic": null,
"bandcamp": null,
"youtube": null,
"songkick": null,
"lastfm": null,
"wikipedia": null
}
],
"ticketsUrl": "https://tickets.example.com/night-owls",
"ticketsUrlType": "CUSTOM"
}
}
}
}event.published
The event as it was announced, with announced now true. A body read after a quick withdrawal already shows false:
http
POST /venuepilot HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
Idempotency-Key: 16a2553c-cecc-5145-83d3-188d64a3c2ae
X-Webhook-Topic: event.published
X-Webhook-Timestamp: 1759244403
X-Webhook-Signature: sha256=9208a778fd0e692b5648491101296150265295cf2d6561939f4c89af4b48896c
{
"id": "16a2553c-cecc-5145-83d3-188d64a3c2ae",
"topic": "event.published",
"occurred_at": "2025-09-30T15:00:00.318044Z",
"version": "2026-11-25.beta",
"data": {
"event": {
"id": 9133,
"slug": "harbor-lights-9133",
"name": "Harbor Lights",
"state": "CONFIRMED",
"date": "2025-11-08",
"startTime": "2025-11-09T01:30:00Z",
"doorTime": "2025-11-09T00:30:00Z",
"endTime": "2025-11-09T04:00:00Z",
"timezone": "America/Chicago",
"ticketsUrl": "https://tickets.venuepilot.co/e/harbor-lights-9133",
"venue": {
"id": 311,
"name": "The Lantern",
"address": {
"street1": "1200 Main Street",
"street2": null,
"city": "Springfield",
"state": "IL",
"postalCode": "62701",
"country": "US"
}
},
"venueRoom": {
"id": 703,
"name": "Front Bar"
},
"announceDetail": {
"announced": true,
"announceAt": "2025-09-30T15:00:00Z",
"onSaleAt": null,
"description": null,
"tags": [],
"images": [],
"attachments": [],
"category": null,
"announceArtists": [],
"ticketsUrl": null,
"ticketsUrlType": "VENUEPILOT_CHECKOUT"
}
}
}
}event.unpublished
The same event after its announcement was withdrawn. A body keeps the announcement details; announced is false again:
http
POST /venuepilot HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
Idempotency-Key: 50c5720f-fcfc-56a4-8bf3-4a818c24223f
X-Webhook-Topic: event.unpublished
X-Webhook-Timestamp: 1759306368
X-Webhook-Signature: sha256=acf4427d6564336e2db38aa2977d0c682b6895d61c103213b9a7695d9436a981
{
"id": "50c5720f-fcfc-56a4-8bf3-4a818c24223f",
"topic": "event.unpublished",
"occurred_at": "2025-10-01T08:12:45.902117Z",
"version": "2026-11-25.beta",
"data": {
"event": {
"id": 9133,
"slug": "harbor-lights-9133",
"name": "Harbor Lights",
"state": "CONFIRMED",
"date": "2025-11-08",
"startTime": "2025-11-09T01:30:00Z",
"doorTime": "2025-11-09T00:30:00Z",
"endTime": "2025-11-09T04:00:00Z",
"timezone": "America/Chicago",
"ticketsUrl": "https://tickets.venuepilot.co/e/harbor-lights-9133",
"venue": {
"id": 311,
"name": "The Lantern",
"address": {
"street1": "1200 Main Street",
"street2": null,
"city": "Springfield",
"state": "IL",
"postalCode": "62701",
"country": "US"
}
},
"venueRoom": {
"id": 703,
"name": "Front Bar"
},
"announceDetail": {
"announced": false,
"announceAt": "2025-09-30T15:00:00Z",
"onSaleAt": null,
"description": null,
"tags": [],
"images": [],
"attachments": [],
"category": null,
"announceArtists": [],
"ticketsUrl": null,
"ticketsUrlType": "VENUEPILOT_CHECKOUT"
}
}
}
}event.cancelled
http
POST /venuepilot HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
Idempotency-Key: 4751c6e2-0459-5c0e-9632-74564b52f462
X-Webhook-Topic: event.cancelled
X-Webhook-Timestamp: 1759422615
X-Webhook-Signature: sha256=d1c14ab1f6ece8527aed29c6573dcbbca59db6ffea1905f4a5f8e17ffc91f4c9
{
"id": "4751c6e2-0459-5c0e-9632-74564b52f462",
"topic": "event.cancelled",
"occurred_at": "2025-10-02T16:30:12.554871Z",
"version": "2026-11-25.beta",
"data": {
"event": {
"id": 9147,
"slug": "late-show-9147",
"name": "Late Show",
"state": "CANCELED",
"date": "2025-10-24",
"startTime": "2025-10-25T03:00:00Z",
"doorTime": "2025-10-25T02:00:00Z",
"endTime": "2025-10-25T04:59:00Z",
"timezone": "America/Chicago",
"ticketsUrl": "https://tickets.venuepilot.co/e/late-show-9147",
"venue": {
"id": 311,
"name": "The Lantern",
"address": {
"street1": "1200 Main Street",
"street2": null,
"city": "Springfield",
"state": "IL",
"postalCode": "62701",
"country": "US"
}
},
"venueRoom": {
"id": 702,
"name": "Main Room"
},
"announceDetail": {
"announced": false,
"announceAt": null,
"onSaleAt": null,
"description": null,
"tags": [],
"images": [],
"attachments": [],
"category": null,
"announceArtists": [],
"ticketsUrl": null,
"ticketsUrlType": "NO_URL"
}
}
}
}order.completed
http
POST /venuepilot HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
Idempotency-Key: 0b66b05c-6f62-550c-8d8f-942d146fe914
X-Webhook-Topic: order.completed
X-Webhook-Timestamp: 1759140000
X-Webhook-Signature: sha256=870269ddc977e55ff51c2ea6c48a920d071e2419e54f14307c14f501ca8e4aa2
{
"id": "0b66b05c-6f62-550c-8d8f-942d146fe914",
"topic": "order.completed",
"occurred_at": "2025-09-29T09:59:58.412000Z",
"version": "2026-11-25.beta",
"data": {
"order": {
"id": 48213,
"state": "completed",
"origin": "online",
"currency": "usd",
"createdAt": "2025-09-29T09:58:41Z",
"updatedAt": "2025-09-29T09:59:58Z",
"purchasedAt": "2025-09-29T09:59:58Z",
"firstName": "Jordan",
"lastName": "Rivera",
"email": "jordan.rivera@example.com",
"phoneNumber": "+15555550142",
"customer": {
"id": 20544,
"firstName": "Jordan",
"lastName": "Rivera",
"email": "jordan.rivera@example.com",
"phoneNumber": "+15555550142",
"createdAt": "2024-03-12T18:20:05Z",
"emailOptIn": "OPTED_IN",
"smsOptIn": "DECLINED"
},
"lineItems": [
{
"id": 301877,
"ticketId": 301877,
"name": "General Admission",
"tier": "General Admission",
"kind": "ticket",
"seat": null,
"table": null,
"price": 20.0,
"fee": 3.0,
"paid": 23.0
},
{
"id": 301878,
"ticketId": 301878,
"name": "General Admission",
"tier": "General Admission",
"kind": "ticket",
"seat": null,
"table": null,
"price": 20.0,
"fee": 3.0,
"paid": 23.0
}
],
"discountAmount": 10.0,
"donation": 2.0,
"taxFee": 3.2,
"processingFee": 1.5,
"platformFee": 2.0,
"total": 54.7,
"discountCode": "EARLYBIRD",
"discountId": 1907,
"appliedCredit": null,
"refundedAmount": 0.0,
"refundStatus": "none",
"refunds": [],
"paymentMethod": "credit",
"cardBrand": "visa",
"lastFourDigits": "4242",
"transactionId": "ch_3QbX9eLkdIwHu7ix0Tn5rJ2a",
"event": {
"id": 9120,
"name": "The Night Owls",
"startTime": "2025-10-18T01:00:00Z",
"venue": {
"id": 311,
"name": "The Lantern"
}
}
}
}
}order.refunded
The same order after its second partial refund. refunds lists both:
http
POST /venuepilot HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
Idempotency-Key: 9e929366-d769-5f75-82fc-e08ba9957e1f
X-Webhook-Topic: order.refunded
X-Webhook-Timestamp: 1759489522
X-Webhook-Signature: sha256=0ccf78c7b5615b9c44cbd7310ec170ebb094cfa37c1d35f828a8f6dd53afa137
{
"id": "9e929366-d769-5f75-82fc-e08ba9957e1f",
"topic": "order.refunded",
"occurred_at": "2025-10-03T11:05:19.774102Z",
"version": "2026-11-25.beta",
"data": {
"order": {
"id": 48213,
"state": "completed",
"origin": "online",
"currency": "usd",
"createdAt": "2025-09-29T09:58:41Z",
"updatedAt": "2025-09-29T09:59:58Z",
"purchasedAt": "2025-09-29T09:59:58Z",
"firstName": "Jordan",
"lastName": "Rivera",
"email": "jordan.rivera@example.com",
"phoneNumber": "+15555550142",
"customer": {
"id": 20544,
"firstName": "Jordan",
"lastName": "Rivera",
"email": "jordan.rivera@example.com",
"phoneNumber": "+15555550142",
"createdAt": "2024-03-12T18:20:05Z",
"emailOptIn": "OPTED_IN",
"smsOptIn": "DECLINED"
},
"lineItems": [
{
"id": 301877,
"ticketId": 301877,
"name": "General Admission",
"tier": "General Admission",
"kind": "ticket",
"seat": null,
"table": null,
"price": 20.0,
"fee": 3.0,
"paid": 23.0
},
{
"id": 301878,
"ticketId": 301878,
"name": "General Admission",
"tier": "General Admission",
"kind": "ticket",
"seat": null,
"table": null,
"price": 20.0,
"fee": 3.0,
"paid": 23.0
}
],
"discountAmount": 10.0,
"donation": 2.0,
"taxFee": 3.2,
"processingFee": 1.5,
"platformFee": 2.0,
"total": 54.7,
"discountCode": "EARLYBIRD",
"discountId": 1907,
"appliedCredit": null,
"refundedAmount": 31.5,
"refundStatus": "partial",
"refunds": [
{
"id": 7710,
"createdAt": "2025-09-30T10:12:44Z",
"kind": "partial",
"amount": 21.0,
"creditAmount": 0.0,
"donation": 0.0,
"processingFee": 0.0,
"taxFee": 0.0,
"reason": "Could not attend",
"issuedBy": "Sam Okafor",
"lines": [
{
"amount": 21.0,
"eventName": "The Night Owls",
"quantity": 1,
"seatLabels": null,
"ticketTypeName": "General Admission"
}
]
},
{
"id": 7731,
"createdAt": "2025-10-03T11:05:19Z",
"kind": "partial",
"amount": 10.5,
"creditAmount": 0.0,
"donation": 0.0,
"processingFee": 0.0,
"taxFee": 0.0,
"reason": null,
"issuedBy": "Sam Okafor",
"lines": [
{
"amount": 10.5,
"eventName": "The Night Owls",
"quantity": 1,
"seatLabels": null,
"ticketTypeName": "General Admission"
}
]
}
],
"paymentMethod": "credit",
"cardBrand": "visa",
"lastFourDigits": "4242",
"transactionId": "ch_3QbX9eLkdIwHu7ix0Tn5rJ2a",
"event": {
"id": 9120,
"name": "The Night Owls",
"startTime": "2025-10-18T01:00:00Z",
"venue": {
"id": 311,
"name": "The Lantern"
}
}
}
}
}Field order is not part of the contract: parse the body rather than matching it. Treat the body as bytes until the signature has been checked — see below.
Headers
| Header | Value |
|---|---|
Content-Type | application/json |
Idempotency-Key | Identifies the fact the delivery reports — see Idempotency key |
X-Webhook-Topic | The topic, the same as topic in the body |
X-Webhook-Timestamp | When this attempt was signed, in Unix seconds, as a decimal string |
X-Webhook-Signature | sha256=<hex> — or several, comma-separated, during a secret rotation |
Every subscription has a secret, so in practice every delivery carries the timestamp and signature headers; reject any request without them. Anything else in the request (User-Agent, for instance) is our HTTP client's default and is not part of this contract.
Verifying the signature
The signature proves the delivery came from us and was not altered. Verify it on every request, before you parse the body.
- Read
X-Webhook-Timestampand the raw request body, byte for byte. Re-serialising parsed JSON will not reproduce the bytes we signed. - Build the signed message: the timestamp, a full stop, then the body —
<timestamp>.<body>. - Compute HMAC-SHA256 of that message, keyed with your signing secret exactly as we gave it to you: the 64-character string, used as text. Do not hex-decode it.
- Hex-encode the result in lowercase and prefix it with
sha256=. - Split
X-Webhook-Signatureon commas. The delivery is genuine if any one entry equals your value. Compare in constant time. - Optionally reject a timestamp more than a few minutes from your clock. Every attempt, retries included, is signed afresh at send time, so a five-minute tolerance never rejects a genuine retry.
Worked example
The event.cancelled delivery above, with these inputs:
Secret: 3f9c2a7e5b1d48c6a0e2f7b9d4c1a8e63b5f0d2c9a7e4b1f6d8c3a0e5b2f7d91
Timestamp: 1759422615
Body: {"id":"4751c6e2-0459-5c0e-9632-74564b52f462","data":{"event":{"id":9147,"date":"2025-10-24","name":"Late Show","slug":"late-show-9147","state":"CANCELED","venue":{"id":311,"name":"The Lantern","address":{"city":"Springfield","state":"IL","country":"US","street1":"1200 Main Street","street2":null,"postalCode":"62701"}},"endTime":"2025-10-25T04:59:00Z","doorTime":"2025-10-25T02:00:00Z","timezone":"America/Chicago","startTime":"2025-10-25T03:00:00Z","venueRoom":{"id":702,"name":"Main Room"},"ticketsUrl":"https://tickets.venuepilot.co/e/late-show-9147","announceDetail":{"tags":[],"images":[],"category":null,"onSaleAt":null,"announced":false,"announceAt":null,"ticketsUrl":null,"attachments":[],"description":null,"ticketsUrlType":"NO_URL","announceArtists":[]}}},"topic":"event.cancelled","version":"2026-11-25.beta","occurred_at":"2025-10-02T16:30:12.554871Z"}the signed message is
1759422615.{"id":"4751c6e2-0459-5c0e-9632-74564b52f462","data":{"event":{"id":9147,"date":"2025-10-24","name":"Late Show","slug":"late-show-9147","state":"CANCELED","venue":{"id":311,"name":"The Lantern","address":{"city":"Springfield","state":"IL","country":"US","street1":"1200 Main Street","street2":null,"postalCode":"62701"}},"endTime":"2025-10-25T04:59:00Z","doorTime":"2025-10-25T02:00:00Z","timezone":"America/Chicago","startTime":"2025-10-25T03:00:00Z","venueRoom":{"id":702,"name":"Main Room"},"ticketsUrl":"https://tickets.venuepilot.co/e/late-show-9147","announceDetail":{"tags":[],"images":[],"category":null,"onSaleAt":null,"announced":false,"announceAt":null,"ticketsUrl":null,"attachments":[],"description":null,"ticketsUrlType":"NO_URL","announceArtists":[]}}},"topic":"event.cancelled","version":"2026-11-25.beta","occurred_at":"2025-10-02T16:30:12.554871Z"}and the signature you should compute, and find in X-Webhook-Signature, is
Signature: sha256=d1c14ab1f6ece8527aed29c6573dcbbca59db6ffea1905f4a5f8e17ffc91f4c9The timestamp is fixed and long past, so test against this example with any timestamp tolerance (step 6) switched off. Check your implementation from a shell:
bash
printf '%s' '1759422615.{"id":"4751c6e2-0459-5c0e-9632-74564b52f462","data":{"event":{"id":9147,"date":"2025-10-24","name":"Late Show","slug":"late-show-9147","state":"CANCELED","venue":{"id":311,"name":"The Lantern","address":{"city":"Springfield","state":"IL","country":"US","street1":"1200 Main Street","street2":null,"postalCode":"62701"}},"endTime":"2025-10-25T04:59:00Z","doorTime":"2025-10-25T02:00:00Z","timezone":"America/Chicago","startTime":"2025-10-25T03:00:00Z","venueRoom":{"id":702,"name":"Main Room"},"ticketsUrl":"https://tickets.venuepilot.co/e/late-show-9147","announceDetail":{"tags":[],"images":[],"category":null,"onSaleAt":null,"announced":false,"announceAt":null,"ticketsUrl":null,"attachments":[],"description":null,"ticketsUrlType":"NO_URL","announceArtists":[]}}},"topic":"event.cancelled","version":"2026-11-25.beta","occurred_at":"2025-10-02T16:30:12.554871Z"}' \
| openssl dgst -sha256 -hmac 3f9c2a7e5b1d48c6a0e2f7b9d4c1a8e63b5f0d2c9a7e4b1f6d8c3a0e5b2f7d91Node.js (Express, with the body kept raw):
js
const crypto = require('crypto');
app.post('/venuepilot', express.raw({ type: '*/*' }), (req, res) => {
const timestamp = req.get('X-Webhook-Timestamp');
const header = req.get('X-Webhook-Signature');
if (!timestamp || !header || !Buffer.isBuffer(req.body)) return res.sendStatus(401);
const expected = Buffer.from('sha256=' + crypto.createHmac('sha256', process.env.VENUEPILOT_WEBHOOK_SECRET)
.update(`${timestamp}.`).update(req.body).digest('hex'));
const ok = header.split(',').some((sig) => {
const given = Buffer.from(sig.trim());
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
});
if (!ok) return res.sendStatus(401);
const { id, topic, data } = JSON.parse(req.body);
enqueue(id, topic, data);
res.sendStatus(204);
});Python:
python
import hashlib, hmac
def verify(secret: str, timestamp: str | None, body: bytes, header: str | None) -> bool:
if not timestamp or not header:
return False
mac = hmac.new(secret.encode(), timestamp.encode() + b"." + body, hashlib.sha256)
expected = ("sha256=" + mac.hexdigest()).encode()
return any(hmac.compare_digest(sig.strip().encode(), expected) for sig in header.split(","))Answer 401 to a delivery that fails verification. That is a permanent failure for that delivery (see below), which is what you want for a forgery. But it also means a bug in your verification drops real deliveries. Test against the example above before you go live.
Responding
Answer with any 2xx within 10 seconds (we give up connecting after 5). Do the work afterwards: acknowledge, queue the body, return. A handler that does slow work before answering will eventually time out and be retried.
| You answer | We do |
|---|---|
2xx | Delivered. Done. |
429 | Stop sending to that subscription for the rest of the current one-minute cycle and try again on a later one. Does not use up an attempt. Retry-After is not read. |
any other 4xx | Permanent failure. That delivery is not retried. |
3xx, 5xx, a timeout, or no connection | Retry (below). Redirects are not followed. |
Retries and duplicates
Delivery is at least once. A failed delivery is retried until it succeeds or runs out of attempts:
- 5 attempts in all: the first, then retries after about 30 seconds, 1 minute, 2 minutes and 4 minutes. Deliveries go out on a one-minute cycle, so each retry lands on the first cycle after its wait. After the fifth failed attempt that delivery is given up.
- We pace what we send to each subscription, so a backlog drains over a while rather than all at once, and more slowly when several subscriptions are backed up at once.
- A delivery we are holding back — because you answered
429, or because a permission or hold-event check failed (see below) — does not use up attempts, but it is given up once it has been waiting 7 days. - If the subscription creator loses the permission a topic needs, or the right to see hold dates, the affected deliveries wait rather than go out, and resume if the access comes back within those 7 days.
You will receive duplicates. The commonest cause is a 2xx that arrives after our timeout, so we record a failure and send again. What to do about one depends on what your handler does:
- Syncing state — upsert the snapshot in the body, after the
occurred_atcheck in Telling a stale body from a fresh one, whatever the key. A duplicate then costs you nothing, and you never drop a real change that happens to share a key (see below). - Once-only side effects — sending an email, raising an invoice, counting a sale. Deduplicate these on the key: if you have already acted on this
id, answer2xxand do not act again. Keep the ids for at least 7 days, which covers every retry and wait. A retry repeats its fact'sid, while each refund and each announcement is its own fact with its ownid, so a second partial refund or a re-announcement is never mistaken for a duplicate. But oneorder.refundedis not one refund: a refund whose delivery was still waiting when the next refund on the same order came is replaced by it and never sent on its own. On everyorder.refunded, readdata.order.refundsand act once per refund id you have not seen.
Auto-pause
A subscription whose deliveries keep failing is switched off for you. It is paused when, for 7 days, none of its deliveries has succeeded and at least 5 have finally failed (given up after their attempts, or refused with a 4xx). 429s and held-back deliveries do not count, and one success resets the count. A paused subscription shows as paused, and the venue's team members who manage webhooks are emailed the reason. It stays paused until it is switched back on (see Managing a subscription). Pending deliveries are dropped when it pauses, as with any stop.
Idempotency key
Idempotency-Key identifies the fact a delivery reports, and it is always the body's id. We set it when the fact is queued, and it goes out as the same Idempotency-Key on every retry of that delivery, with the same body. It is the value to deduplicate on — not the timestamp, which changes on every attempt. It is a UUID, unique across topics, so it needs no topic beside it.
What makes one fact's id differ from another's:
| Topic | One fact per |
|---|---|
event.updated | change queued — every event.updated is its own fact |
event.published | announcement — announcing, withdrawing and announcing again gives two ids |
event.unpublished | withdrawal — a second withdrawal after a re-announcement gets its own id |
event.cancelled | event — an event is cancelled once |
order.completed | order — when we re-check a payment and re-finalise an order, it comes again with the same id and occurred_at |
order.refunded | refund — two partial refunds on one order give two ids |
A newer fact that replaces a delivery still waiting to go out (see What we do not promise) replaces its id too: the replaced fact's id is never sent.
Managing a subscription
Everything below is done on Settings › Webhooks, which lists the account's subscriptions with their status. Seeing them and their delivery history needs the Webhooks permission at Read; every change needs Edit (see Who can manage webhooks).
Delivery history — each subscription's recent attempts, newest first: attempt number, status code or failure kind, duration and the Idempotency-Key sent. It keeps 90 days and never stores the payload. It is the first place to look when you think a delivery went missing.
Rotate the signing secret — do this if the secret may have leaked, or on a schedule. Only the subscription's creator can rotate it. The new secret is shown once, as at creation.
For the next 24 hours, every delivery is signed with both secrets, new first, so X-Webhook-Signature carries two comma-separated entries. Deploy the new secret any time in that window. Your verifier accepts the delivery because one entry matches, whichever secret you hold. After the window, only the new secret signs.
Rotate once and keep the new secret. Rotating again inside the window replaces the previous secret straight away, so if the secret you have deployed is the one before last, it stops signing immediately and your verifier starts refusing real deliveries.
Switch it off, and back on — keeps the subscription and its configuration, and stops delivery. It shows as disabled, and anything waiting to be delivered is dropped (No replay, above). Switching it on makes it active again, and also brings back an auto-paused subscription. If its creator has lost access in the meantime, it stays suspended and the admin says why. It does not have to be the creator who switches it.
Change it — the destination URL, the topics and the hold-events option. Only its creator can change it; anyone else with Edit takes it over first. The URL and topic rules from Creating one apply; the limit and duplicate rules do not. Moving the URL clears the failure count toward auto-pause.
Take it over — a member with Edit becomes its creator, and it runs on their access from then on. This is how a subscription whose creator left the venue's team comes back: URL, topics, hold-events option and signing secret stay as they are. It is refused when the member's own access does not cover every one of its topics, or its hold-events option when they cannot see holds. A suspended subscription resumes, delivering from now (No replay, above); a disabled or paused one keeps its status.
Delete it — removes the subscription and anything waiting to be delivered to it.
Statuses
| Status | Meaning | How it comes back |
|---|---|---|
active | Delivering | — |
disabled | Switched off on Settings › Webhooks | Switch it back on |
paused | Switched off automatically after sustained failures | Fix your endpoint, then switch it back on |
suspended | Its creator lost access — for instance, they were removed from the venue's team | A member with Edit takes it over, which resumes it with the same secret. Switching it on resumes it only if its creator's access is back |