Triggered when the site's default policy changes. Then, Booking Policy Updated is also triggered both for the new and the previous default policy.
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 default_booking_policy_set
.
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_default_booking_policy_set",
"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": "c5d438c2-99e8-47c8-bfe8-5b33746a2c6a",
"entityFqdn": "wix.bookings.v1.booking_policy",
"slug": "default_booking_policy_set",
"entityId": "caa894dc-e84e-4498-aef3-76610c5cd95c",
"actionEvent": {
"bodyAsJson": "{\"currentDefaultBookingPolicy\":{\"id\":\"caa894dc-e84e-4498-aef3-76610c5cd95c\",\"revision\":\"8\",\"createdDate\":\"2023-01-13T15:00:41.492Z\",\"updatedDate\":\"2023-02-17T15:30:35.813Z\",\"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}},\"previousDefaultBookingPolicy\":{\"id\":\"1a426c47-0c86-46c7-8573-c7bce734f660\",\"revision\":\"4\",\"createdDate\":\"2023-02-16T10:46:17.420Z\",\"updatedDate\":\"2023-02-17T15:30:35.808Z\",\"name\":\"Appointment Policy\",\"customPolicyDescription\":{\"enabled\":true,\"description\":\"To cancel, please contact us at least 48 hours in advance\"},\"default\":false,\"limitEarlyBookingPolicy\":{\"enabled\":true,\"earliestBookingInMinutes\":43200},\"limitLateBookingPolicy\":{\"enabled\":true,\"latestBookingInMinutes\":180},\"bookAfterStartPolicy\":{\"enabled\":false},\"cancellationPolicy\":{\"enabled\":true,\"limitLatestCancellation\":true,\"latestCancellationInMinutes\":2880},\"reschedulePolicy\":{\"enabled\":false,\"limitLatestReschedule\":false,\"latestRescheduleInMinutes\":1440},\"waitlistPolicy\":{\"enabled\":true,\"capacity\":5,\"reservationTimeInMinutes\":30},\"participantsPolicy\":{\"enabled\":false,\"maxParticipantsPerBooking\":1}}}"
},
"eventTime": "2023-02-17T15:30:36.156858Z",
"triggeredByAnonymizeRequest": false
}