コンテンツにスキップ

list_delivery_hours

GET
/api/v1/delivery-hours
curl --request GET \
--url https://example.com/api/v1/delivery-hours \
--header 'Authorization: Bearer <token>'

Every delivery-hours schedule and the default time zone

Media typeapplication/json

Every schedule, and the zone a node with no zoned folder above it keeps time in.

object
default_time_zone

IANA name, or null for UTC.

string | null
schedules
required
Array<object>

One named schedule, as stored and as the API returns it (ADR-226 decision 3).

object
days
required

ISO weekdays the window opens on, 1 = Monday .. 7 = Sunday. Never empty.

Array<integer>
enabled
required

Switched off, it covers nothing and every node it named is open again.

boolean
end_minute
required
integer format: int32
group_ids
required

Folders it applies to, each with everything beneath it.

Array<string>
id
required
string format: uuid
name
required
string
start_minute
required

Minutes after local midnight. A start later than the end spans midnight, and the window belongs to the day it opens on; equal start and end means the whole of each listed day.

integer format: int32
Examplegenerated
{
"default_time_zone": "example",
"schedules": [
{
"days": [
1
],
"enabled": true,
"end_minute": 1,
"group_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"start_minute": 1
}
]
}

No valid bearer token

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageSystem

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

This core has no write side (skeleton mode)

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}