Skip to content

holiday.bulk-updated Webhook

The holiday.bulk-updated event tells your integration that many holidays for one location were imported from the holiday library or that a full year of that location's holidays was changed in a single action. The payload is intentionally small: it identifies the location, not the individual holidays. Your handler should use the location ID to read the current holiday list from the API.

When this event fires

This event is emitted in two situations: holidays are imported into a location from the holiday library, or a whole year of a location's holidays is changed at once. The event-type enum also lists holiday.created, holiday.updated, and holiday.deleted for individual holiday changes. If your integration needs to know exactly which holidays were added or removed, it must fetch the location's holiday list after receiving this event.

What the payload contains

The data object carries only the locationId of the location whose holidays changed. It does not enumerate the holidays themselves. The event envelope also includes the event id, type, apiVersion, createdAt, companyId, and optionally apiClient when the change was made through the API. The body id is deterministic for the same change, so it can be used to skip duplicate deliveries.

Fetching the affected holidays

After receiving the event, call GET /v2/locations/{id}/holidays with the locationId from the payload. The caller needs the holidays:read scope. Because the event does not list the holidays, this follow-up read is the only way to learn the resulting set of holidays for that location.

Headers and signature verification

Deliveries include VT-Signature, VT-Webhook-Id, VT-Event-Id, VT-Event-Type, VT-Delivery-Id, VT-Delivery-Attempt, and User-Agent. VT-Signature is structured as t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. During the 24 hours that follow a secret rotation, each delivery also carries a second v1 entry signed with the previous secret, letting receivers accept a match against either signature in that window. VT-Event-Id matches the body id and can be used to skip duplicates. VT-Delivery-Id stays the same across retries of one delivery, while VT-Delivery-Attempt starts at 1 and increments.

Field and header map

Use this checklist to confirm your handler reads the required fields.

Decision checklist for handlers

  1. Verify VT-Signature against the raw request body before parsing. 2. Check VT-Event-Id against a short-lived deduplication store to avoid processing the same change twice. 3. Read locationId from data. 4. Call GET /v2/locations/{id}/holidays with a token that has holidays:read. 5. If apiClient is present, record which API key made the change for audit purposes. 6. VT-Delivery-Id is kept across retries of the same delivery and VT-Delivery-Attempt starts at 1 and increments; deduplicate using VT-Event-Id or the body id, not the delivery attempt.
Header fields
HeaderRequiredPurpose
VT-SignatureYesFormat t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">; for 24 hours after a secret rotation it carries a second v1 entry signed with the previous secret.
VT-Webhook-IdYesID of the webhook the delivery is for.
VT-Event-IdYesEvent ID matching the body id; use to skip duplicates.
VT-Event-TypeYesEvent type matching the body type.
VT-Delivery-IdYesUnique per delivery and kept across retries of the same delivery.
VT-Delivery-AttemptYesAttempt number of this delivery, starting at 1.
User-AgentYesThe User-Agent value is a fixed product identifier in the form <provider>-Webhooks/2, where <provider> is the platform's own name. Treat it as a constant string to match against, not a value your integration sets.

Header names and requiredness are exact contract values.

Body fields
FieldRequiredTypePurpose
idYesstringEvent ID, same as VT-Event-Id; deterministic for the same change.
typeYesstringEvent type; webhook.test is test-only and cannot be subscribed to.
apiVersionYesstringAPI version of the data shape; value "2".
createdAtYesstring (date-time)ISO 8601 timestamp of event creation.
companyIdYesstringID of the company.
data.locationIdYesstringID of the location whose holidays changed.
apiClient.keyIdYes (if apiClient present)stringID of the API key.
apiClient.nameNostringIntegration name; absent when the key has none.
apiClient.ownerIdYes (if apiClient present)stringID of the user who owns the API key.

Field names and requiredness are exact contract values.

Frequently asked questions

How is holiday.bulk-updated different from holiday.updated?

holiday.updated signals a change to a single holiday. holiday.bulk-updated signals that many holidays for a location were imported or that a whole year of holidays was changed at once. The bulk event carries only the locationId, so you must fetch the location's holiday list to see the result.

How do I avoid processing the same bulk change twice?

Use VT-Event-Id from the header or the id field in the body. Both identify the same event, and the id is deterministic for the same change. Store recently seen event IDs and skip any delivery whose ID you have already handled.

What permission is needed to read the affected holidays?

The caller needs the holidays:read scope to call GET /v2/locations/{id}/holidays after receiving the event.

VT-Signature

FieldTypeRequiredDescriptionConstraints
VT-SignaturestringYest= ,v1= . "> . For 24 hours after a secret rotation it carries a second v1 entry signed with the previous secret. See Signature verification at the top of this document.

VT-Webhook-Id

FieldTypeRequiredDescriptionConstraints
VT-Webhook-IdstringYesthe ID of the webhook the delivery is for.

VT-Event-Id

FieldTypeRequiredDescriptionConstraints
VT-Event-IdstringYesthe event ID, the same as id in the body. Use it to skip duplicate deliveries.

VT-Event-Type

FieldTypeRequiredDescriptionConstraints
VT-Event-TypestringYesthe event type, the same as type in the body.Allowed values: $3b

VT-Delivery-Id

FieldTypeRequiredDescriptionConstraints
VT-Delivery-IdstringYesthe delivery ID, unique per delivery and kept across retries of the same delivery.

VT-Delivery-Attempt

FieldTypeRequiredDescriptionConstraints
VT-Delivery-AttemptintegerYesthe attempt number of this delivery, starting at 1.1 <= value