API

OpeningHour

A store's regular opening hours.

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}/opening-hours load OK
PUT /v1/stores/{storeId}/opening-hours 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:

opening_hour, err := client.OpeningHour(nil).Load(map[string]any{"store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(opening_hour)
updated, err := client.OpeningHour(nil).Update(map[string]any{"store_id": "example", "COLLECTION": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

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

local opening_hour, err = client:OpeningHour():load({ store_id = "example" })
local updated, err = client:OpeningHour():update({ store_id = "example", COLLECTION = {} })

PHP

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

$opening_hour = $client->OpeningHour()->load(["store_id" => "example"]);
$updated = $client->OpeningHour()->update(["store_id" => "example", "COLLECTION" => []]);

Python

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

opening_hour = client.OpeningHour().load({"store_id": "example"})
updated = client.OpeningHour().update({"store_id": "example", "COLLECTION": {}})

Ruby

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

opening_hour = client.OpeningHour.load({ "store_id" => "example" })
updated = client.OpeningHour.update({ "store_id" => "example", "COLLECTION" => {} })

TypeScript

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

const opening_hour = await client.OpeningHour().load({ store_id: "example" })
const updated = await client.OpeningHour().update({ store_id: "example", COLLECTION: {} })

Fields

Field Type Required Description
COLLECTION object Yes Collection
DELIVERY object Yes Delivery

load

GET /v1/stores/{storeId}/opening-hours

Operation ID: GET/v1/stores/{storeId}/opening-hours.

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 object No
data.COLLECTION object Yes Opening Hours Entity
data.COLLECTION.FR array of object No
data.COLLECTION.FR[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.FR[].until string Yes End time of this period as HH:MM for example 13:00
data.COLLECTION.MO array of object No
data.COLLECTION.MO[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.MO[].until string Yes End time of this period as HH:MM for example 13:00
data.COLLECTION.SA array of object No
data.COLLECTION.SA[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.SA[].until string Yes End time of this period as HH:MM for example 13:00
data.COLLECTION.SU array of object No
data.COLLECTION.SU[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.SU[].until string Yes End time of this period as HH:MM for example 13:00
data.COLLECTION.TH array of object No
data.COLLECTION.TH[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.TH[].until string Yes End time of this period as HH:MM for example 13:00
data.COLLECTION.TU array of object No
data.COLLECTION.TU[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.TU[].until string Yes End time of this period as HH:MM for example 13:00
data.COLLECTION.WE array of object No
data.COLLECTION.WE[].from string Yes Start time of this period as HH:MM for example 09:30
data.COLLECTION.WE[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY object Yes Opening Hours Entity
data.DELIVERY.FR array of object No
data.DELIVERY.FR[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.FR[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY.MO array of object No
data.DELIVERY.MO[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.MO[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY.SA array of object No
data.DELIVERY.SA[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.SA[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY.SU array of object No
data.DELIVERY.SU[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.SU[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY.TH array of object No
data.DELIVERY.TH[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.TH[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY.TU array of object No
data.DELIVERY.TU[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.TU[].until string Yes End time of this period as HH:MM for example 13:00
data.DELIVERY.WE array of object No
data.DELIVERY.WE[].from string Yes Start time of this period as HH:MM for example 09:30
data.DELIVERY.WE[].until string Yes End time of this period as HH:MM for example 13:00
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}/opening-hours

Operation ID: PUT/v1/stores/{storeId}/opening-hours.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
COLLECTION object Yes Opening Hours Entity
COLLECTION.FR array of object No
COLLECTION.FR[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.FR[].until string Yes End time of this period as HH:MM for example 13:00
COLLECTION.MO array of object No
COLLECTION.MO[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.MO[].until string Yes End time of this period as HH:MM for example 13:00
COLLECTION.SA array of object No
COLLECTION.SA[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.SA[].until string Yes End time of this period as HH:MM for example 13:00
COLLECTION.SU array of object No
COLLECTION.SU[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.SU[].until string Yes End time of this period as HH:MM for example 13:00
COLLECTION.TH array of object No
COLLECTION.TH[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.TH[].until string Yes End time of this period as HH:MM for example 13:00
COLLECTION.TU array of object No
COLLECTION.TU[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.TU[].until string Yes End time of this period as HH:MM for example 13:00
COLLECTION.WE array of object No
COLLECTION.WE[].from string Yes Start time of this period as HH:MM for example 09:30
COLLECTION.WE[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY object Yes Opening Hours Entity
DELIVERY.FR array of object No
DELIVERY.FR[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.FR[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY.MO array of object No
DELIVERY.MO[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.MO[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY.SA array of object No
DELIVERY.SA[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.SA[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY.SU array of object No
DELIVERY.SU[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.SU[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY.TH array of object No
DELIVERY.TH[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.TH[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY.TU array of object No
DELIVERY.TU[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.TU[].until string Yes End time of this period as HH:MM for example 13:00
DELIVERY.WE array of object No
DELIVERY.WE[].from string Yes Start time of this period as HH:MM for example 09:30
DELIVERY.WE[].until string Yes End time of this period as HH:MM for example 13:00

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.
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