Booking Policy Created


Triggered when a booking policy is created.

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Event BodyEvent Body Event data is received as a JSON Web Token (JWT). It may be delayed. Be sure to verify the data was sent by Wix.
Event Data
idstring

Unique event ID. Allows clients to ignore duplicate webhooks.


entityFqdnstring

Fully qualified domain name of the entity associated with the event. Expected wix.bookings.v1.booking_policy.


slugstring

Event name. Expected created.


entityIdstring

ID of the entity associated with the event.


eventTimestringformat date-time

Event timestamp.


triggeredByAnonymizeRequestboolean

Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).


originatedFromstring

If present, indicates the action that triggered the event.


createdEventCreatedEvent

Event information.

Event Body

The data payload will include the following as an encoded JWT:

JSON
{ "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 } } }

BookingPolicyCreated
JSON
{ "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" }
Did this help?