API

Floor

A store's floors, for reservations.

Operations

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

Method Route SDK operation Returns
GET /v1/stores/{storeId}/reservations/floors list 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:

floors, err := client.Floor(nil).List(map[string]any{"store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(floors)

Lua

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

local floors, err = client:Floor():list({ store_id = "example" })

PHP

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

$floors = $client->Floor()->list(["store_id" => "example"]);

Python

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

floors = client.Floor().list({"store_id": "example"})

Ruby

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

floors = client.Floor.list({ "store_id" => "example" })

TypeScript

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

const floors = await client.Floor().list({ store_id: "example" })

Fields

Field Type Required Description
floor_id integer Yes Unique identifier of the floor/area
name string Yes Display name of the floor/area

list

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

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

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Responses

200: OK

application/json

Property Type Required Description
data array of object No
data[].floor_id integer Yes Unique identifier of the floor/area
data[].name string Yes Display name of the floor/area
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