Get all orders of an order_group

GET /orders/group/@id

When you place an order at a shop or multiple shops, a order_group is created that bundles all one or multiple orders. Use this endpoint to query all the orders of an order_group.

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 An integer value

Example request 1 Valid order_group id

GET /orders/group/58 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 965831b214ca9306ca488fe48b4cb4ca8691b355fd5b49313ac1850cd90c9135ecb2213f79493f371d2301f91c55b522bf89629f111a315dc9e08aad0f63a4efcd29e8f75ef0c7002f8a3663d52d1be220644876d150bb4cfce5e1fde5c2271b6d577e90
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Field Type Description
id Int Id of the order group
orders [Order.simple] Array of Order.simple

Example response 1 Valid order_group id

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

{
    "id": 58,
    "orders": [
        {
            "id": 58,
            "status": "DECLINED",
            "valid": true,
            "order_nr": 12,
            "prices": {
                "price": {
                    "value": 21828,
                    "currency": "EUR"
                },
                "discount": {
                    "value": 0,
                    "currency": "EUR"
                },
                "warranty": {
                    "value": 0,
                    "currency": "EUR"
                },
                "delivery_cost": {
                    "value": 0,
                    "currency": "EUR"
                },
                "invoice_cost": {
                    "value": 0,
                    "currency": "EUR"
                },
                "sms_cost": {
                    "value": 0,
                    "currency": "EUR"
                },
                "transaction_cost": {
                    "value": 0,
                    "currency": "EUR"
                },
                "price_to_pay": {
                    "value": 21828,
                    "currency": "EUR"
                }
            },
            "payment_method": "payconiq",
            "checkout": {
                "method": "latch",
                "date": "2020-09-27",
                "time": "14:06",
                "latch_id": 17,
                "name": "Margot Sahin",
                "address": {
                    "street": "Jacquessingel",
                    "nr": "55",
                    "zipcode": "7181",
                    "city": "Waregem",
                    "country": "BE"
                }
            },
            "created_at": 1592307623,
            "shop": {
                "id": 137,
                "name": "Rise of the Buns",
                "address": {
                    "street": "Remylaan",
                    "nr": "34",
                    "zipcode": "9880",
                    "city": "Durbuy",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "payment_status": null,
            "joyn": null,
            "currency": "EUR"
        }
    ]
}
1.5.0 stable