Read a single customer with their settings.
Request
GET /customers/:id
Parameters
id
: The customer identifier
Status codes
200
on success404
if no customer with the givenid
was found
Response properties
id
: The customer identifier.name
: The customer's name.price_group
: The customer's price group.delivery_days
: An object where keys are numbers0
(Sunday) to6
(Saturday) and values are objects with the following properties.lead_days
: The number of days that customers have to order in advance. Use0
for same day delivery.cutoff
: The time until when orders have to be placed in the formatHH:mm
. After this timelead_days
is incremented by one.
delivery_date_overrides
: An object where keys are ISO dates (e.g. 2023-12-26) and values are objects with the following properties.lead_days
: The number of days that customers have to order in advance. Use0
for same day delivery.cutoff
: The time until when orders have to be placed in the formatHH:mm
. After this timelead_days
is incremented by one.
dates_with_no_delivery
: An array of dates in ISO date format. Customers cannot send orders for these dates.
Example response
{
"id": "CS334002",
"name": "Bar in Zug",
"price_group": "group-1",
"delivery_days": {
"1": { "lead_days": 3 },
"2": { "lead_days": 1, "cutoff": "11:00" },
"3": { "lead_days": 1, "cutoff": "11:00" },
"4": { "lead_days": 1, "cutoff": "11:00" },
"5": { "lead_days": 1, "cutoff": "11:00" }
},
"delivery_date_overrides": {
"2023-12-27": {
"lead_days": 4,
"cutoff": "16:00"
}
},
"dates_with_no_delivery": ["2023-12-25"]
}