DELETE

Delete Booking Policy


Deletes a booking policy.

You can't delete the default policy without setting a different policy as default first.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/bookings/v1/booking-policies/{bookingPolicyId}

Path Params
bookingPolicyIdstringRequired

ID of the booking policy to delete.

Response Object
Returns an empty object.
Delete a `bookingPolicy` object.
Request
cURL
curl -X DELETE \ 'https://wixapis.com/bookings/v1/booking-policies/6806bf45-1d65-4983-a607-6cd277ec732a' \ -H 'Authorization: <AUTH>' \ -d '{ "revision": "2" }'
Response
JSON
{}
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?