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.
IDs of the booking policies for which to retrieve the strictest rules for.
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.
curl -X GET \
'https://wixapis.com/bookings/v1/booking-policies/strictest' \
-H 'Authorization: <AUTH>'
{
"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
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.