Reservation

Reservation schema

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

_branchId integer Branch ID šŸ“¶ EQUALS,ENUM

_cloudId integer Cloud ID

_customerId long Customer ID šŸ“¶ EQUALS,ENUM

_employeeId long Employee ID šŸ“¶ EQUALS,ENUM

_tableId long Table ID šŸ“¶ 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 reservations

GET https://api.dotykacka.cz/v2/clouds/:cloudId/reservations

Path Parameters

NameTypeDescription

cloudId*

integer

Query Parameters

NameTypeDescription

sort

string

filter

string

page

integer

limit

integer

Headers

NameTypeDescription

If-None-Match

string

ETag to return results only if changed.

Authorization*

string

Bearer accessToken

[
 {
  // Reservation schema
 }
]

Get reservation

GET https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId

Path Parameters

NameTypeDescription

reservationId*

integer

cloudId*

integer

Headers

NameTypeDescription

If-None-Match

string

ETag to return results only if changed.

Authorization*

string

Bearer accessToken

{
    // Reservation schema
}

Create reservations

POST https://api.dotykacka.cz/v2/clouds/:cloudId/reservations

Path Parameters

NameTypeDescription

cloudId*

integer

Headers

NameTypeDescription

Authorization*

string

Bearer accessToken

Request Body

NameTypeDescription

array

Array of reservations. Maximum size 100.

[
    {
        // Reservation schema
        ...
    }
]

Replace or create reservations

PUT https://api.dotykacka.cz/v2/clouds/:cloudId/reservations

Path Parameters

NameTypeDescription

cloudId*

integer

Headers

NameTypeDescription

If-Match

string

ETag to update only if not changed.

Authorization*

string

Bearer accessToken

Request Body

NameTypeDescription

array

Array of reservation. Maximum size 100.

[
    {
        // Reservation schema
        ...
    }
]

Replace or create reservation

PUT https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId

Path Parameters

NameTypeDescription

reservationId*

integer

cloudId*

integer

Headers

NameTypeDescription

If-Match

string

ETag to update only if not changed.

Authorization*

string

Bearer accessToken

Request Body

NameTypeDescription

object

Reservation

{
    // Reservation schema
}

Partial update of reservation

PATCH https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId

Path Parameters

NameTypeDescription

reservationId*

integer

cloudId*

integer

Headers

NameTypeDescription

If-Match*

string

ETag to update only if not changed.

Authorization*

string

Bearer accessToken

Delete reservation

DELETE https://api.dotykacka.cz/v2/clouds/:cloudId/reservation/:reservationId

Path Parameters

NameTypeDescription

reservationId*

integer

cloudId*

integer

Headers

NameTypeDescription

If-Match

string

ETag ignored (temporarily) when deleting an entity.

Authorization*

string

Bearer accessToken

Options reservations

OPTIONS https://api.dotykacka.cz/v2/clouds/:cloudId/tables

Path Parameters

NameTypeDescription

cloudId*

integer

Headers

NameTypeDescription

Authorization*

string

Bearer accessToken

Options reservation

OPTIONS https://api.dotykacka.cz/v2/clouds/:cloudId/reservations/:reservationId

Path Parameters

NameTypeDescription

reservationId*

integer

cloudId*

integer

Headers

NameTypeDescription

Authorization*

string

Bearer accessToken

Last updated