post https://spaces.nexudus.com/api/apps/marketplaceapplications/book
Creates a booking for a given resource, start date and duration.
Error codes
Error Code | Description |
---|---|
INVALID_INTERVAL | You cannot make a booking of this length. |
BOOKING_CONFLICT | The resource is already booked. |
EVENT_CONFLICT | There is an event already |
RESOURCE_FULL | The resource is fully booked. |
AREA_FULL | The area this resource is in is now fully booked. |
TOO_MANY_VISITORS | You have registered too many visitors |
NO_PAST_BOOKINGS | Bookings ending in the past are not allowed by this location. |
HARD_LIMIT_WEEK | This customer has made too many bookings this week. |
HARD_LIMIT_MONTH | This customer has made too many bookings this month. |
INVALID_TARIFF | This customer is not in the correct plan to book this resource. |
INVALID_TEAM | This customer is not in the correct team to book this resource. |
NOT_AVAILABLE | This resource is not available. |
START_TIME_TOO_EARLY | You cannot book this resource this far in advance. |
START_TIME_TOO_LATE | You cannot book this resource this late. |
TOO_LONG | The booking is too long. |
TOO_SHORT | The booking is too short |
NO_RETURN_POLICY | You cannot book this resource again this soon. |
NO_CREDIT | You cannot book this resource because you do not have enough credit. |
CUSTOM_MESSAGE | The booking was rejected based on a custom message. |
INVALID_DESK | The desk id passed in was not found or is not connected to this resource. |