Webhook structure

Wix exposes webhooks for create, update, and delete actions, and relevant additional actions. Most webhooks are organized in a standardized format, as described below. Wix also has some legacy webhooks that don't comply with the standardized format.

Standardized webhooks

The majority of webhooks exposed by Wix align with the standardized format described below.

The data payload consists of the following information encoded as a JWT:

Field name説明
data
data.eventTypeWebhook event type, as documented in each webhook. For example: wix.contacts.v4.contact_merged.
data.instanceIdApp instance ID, the identifier of the site where the event occurred.
data.dataData payload as stringified JSON. See the Data payload table.
data.identityIdentity data as stringified JSON. See the Identity payload table.

Data payload

について data.data payload includes the following fields:

Field name説明
アイドルWebhook event ID. Note that this ID is not related to the ID of the affected entity.
slugEvent type. Common values include: created, updatedそして 削除. Non-standard actions return a slug that corresponds to the action taken, as documented in each webhook. For example, the Merge Contacts endpoint triggers a webhook with slug: merge.
entityFqdnFully qualified domain name (FQDN) of the entity associated with the event, as documented in each webhook.
entityIdID of the affected entity. For example, the affected contact ID.
eventTimeTimestamp when the event was triggered, in ISO-8601 format and UTC time.
triggeredByAnonymizeRequestWhether this change was triggered by a request to apply a privacy regulation.
originatedFromThe slug of the action that triggered this change, when applicable, as documented in each webhook. For example, when a contact is deleted due to merging of 2 contacts, this field is populated with merge.

In addition, each webhook includes one of the following fields with data specifc to the event, based on the slug type:

Field nameSlug説明
createdEventcreatedComplete entity that was created.
updatedEventupdatedComplete entity that was updated.
deletedEvent削除ID of the entity that was deleted.
actionEventNon-standard, as documented in each webhook.Data related to the non-standard action that was taken, generally including the complete entity. For example, the Contact Merged webhook returns the IDs of the source and target contact IDs in addition to the complete updated entity.

Identity payload

について data.identity payload includes the type and ID of the identity that triggered the event:

Field name説明
data.identity.identityTypeIdentity type that triggered this event. Supported values: ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP. See Identities.
One of:
data.identity.anonymousVisitorIdVisitor ID.
data.identity.memberIdMember ID.
data.identity.wixUserIdWix User ID.
data.identity.appIdApp ID.

Legacy webhooks

Wix also returns some legacy webhooks that don't follow the above standard. For example, the legacy Wix Stores Product Changed webhook only returns the fields that were updated, and these fields are returned in a flat list, not according to the full object structure. We're working to replace these webhooks with new ones that align with the above standard, but in the meantime you may depend on a webhook that doesn't align with the standard structure.

役に立ちましたか?
はい
いいえ