API

KitchenSection

A store's kitchen sections.

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}/sections create No Content
GET /v1/stores/{storeId}/sections list OK
DELETE /v1/stores/{storeId}/sections/{sectionId} remove No Content
PUT /v1/stores/{storeId}/sections/{sectionId} update No Content

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:

kitchen_sections, err := client.KitchenSection(nil).List(map[string]any{"store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(kitchen_sections)
created, err := client.KitchenSection(nil).Create(map[string]any{"store_id": "example", "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.KitchenSection(nil).Update(map[string]any{"id": "example_id", "store_id": "example", "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.KitchenSection(nil).Remove(map[string]any{"id": "example_id", "store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local kitchen_sections, err = client:KitchenSection():list({ store_id = "example" })
local created, err = client:KitchenSection():create({ store_id = "example", name = "example" })
local updated, err = client:KitchenSection():update({ id = "example_id", store_id = "example", name = "example" })
local removed, err = client:KitchenSection():remove({ id = "example_id", store_id = "example" })

PHP

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

$kitchen_sections = $client->KitchenSection()->list(["store_id" => "example"]);
$created = $client->KitchenSection()->create(["store_id" => "example", "name" => "example"]);
$updated = $client->KitchenSection()->update(["id" => "example_id", "store_id" => "example", "name" => "example"]);
$client->KitchenSection()->remove(["id" => "example_id", "store_id" => "example"]);

Python

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

kitchen_sections = client.KitchenSection().list({"store_id": "example"})
created = client.KitchenSection().create({ "store_id": "example", "name": "example" })
updated = client.KitchenSection().update({"id": "example_id", "store_id": "example", "name": "example"})
client.KitchenSection().remove({"id": "example_id", "store_id": "example"})

Ruby

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

kitchen_sections = client.KitchenSection.list({ "store_id" => "example" })
created = client.KitchenSection.create({ "store_id" => "example", "name" => "example" })
updated = client.KitchenSection.update({ "id" => "example_id", "store_id" => "example", "name" => "example" })
client.KitchenSection.remove({ "id" => "example_id", "store_id" => "example" })

TypeScript

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

const kitchen_sections = await client.KitchenSection().list({ store_id: "example" })
const created = await client.KitchenSection().create({ store_id: "example", name: "example" })
const updated = await client.KitchenSection().update({ id: "example_id", store_id: "example", name: "example" })
await client.KitchenSection().remove({ id: "example_id", store_id: "example" })

Fields

Field Type Required Description
id string Yes Unique identifier for the section
name string Yes Section Name

create

POST /v1/stores/{storeId}/sections

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

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
name string Yes Section Name

Responses

204: No Content
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.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
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}/sections

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

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 and object 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.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
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

remove

DELETE /v1/stores/{storeId}/sections/{sectionId}

Operation ID: DELETE/v1/stores/{storeId}/sections/{sectionId}.

Authentication: oauth2 (AccessToken).

Parameters

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

Responses

204: No Content
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.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
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}/sections/{sectionId}

Operation ID: PUT/v1/stores/{storeId}/sections/{sectionId}.

Authentication: oauth2 (AccessToken).

Parameters

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

Request body

application/json

Property Type Required Description
name string Yes Section Name

Responses

204: No Content
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.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
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