POST

Get Strictest Booking Policy


Retrieves the strictest version of each policy rule from a list of booking policies.

Returns a hypothetical bookingPolicy object that combines the strictest version of each rule. The id of the returned policy is null and no corresponding bookingPolicy object is created. To create a new policy, you can use Create Booking Policy.

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.
Endpoint
POST
https://www.wixapis.com/bookings/v1/booking-policies/strictest

Body Params
bookingPolicyIdsArray <string>Requiredformat GUIDmaxItems 100

IDs of the booking policies for which to retrieve the strictest rules for.

Response Object
bookingPolicyBookingPolicy

Hypothetical bookingPolicy object that combines the strictest version of each rule. bookingPolicy.id is null and the returned object isn't actually created. To create a new policy, you can use Create Booking Policy.

Retrieves a hypothetical `bookingPolicy` object that combines the strictest version of each rule.
Request
cURL
curl -X GET \ 'https://wixapis.com/bookings/v1/booking-policies/strictest' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "bookingPolicy": { "id": null, "revision": "1", "createdDate": "2023-02-16T10:46:17.420Z", "updatedDate": "2023-02-16T10:46:17.420Z", "name": "My custom policy", "customPolicyDescription": { "enabled": true, "description": "To cancel or reschedule, please contact us at least 24 hours in advance" }, "default": false, "limitEarlyBookingPolicy": { "enabled": true, "earliestBookingInMinutes": 43200 }, "limitLateBookingPolicy": { "enabled": true, "latestBookingInMinutes": 180 }, "bookAfterStartPolicy": { "enabled": false }, "cancellationPolicy": { "enabled": true, "limitLatestCancellation": true, "latestCancellationInMinutes": 1440 }, "reschedulePolicy": { "enabled": true, "limitLatestReschedule": true, "latestRescheduleInMinutes": 1440 }, "waitlistPolicy": { "enabled": true, "capacity": 10, "reservationTimeInMinutes": 30 }, "participantsPolicy": { "enabled": false, "maxParticipantsPerBooking": 1 } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?