Bookings
Toggle Online Bookings
Pause or resume online bookings for the restaurant. When paused=true, all online booking
channels are disabled. This is a global toggle — it affects the entire restaurant, not
individual time slots or dining areas.
Authorization
bearerAuth AuthorizationBearer <token>
Supports two token types:
- Restaurant tokens — API tokens with
restaurant-apiability, issued per restaurant. - User tokens — Personal access tokens with
mobile-accessability (e.g. for the mobile app). When managing multiple restaurants, includeX-Restaurant-Id: <id>header.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
paused*boolean
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://devrms.tabdevx.com/api/restaurant/bookings/availability-pause" \ -H "Content-Type: application/json" \ -d '{ "paused": true }'{
"data": {
"allow_online_bookings": false,
"paused": true
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"message": "The given data was invalid.",
"errors": {
"date": [
"The date field is required."
],
"adults": [
"The adults must be at least 1."
]
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}