Post

Lock


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Deprecation Notice:

This endpoint will be removed on December 31, 2024.

Lock a session to prevent bookings.

When invoking Lock with a sessionId, the session can no longer be booked or checked out unless the returned key is passed in the request. Lock returns a key that can also be used with Unlock to re-enable booking and checkout for the given session.

Once a session is locked:

  • When calling Is Available, the returned value of the available property is false.
  • Calling Book or Checkout will fail unless the correct key is passed in the request.

Permissions This endpoint requires the Manage Bookings permission scope.

Endpoint
POST
https://www.wixapis.com/bookings/v1/availability/lock

Was this helpful?
Yes
No