Read a single customer with their settings.
Request
GET /customers/:id
Parameters
id: The customer identifier
Status codes
200on success404if no customer with the givenidwas 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. Use0for same day delivery.cutoff: The time until when orders have to be placed in the formatHH:mm. After this timelead_daysis 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. Use0for same day delivery.cutoff: The time until when orders have to be placed in the formatHH:mm. After this timelead_daysis 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"]
}