Unidy Docs

Webhook event reference

Find webhook event names, triggers, payload fields, and deletion shapes.

The current catalogue includes 29 webhook event types, including six Loyalty events. Availability depends on the instance's enabled features and deployed version. Use the catalogue to choose subscriptions and open the corresponding payload reference. The envelope example uses synthetic identifiers and timestamps.

For endpoint setup, see Webhook configuration. For signature verification, responses, retries, and deduplication, see Configure and secure a webhook.

Event catalogue

Each row names a separate subscribable event. The eight subscription.* and ticket.* types require a service on the webhook subscription. Transaction and line-item events do not use that service filter.

Event typePayload referenceService requiredTrigger
user.createdUserNoA supported registration, dashboard, import, API, or connector path creates a user.
user.updatedUserNoAn emitting path updates profile, confirmation, verification, or other user state.
user.deletedUserNoAn emitting path deletes a user; the profile is captured before deletion.
user.plugin_connectedPlugin linkNoAn explicit link-management operation connects a user to a provider identity or changes that linked identity.
user.plugin_disconnectedPlugin linkNoAn explicit link-management operation disconnects a provider identity.
newsletter_subscription.createdNewsletter subscriptionNoA newsletter-subscription creation path creates the relationship.
newsletter_subscription.updatedNewsletter subscriptionNoAn emitting path changes confirmation, preferences, email, or linked user, or requests confirmation.
newsletter_subscription.deletedNewsletter subscriptionNoA subscription is removed through an emitting unsubscribe or deletion path.
newsletter_preference.deletedNewsletter preferenceNoAn administrator deletes a configured newsletter preference.
subscription.createdSubscriptionYesA supported API, dashboard, connector, or event-triggering path creates or publishes a product subscription.
subscription.updatedSubscriptionYesA supported path changes a product subscription, including scheduled expiry to an inactive state.
subscription.enteredSubscriptionYesEnabled entry tracking applies an access notification for a matched subscription.
subscription.deletedSubscriptionYesAn emitting path deletes the product subscription.
ticket.createdTicketYesA supported creation or event-triggering path publishes a ticket.
ticket.updatedTicketYesA supported path changes the ticket, holder, expiry state, or recorded entry time.
ticket.enteredTicketYesEnabled entry tracking applies an access notification for a matched ticket.
ticket.deletedTicketYesAn emitting path deletes the ticket.
transaction.createdTransactionNoAn emitting creation path creates a transaction.
transaction.updatedTransactionNoAn emitting path updates a transaction or its line items; batch upserts can also publish this type.
transaction.deletedTransactionNoAn emitting path deletes the transaction.
transaction_line_item.createdLine itemNoA supported per-item operation explicitly emits a line-item creation event.
transaction_line_item.updatedLine itemNoA supported per-item operation explicitly emits a line-item update event.
transaction_line_item.deletedLine itemNoA supported per-item operation explicitly emits a line-item deletion event.
loyalty_account.points_changeLoyaltyNoAward ingestion, voiding, correction or deletion changes points.
loyalty_account.level_changeLoyaltyNoA balance's level changes, including recalculation.
loyalty_account.membership_changeLoyaltyNoParticipation changes through joining, declining, withdrawing or rejoining.
loyalty_account.deletedLoyaltyNoA member account is erased.
loyalty_season.startedLoyaltyNoA configured season's start boundary is reached.
loyalty_season.endedLoyaltyNoA configured season's end boundary is reached.

An event name being supported does not mean every database write emits it. For example, current REST V1 line-item operations emit transaction.updated; do not depend on dedicated line-item events for every route or nested write. The presence of a dedicated event name in this catalogue does not guarantee that every supported API operation emits it. Confirm event availability for the supported surface enabled in your environment.

Payloads by resource

Envelope and timing

The envelope is flat. Resource data is alongside it, without a data wrapper. Most events have one resource key; plugin-link events have both user and plugin_data.

json
{
  "event_type": "transaction_line_item.deleted",
  "occurred_at": "2026-10-02T09:15:30.000Z",
  "event_id": "3c8e3212-1a17-4f59-9d98-18c38ee2fcef",
  "source": "api",
  "client_id": "example-oauth-application-uid",
  "tenant_id": "example-stage",
  "brand_id": 1,
  "transaction_line_item": {
    "id": "8e1ab455-0a1d-486b-a5f5-24b4b838d882",
    "transaction_id": "9431557b-cfcf-4a98-bc57-c7dbeef2c817"
  }
}
FieldTypeMeaning
event_typestringOne of the names in the catalogue.
occurred_atISO 8601 timestampTime the webhook payload was constructed. It is not a record revision or a guaranteed timestamp of the original mutation.
event_idUUID stringIdentifies the event across deliveries and retries.
sourcestringOrigin of the emitting operation. Common values appear below.
client_idstring, optionalOAuth application UID when the source is api and an originating OAuth application is available.
tenant_idstringUnidy environment identifier, such as example-stage. Keep environments separate in your receiver.
brand_idinteger or nullBrand context attached to the dispatch. See the brand-context limitation.

Treat tenant_id as the configured environment identifier, rather than parsing a fixed suffix. Older examples used identifiers such as customer-stage and described a tenant/environment naming convention; deployed identifiers need not literally end in production or staging. Route multi-tenant traffic using the full known identifier together with the brand context, and keep staging and production destinations separate.

Legacy payload compatibility

Older payloads included the misspelled timestamp key occured_at alongside occurred_at. New consumers should use occurred_at; a consumer processing historical payloads can accept occured_at only as a fallback when the correct key is absent. Do not require both keys or expect the deprecated spelling in current deliveries.

Older transaction examples also showed numeric line-item IDs. Current line-item serialization uses UUID strings, including items nested in a transaction. Do not coerce these IDs to integers or assume a historical numeric ID is interchangeable with a UUID. Confirm identifier mapping when migrating stored records.

Create and update payloads are record snapshots, not field-level diffs. Their serialization can happen asynchronously after the originating operation, so a later change may already be visible in a snapshot. Delete events use data captured before deletion and often contain fewer fields.

Delivery order is not guaranteed. Requests may repeat and retries are bounded; successful receipt is not guaranteed. Do not implement last-writer-wins solely by sorting occurred_at. If current state matters, reconcile through the appropriate REST endpoint. A current-state fetch cannot reconstruct a deleted record or every intermediate change.

Common sourceMeaning
userA customer action such as profile editing or newsletter signup.
adminA dashboard action.
apiAn API operation.
sdk, sdk_registrationAn SDK operation or registration flow.
importAn import operation.
cronScheduled processing.
plugin_hubspot, plugin_eventim, plugin_plenigo, plugin_campaiA provider connector.

Use the source as context for avoiding synchronization loops, not as proof that a particular field changed. Allow for additional or unknown source values.

Avoid synchronization loops

An API write can cause a webhook to return to the same integration. When the signed payload has source: "api" and its client_id equals your originating OAuth application's client ID, you can suppress the redundant write back to Unidy. Match the application within the correct tenant/environment; do not discard every event whose source is api, since another application may have made a meaningful change. If client_id is absent or unfamiliar, reconcile the event normally. This loop check is separate from retry deduplication by event_id.

Delivery headers

Read header names case-insensitively and verify the raw request bytes before parsing JSON.

HeaderMeaning
UNIDY-WEBHOOK-VERSIONSigning scheme: v2 for new registrations; legacy registrations may send v1. This is not a resource-schema version.
UNIDY-WEBHOOK-TIMESTAMPUnix timestamp in seconds; present for v2 and included in its signature input.
UNIDY-WEBHOOK-DELIVERY-IDDelivery UUID, stable across retries for this event/subscription pairing.
UNIDY-WEBHOOK-DELIVERY-ATTEMPTOne-based attempt counter.
UNIDY-WEBHOOK-SIGNATUREHex signature: v2 uses HMAC-SHA256 over timestamp.raw_body; legacy v1 uses SHA256 of secret + raw_body.

One event can produce several deliveries, one per matching subscription. Deduplicate the delivery ID for a single delivery stream; if you intentionally combine several subscriptions into one event processor, deduplicate by environment and event ID. Keep that deduplication decision aligned with your processing boundaries. The consumer contract covers timestamp tolerance, constant-time verification, and durable acceptance.

Subscription matching

The application explicitly emits events after the surrounding transaction commits. Webhook dispatch then requires an enabled registration and enabled subscription matching the event type, the service for ticket/subscription events, and the brand when brand context is available. Subscription changes are not a historical backfill.

No matching webhook subscription means no webhook event or delivery is created for that dispatch. A separate domain-event log may still exist. Editing the database directly does not in itself generate webhook events.

Missing brand context

Some emitting paths can dispatch without brand context. In that case brand_id is null and the brand filter is skipped, so subscriptions associated with other brands can match. Do not rely on a webhook subscription alone as a brand-isolation boundary. If your processing requires a trustworthy brand and receives a null brand, quarantine the event and contact Unidy to resolve its scope; not every payload, especially a deletion, contains enough information to infer it safely.

For supported live-record events, a registration owner can add a permission ceiling when webhook RBAC scoping is enabled. An otherwise matching subscription can receive no delivery if its owner cannot read the record. See Owner permissions and rollout; this does not remove the missing-brand caveat or guarantee filtering of every serialized deletion shape.

Retention and recovery

Unidy cleans up webhook events and their deliveries after two calendar months. A permanently failed delivery does not immediately erase its stored event payload; inspect it while it remains available. There is no general customer replay guarantee for retained events.

For recovery, distinguish the information you need:

  • Current records: reconcile from REST, or use an available action to trigger new events for existing records. New events carry current data and may affect other subscribers.
  • A retained failed event: inspect its stored payload and delivery result before retention cleanup.
  • Deleted records or intermediate history: use your retained events, tombstones, or another authoritative history. A current-state API fetch cannot reconstruct them.

See Troubleshoot failed deliveries for a recovery procedure and Configure and secure a webhook for receiver requirements.

Was this page helpful?