Triggered when a booking policy is created.
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 created
.
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_created",
"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": "c1170ba2-af62-4ebc-89f6-5fa044c8d7d2",
"entityFqdn": "wix.bookings.v1.booking_policy",
"slug": "created",
"entityId": "6806bf45-1d65-4983-a607-6cd277ec732a",
"createdEvent": {
"entityAsJson": "{\"id\":\"6806bf45-1d65-4983-a607-6cd277ec732a\",\"revision\":\"1\",\"createdDate\":\"2023-02-16T10:48:59.975Z\",\"updatedDate\":\"2023-02-16T10:48:59.975Z\",\"name\":\"My custom policy 2\",\"customPolicyDescription\":{\"enabled\":false,\"description\":\"\"},\"default\":false,\"limitEarlyBookingPolicy\":{\"enabled\":true,\"earliestBookingInMinutes\":43200},\"limitLateBookingPolicy\":{\"enabled\":true,\"latestBookingInMinutes\":180},\"bookAfterStartPolicy\":{\"enabled\":false},\"cancellationPolicy\":{\"enabled\":false,\"limitLatestCancellation\":false,\"latestCancellationInMinutes\":1440},\"reschedulePolicy\":{\"enabled\":false,\"limitLatestReschedule\":false,\"latestRescheduleInMinutes\":1440},\"waitlistPolicy\":{\"enabled\":false,\"capacity\":10,\"reservationTimeInMinutes\":10},\"participantsPolicy\":{\"enabled\":false,\"maxParticipantsPerBooking\":1}}"
},
"eventTime": "2023-02-16T10:49:00.088624Z",
"triggeredByAnonymizeRequest": false,
"entityEventSequence": "1"
}