API

Reservation

A table reservation: list, create, get or update one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /v1/stores/{storeId}/reservations create Created
GET /v1/stores/{storeId}/reservations list OK
GET /v1/stores/{storeId}/reservations/{reservationId} load OK
PUT /v1/stores/{storeId}/reservations/{reservationId} update OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

reservations, err := client.Reservation(nil).List(map[string]any{"store_id": "example", "date": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(reservations)
reservation, err := client.Reservation(nil).Load(map[string]any{"id": "example_id", "store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(reservation)
created, err := client.Reservation(nil).Create(map[string]any{"store_id": "example", "date": "example", "time": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.Reservation(nil).Update(map[string]any{"id": "example_id", "store_id": "example", "date": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local reservations, err = client:Reservation():list({ store_id = "example", date = "example" })
local reservation, err = client:Reservation():load({ id = "example_id", store_id = "example" })
local created, err = client:Reservation():create({ store_id = "example", date = "example", time = "example" })
local updated, err = client:Reservation():update({ id = "example_id", store_id = "example", date = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$reservations = $client->Reservation()->list(["store_id" => "example", "date" => "example"]);
$reservation = $client->Reservation()->load(["id" => "example_id", "store_id" => "example"]);
$created = $client->Reservation()->create(["store_id" => "example", "date" => "example", "time" => "example"]);
$updated = $client->Reservation()->update(["id" => "example_id", "store_id" => "example", "date" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

reservations = client.Reservation().list({"store_id": "example", "date": "example"})
reservation = client.Reservation().load({"id": "example_id", "store_id": "example"})
created = client.Reservation().create({ "store_id": "example", "date": "example", "time": "example" })
updated = client.Reservation().update({"id": "example_id", "store_id": "example", "date": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

reservations = client.Reservation.list({ "store_id" => "example", "date" => "example" })
reservation = client.Reservation.load({ "id" => "example_id", "store_id" => "example" })
created = client.Reservation.create({ "store_id" => "example", "date" => "example", "time" => "example" })
updated = client.Reservation.update({ "id" => "example_id", "store_id" => "example", "date" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const reservations = await client.Reservation().list({ store_id: "example", date: "example" })
const reservation = await client.Reservation().load({ id: "example_id", store_id: "example" })
const created = await client.Reservation().create({ store_id: "example", date: "example", time: "example" })
const updated = await client.Reservation().update({ id: "example_id", store_id: "example", date: "example" })

Fields

Field Type Required Description
createdAt string No Created At
currentBookingType string No Current Booking Type
customer_id string No Customer Id
date string No Booking date (YYYY-MM-DD)
email string No Email
firstname string No Firstname
host string No Store host
id string Yes Booking id
lastname string No Lastname
mergeDetails object No Merged (child) tables attached to this booking
merged_table_ids array No Child table ids to merge.
notes string No Notes
order_type integer No Order Type
people integer No Party size
people_seated integer No People Seated
phone string No Phone
prebooked integer No Prebooked
previousBookingType string No Previous Booking Type
product_id integer No Product Id
status string No Booking status (for example
storeId integer No Store id (config.id)
tableName string No Primary table display name
table_id integer No Primary table id
table_status integer No Internal table status
time string No Booking time
total_price number No Total Price
updatedAt string No Updated At

create

POST /v1/stores/{storeId}/reservations

Operation ID: POST/v1/stores/{storeId}/reservations.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
date string Yes Booking date (YYYY-MM-DD). Required.
email string No
firstname string No
lastname string No
notes string No
people integer No Party size.
phone string No
time string Yes Booking time. Required. Must match one of the store's configured slots (see GET reservations/slots).

Responses

201: Created

application/json

Property Type Required Description
data object No Reservation Entity
data.createdAt string No
data.currentBookingType string No
data.customer_id string No
data.date string No Booking date (YYYY-MM-DD)
data.email string No
data.firstname string No
data.host string No Store host
data.id string Yes Booking id
data.lastname string No
data.mergeDetails object No Merged (child) tables attached to this booking
data.mergeDetails.childTableIds array of integer No
data.notes string No
data.order_type integer No
data.people integer No Party size
data.people_seated integer No
data.phone string No
data.prebooked integer No
data.previousBookingType string No
data.product_id integer No
data.status string No Booking status (for example CONFIRM, COMPLETED, CANCELED)
data.storeId integer No Store id (config.id)
data.tableName string No Primary table display name
data.table_id integer No Primary table id
data.table_status integer No Internal table status
data.time string No Booking time
data.total_price number No
data.updatedAt string No
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

list

GET /v1/stores/{storeId}/reservations

Operation ID: GET/v1/stores/{storeId}/reservations.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
date query string Yes Required. Business day (YYYY-MM-DD) to list bookings for.
storeId path string Yes Store Identifier

Responses

200: OK

application/json

Property Type Required Description
data array of object No
data[].createdAt string No
data[].currentBookingType string No
data[].customer_id string No
data[].date string No Booking date (YYYY-MM-DD)
data[].email string No
data[].firstname string No
data[].host string No Store host
data[].id string Yes Booking id
data[].lastname string No
data[].mergeDetails object No Merged (child) tables attached to this booking
data[].mergeDetails.childTableIds array of integer No
data[].notes string No
data[].order_type integer No
data[].people integer No Party size
data[].people_seated integer No
data[].phone string No
data[].prebooked integer No
data[].previousBookingType string No
data[].product_id integer No
data[].status string No Booking status (for example CONFIRM, COMPLETED, CANCELED)
data[].storeId integer No Store id (config.id)
data[].tableName string No Primary table display name
data[].table_id integer No Primary table id
data[].table_status integer No Internal table status
data[].time string No Booking time
data[].total_price number No
data[].updatedAt string No
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

load

GET /v1/stores/{storeId}/reservations/{reservationId}

Operation ID: GET/v1/stores/{storeId}/reservations/{reservationId}.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
reservationId path string Yes
storeId path string Yes Store Identifier

Responses

200: OK

application/json

Property Type Required Description
data object No Reservation Entity
data.createdAt string No
data.currentBookingType string No
data.customer_id string No
data.date string No Booking date (YYYY-MM-DD)
data.email string No
data.firstname string No
data.host string No Store host
data.id string Yes Booking id
data.lastname string No
data.mergeDetails object No Merged (child) tables attached to this booking
data.mergeDetails.childTableIds array of integer No
data.notes string No
data.order_type integer No
data.people integer No Party size
data.people_seated integer No
data.phone string No
data.prebooked integer No
data.previousBookingType string No
data.product_id integer No
data.status string No Booking status (for example CONFIRM, COMPLETED, CANCELED)
data.storeId integer No Store id (config.id)
data.tableName string No Primary table display name
data.table_id integer No Primary table id
data.table_status integer No Internal table status
data.time string No Booking time
data.total_price number No
data.updatedAt string No
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

update

PUT /v1/stores/{storeId}/reservations/{reservationId}

Operation ID: PUT/v1/stores/{storeId}/reservations/{reservationId}.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
reservationId path string Yes
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
date string No Booking date (YYYY-MM-DD).
email string No
firstname string No
lastname string No
merged_table_ids array of integer No Child table ids to merge. Empty array unmerges; omit to leave unchanged.
notes string No
people integer No
phone string No
status enum: confirmed, completed, cancelled No Lifecycle transition. confirmed confirms the booking; completed and cancelled free the table.
table_id integer No Assign the booking to a table (seats it: table_status=1, currentBookingType=seated). Validated against the store and checked for availability; date required.
time string No Booking time.

Responses

200: OK

application/json

Property Type Required Description
data object No Reservation Entity
data.createdAt string No
data.currentBookingType string No
data.customer_id string No
data.date string No Booking date (YYYY-MM-DD)
data.email string No
data.firstname string No
data.host string No Store host
data.id string Yes Booking id
data.lastname string No
data.mergeDetails object No Merged (child) tables attached to this booking
data.mergeDetails.childTableIds array of integer No
data.notes string No
data.order_type integer No
data.people integer No Party size
data.people_seated integer No
data.phone string No
data.prebooked integer No
data.previousBookingType string No
data.product_id integer No
data.status string No Booking status (for example CONFIRM, COMPLETED, CANCELED)
data.storeId integer No Store id (config.id)
data.tableName string No Primary table display name
data.table_id integer No Primary table id
data.table_status integer No Internal table status
data.time string No Booking time
data.total_price number No
data.updatedAt string No
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time