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

Query Parameters

Headers

[
 {
  // Reservation schema
 }
]

Get reservation

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

Path Parameters

Headers

{
    // Reservation schema
}

Create reservations

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

Path Parameters

Headers

Request Body

[
    {
        // Reservation schema
        ...
    }
]

Replace or create reservations

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

Path Parameters

Headers

Request Body

[
    {
        // Reservation schema
        ...
    }
]

Replace or create reservation

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

Path Parameters

Headers

Request Body

{
    // Reservation schema
}

Partial update of reservation

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

Path Parameters

Headers

Delete reservation

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

Path Parameters

Headers

Options reservations

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

Path Parameters

Headers

Options reservation

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

Path Parameters

Headers

Last updated