Reservation

Reservation schema

id long? Reservation ID - cannot be null in PUT/PATCH methods πŸ“Ά EQUALS,ENUM

_branchId integer Branch πŸ“Ά EQUALS,ENUM

_cloudId integer Cloud​

_customerId long Customer πŸ“Ά EQUALS,ENUM

_employeeId long Employee πŸ“Ά EQUALS,ENUM

_tableId long Table πŸ“Ά EQUALS,ENUM

created timestamp? Reservation created date and time πŸ“Ά EQUALS, ENUM, NUMBER πŸ”½ BOTH

endDate timestamp End date and time πŸ“Ά EQUALS, ENUM, NUMBER πŸ”½ BOTH

flags integer Reservation flags πŸ“Ά BITS

note string? Reservation note

seats short Number of table seats - minimum value is 1, maximum value must be less or equal to the number of seats in the Table entity (Table.seats).

startDate timestamp Start date and time πŸ“Ά EQUALS, ENUM, NUMBER πŸ”½ BOTH

status enum Reservation status

versionDate timestamp? Last modification date and time πŸ“Ά EQUALS, ENUM, NUMBER πŸ”½ BOTH

Reservation.status (enum)

// representation like string
NEW, CONFIRMED, CANCELLED

JSON response

{
"_branchId": <long>,
"_cloudId": <integer>,
"_customerId": <long>,
"_employeeId": <long>,
"_tableId": <long>,
"created": <timestamp>,
"endDate": <timestamp>,
"flags": <integer>,
"id": <long>,
"note": <string>,
"seats": <short>,
"startDate": <timestamp>,
"status": <enum>,
"versionDate": <timestamp>
}

get
Get reservations

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations
Request
Response
Request
Path Parameters
cloudId
required
integer
​
Headers
If-None-Match
optional
string
ETag to return results only if changed.
Authorization
required
string
Bearer accessToken
Query Parameters
sort
optional
string
​
filter
optional
string
​
page
optional
integer
​
limit
optional
integer
​
Response
200: OK
[
{
// Reservation schema
}
]

get
Get reservation

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId
Request
Response
Request
Path Parameters
reservationId
required
integer
​
cloudId
required
integer
​
Headers
If-None-Match
optional
string
ETag to return results only if changed.
Authorization
required
string
Bearer accessToken
Response
200: OK
{
// Reservation schema
}

post
Create reservations

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations
Request
Response
Request
Path Parameters
cloudId
required
integer
​
Headers
Authorization
required
string
Bearer accessToken
Body Parameters
required
array
Array of reservations. Maximum size 100.
Response
200: OK
[
{
// Reservation schema
...
}
]
400: Bad Request
​

put
Replace or create reservations

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations
Request
Response
Request
Path Parameters
cloudId
required
integer
​
Headers
If-Match
required
string
ETag to update only if not changed.
Authorization
required
string
Bearer accessToken
Body Parameters
required
array
Array of reservation. Maximum size 100.
Response
200: OK
[
{
// Reservation schema
...
}
]
400: Bad Request
​

put
Replace or create reservation

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId
Request
Response
Request
Path Parameters
reservationId
required
integer
​
cloudId
required
integer
​
Headers
If-Match
required
string
ETag to update only if not changed.
Authorization
required
string
Bearer accessToken
Body Parameters
required
object
Reservation
Response
200: OK
{
// Reservation schema
}
400: Bad Request
​

patch
Partial update of reservation

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId
Request
Response
Request
Path Parameters
reservationId
required
integer
​
cloudId
required
integer
​
Headers
If-Match
required
string
ETag to update only if not changed.
Authorization
required
string
Bearer accessToken
Response
200: OK
​
400: Bad Request
​

delete
Delete reservation

https://api.dotykacka.cz/v2/clouds/:cloudId/reservation/:reservationId
Request
Response
Request
Path Parameters
reservationId
required
integer
​
cloudId
required
integer
​
Headers
If-Match
optional
string
ETag ignored (temporarily) when deleting an entity.
Authorization
required
string
Bearer accessToken
Response
200: OK
​

options
Options reservations

https://api.dotykacka.cz/v2/clouds/:cloudId/tables
Request
Response
Request
Path Parameters
cloudId
required
integer
​
Headers
Authorization
required
string
Bearer accessToken
Response
200: OK
​

options
Options reservation

https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId
Request
Response
Request
Path Parameters
reservationId
required
integer
​
cloudId
required
integer
​
Headers
Authorization
required
string
Bearer accessToken
Response
200: OK
​