Get all the latch locations that belong to a shop.

GET /company/shops/@id/latches/locations

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int Return all latch locations of the given shop

Example request 1

GET /company/shops/15/latches/locations HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5

Response

Array of company.LatchLocation: [company.LatchLocation]

company.LatchLocation

Field Type Description
machine_type String Determines which brand of latches will be at this location
name String A String value
address Address.simple An address
pickup_hours Week Settings per week
production_hours Week Settings per week
order_upfront Week Settings per week
max_orders MaxOrders Max order settings
id Int An integer value
shop_id Int An integer value
viresmo_shop_id String Optional. A String value
payment_settings Dictionary Optional. A dictionary with fields

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 34130

[
    {
        "machine_type": "viresmo",
        "name": "...",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE"
        },
        "pickup_hours": {
            "d1": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d2": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d3": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d4": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d5": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d6": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d7": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ]
        },
        "production_hours": {
            "d1": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d2": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d3": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d4": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d5": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d6": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d7": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ]
        },
        "order_upfront": {
            "d1": {
                "method": "x_days",
                "x_days": {
                    "days": 16,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 12,
                    "minutes": 18
                }
            },
            "d2": {
                "method": "x_days",
                "x_days": {
                    "days": 19,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 10,
                    "minutes": 18
                }
            },
            "d3": {
                "method": "x_days",
                "x_days": {
                    "days": 14,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 12,
                    "minutes": 15
                }
            },
            "d4": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 12,
                    "minutes": 18
                }
            },
            "d5": {
                "method": "x_days",
                "x_days": {
                    "days": 19,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 19,
                    "minutes": 14
                }
            },
            "d6": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 15,
                    "minutes": 17
                }
            },
            "d7": {
                "method": "x_days",
                "x_days": {
                    "days": 13,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 17,
                    "minutes": 11
                }
            }
        },
        "max_orders": {
            "items": [
                {
                    "max_per": "hour",
                    "max_amount": 15,
                    "days": {
                        "all": true,
                        "custom": [
                            14,
                            13,
                            19
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 19,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 15,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 11,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                },
                {
                    "max_per": "hour",
                    "max_amount": 14,
                    "days": {
                        "all": false,
                        "custom": [
                            10,
                            19,
                            18
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 13,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 16,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 15,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                },
                {
                    "max_per": "hour",
                    "max_amount": 15,
                    "days": {
                        "all": true,
                        "custom": [
                            10,
                            11,
                            17
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 13,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 10,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 14,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                }
            ]
        },
        "id": 14,
        "shop_id": 17,
        "viresmo_shop_id": "...",
        "payment_settings": {
            "allow_cash": false,
            "allow_online_payments": true,
            "allow_online_payments_targetprice": false,
            "allow_isop_targetprice": true,
            "allow_bank_transfer_payments": true,
            "allow_bank_transfer_payments_invoice": true,
            "bank_account_numbers": [
                {
                    "bank": "...",
                    "number": "..."
                },
                {
                    "bank": "...",
                    "number": "..."
                },
                {
                    "bank": "...",
                    "number": "..."
                }
            ]
        }
    },
    {
        "machine_type": "viresmo",
        "name": "...",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE"
        },
        "pickup_hours": {
            "d1": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d2": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d3": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d4": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d5": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d6": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d7": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ]
        },
        "production_hours": {
            "d1": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d2": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d3": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d4": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d5": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d6": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d7": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ]
        },
        "order_upfront": {
            "d1": {
                "method": "x_days",
                "x_days": {
                    "days": 13,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 19,
                    "minutes": 16
                }
            },
            "d2": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 13,
                    "minutes": 17
                }
            },
            "d3": {
                "method": "x_days",
                "x_days": {
                    "days": 13,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 11,
                    "minutes": 17
                }
            },
            "d4": {
                "method": "x_days",
                "x_days": {
                    "days": 13,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 15,
                    "minutes": 17
                }
            },
            "d5": {
                "method": "x_days",
                "x_days": {
                    "days": 16,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 18,
                    "minutes": 12
                }
            },
            "d6": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 10,
                    "minutes": 14
                }
            },
            "d7": {
                "method": "x_days",
                "x_days": {
                    "days": 16,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 11,
                    "minutes": 12
                }
            }
        },
        "max_orders": {
            "items": [
                {
                    "max_per": "hour",
                    "max_amount": 11,
                    "days": {
                        "all": true,
                        "custom": [
                            19,
                            12,
                            13
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 13,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 12,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 12,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                },
                {
                    "max_per": "hour",
                    "max_amount": 16,
                    "days": {
                        "all": false,
                        "custom": [
                            15,
                            17,
                            11
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 11,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 12,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 11,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                },
                {
                    "max_per": "hour",
                    "max_amount": 16,
                    "days": {
                        "all": false,
                        "custom": [
                            12,
                            14,
                            17
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 15,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 15,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 16,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                }
            ]
        },
        "id": 15,
        "shop_id": 14,
        "viresmo_shop_id": "...",
        "payment_settings": {
            "allow_cash": false,
            "allow_online_payments": true,
            "allow_online_payments_targetprice": false,
            "allow_isop_targetprice": false,
            "allow_bank_transfer_payments": false,
            "allow_bank_transfer_payments_invoice": false,
            "bank_account_numbers": [
                {
                    "bank": "...",
                    "number": "..."
                },
                {
                    "bank": "...",
                    "number": "..."
                },
                {
                    "bank": "...",
                    "number": "..."
                }
            ]
        }
    },
    {
        "machine_type": "viresmo",
        "name": "...",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE"
        },
        "pickup_hours": {
            "d1": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d2": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d3": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d4": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d5": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d6": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d7": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ]
        },
        "production_hours": {
            "d1": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d2": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d3": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d4": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d5": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d6": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ],
            "d7": [
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                },
                {
                    "start": "12:00",
                    "end": "12:00"
                }
            ]
        },
        "order_upfront": {
            "d1": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 18,
                    "minutes": 11
                }
            },
            "d2": {
                "method": "x_days",
                "x_days": {
                    "days": 16,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 15,
                    "minutes": 17
                }
            },
            "d3": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 11,
                    "minutes": 11
                }
            },
            "d4": {
                "method": "x_days",
                "x_days": {
                    "days": 17,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 10,
                    "minutes": 17
                }
            },
            "d5": {
                "method": "x_days",
                "x_days": {
                    "days": 19,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 14,
                    "minutes": 15
                }
            },
            "d6": {
                "method": "x_days",
                "x_days": {
                    "days": 11,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 13,
                    "minutes": 13
                }
            },
            "d7": {
                "method": "x_days",
                "x_days": {
                    "days": 10,
                    "close_at": "12:00"
                },
                "x_time": {
                    "hours": 17,
                    "minutes": 14
                }
            }
        },
        "max_orders": {
            "items": [
                {
                    "max_per": "hour",
                    "max_amount": 15,
                    "days": {
                        "all": true,
                        "custom": [
                            14,
                            15,
                            13
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 11,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 10,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 17,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                },
                {
                    "max_per": "hour",
                    "max_amount": 12,
                    "days": {
                        "all": false,
                        "custom": [
                            18,
                            10,
                            11
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 16,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 15,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 15,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                },
                {
                    "max_per": "hour",
                    "max_amount": 17,
                    "days": {
                        "all": false,
                        "custom": [
                            14,
                            10,
                            11
                        ]
                    },
                    "intervals": [
                        {
                            "max_amount": 19,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 11,
                            "start": "12:00",
                            "end": "12:00"
                        },
                        {
                            "max_amount": 10,
                            "start": "12:00",
                            "end": "12:00"
                        }
                    ]
                }
            ]
        },
        "id": 11,
        "shop_id": 19,
        "viresmo_shop_id": "...",
        "payment_settings": {
            "allow_cash": true,
            "allow_online_payments": false,
            "allow_online_payments_targetprice": true,
            "allow_isop_targetprice": false,
            "allow_bank_transfer_payments": true,
            "allow_bank_transfer_payments_invoice": false,
            "bank_account_numbers": [
                {
                    "bank": "...",
                    "number": "..."
                },
                {
                    "bank": "...",
                    "number": "..."
                },
                {
                    "bank": "...",
                    "number": "..."
                }
            ]
        }
    }
]
This is a development version Do not use this version in production
1.10.0 development