Triggered when a booking policy is updated, including when a policy's
default
attribute changes.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.bookings.v1.booking_policy
.
Event name. Expected updated
.
ID of the entity associated with the event.
Event timestamp.
Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
If present, indicates the action that triggered the event.
Event information.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "wix.bookings.v1.booking_policy_updated",
"instanceId": "<app-instance-id>",
"data": "<stringified-JSON>",
// The identity field is sent as a stringified JSON
"identity": {
"identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
"anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR
"memberId": "<memberId>", // in case of MEMBER
"wixUserId": "<wixUserId>", // in case of WIX_USER
"appId": "<appId>" // in case of APP
}
}
}
{
"id": "39c351d8-b571-4bf6-8313-0722c34eabb3",
"entityFqdn": "wix.bookings.v1.booking_policy",
"slug": "updated",
"entityId": "caa894dc-e84e-4498-aef3-76610c5cd95c",
"updatedEvent": {
"currentEntityAsJson": "{\"id\":\"caa894dc-e84e-4498-aef3-76610c5cd95c\",\"revision\":\"6\",\"createdDate\":\"2023-01-13T15:00:41.492Z\",\"updatedDate\":\"2023-02-16T11:33:39.421Z\",\"name\":\"Default policy\",\"customPolicyDescription\":{\"enabled\":false,\"description\":\"\"},\"default\":true,\"limitEarlyBookingPolicy\":{\"enabled\":false,\"earliestBookingInMinutes\":10080},\"limitLateBookingPolicy\":{\"enabled\":false,\"latestBookingInMinutes\":1440},\"bookAfterStartPolicy\":{\"enabled\":false},\"cancellationPolicy\":{\"enabled\":true,\"limitLatestCancellation\":false,\"latestCancellationInMinutes\":1440},\"reschedulePolicy\":{\"enabled\":true,\"limitLatestReschedule\":false,\"latestRescheduleInMinutes\":1440},\"waitlistPolicy\":{\"enabled\":false,\"capacity\":10,\"reservationTimeInMinutes\":10},\"participantsPolicy\":{\"enabled\":false,\"maxParticipantsPerBooking\":1}}"
},
"eventTime": "2023-02-16T11:33:39.571403Z",
"triggeredByAnonymizeRequest": false,
"entityEventSequence": "6"
}