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

GET /orders/group/19 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.2.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

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

{
    "id": 14,
    "orders": [
        {
            "id": 11,
            "status": "PENDING",
            "valid": true,
            "order_nr": 10,
            "prices": {
                "price": {
                    "value": 11,
                    "currency": "EUR"
                },
                "discount": {
                    "value": 18,
                    "currency": "EUR"
                },
                "warranty": {
                    "value": 18,
                    "currency": "EUR"
                },
                "delivery_cost": {
                    "value": 18,
                    "currency": "EUR"
                },
                "invoice_cost": {
                    "value": 16,
                    "currency": "EUR"
                },
                "sms_cost": {
                    "value": 14,
                    "currency": "EUR"
                },
                "transaction_cost": {
                    "value": 11,
                    "currency": "EUR"
                },
                "price_to_pay": {
                    "value": 14,
                    "currency": "EUR"
                },
                "price_with_discount": {
                    "value": 12,
                    "currency": "EUR"
                }
            },
            "payment_method": "point_of_sale",
            "checkout": {
                "method": "delivery",
                "date": "2019-01-31",
                "time": "12:00",
                "end_time": "12:00",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE"
                },
                "notes": "...",
                "name": "...",
                "latch_id": 17
            },
            "shop": {
                "id": 18,
                "name": "Electa Jerde",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                },
                "currency": "EUR"
            },
            "created_at": 1657086088,
            "joyn": {
                "points": 12,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending",
            "currency": "EUR"
        },
        {
            "id": 16,
            "status": "PENDING",
            "valid": true,
            "order_nr": 13,
            "prices": {
                "price": {
                    "value": 19,
                    "currency": "EUR"
                },
                "discount": {
                    "value": 14,
                    "currency": "EUR"
                },
                "warranty": {
                    "value": 12,
                    "currency": "EUR"
                },
                "delivery_cost": {
                    "value": 13,
                    "currency": "EUR"
                },
                "invoice_cost": {
                    "value": 13,
                    "currency": "EUR"
                },
                "sms_cost": {
                    "value": 14,
                    "currency": "EUR"
                },
                "transaction_cost": {
                    "value": 14,
                    "currency": "EUR"
                },
                "price_to_pay": {
                    "value": 16,
                    "currency": "EUR"
                },
                "price_with_discount": {
                    "value": 14,
                    "currency": "EUR"
                }
            },
            "payment_method": "point_of_sale",
            "checkout": {
                "method": "delivery",
                "date": "2019-01-31",
                "time": "12:00",
                "end_time": "12:00",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE"
                },
                "notes": "...",
                "name": "...",
                "latch_id": 10
            },
            "shop": {
                "id": 12,
                "name": "Eleazar Spencer",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                },
                "currency": "EUR"
            },
            "created_at": 1657086088,
            "joyn": {
                "points": 17,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending",
            "currency": "EUR"
        },
        {
            "id": 11,
            "status": "PENDING",
            "valid": false,
            "order_nr": 12,
            "prices": {
                "price": {
                    "value": 18,
                    "currency": "EUR"
                },
                "discount": {
                    "value": 12,
                    "currency": "EUR"
                },
                "warranty": {
                    "value": 17,
                    "currency": "EUR"
                },
                "delivery_cost": {
                    "value": 17,
                    "currency": "EUR"
                },
                "invoice_cost": {
                    "value": 14,
                    "currency": "EUR"
                },
                "sms_cost": {
                    "value": 11,
                    "currency": "EUR"
                },
                "transaction_cost": {
                    "value": 18,
                    "currency": "EUR"
                },
                "price_to_pay": {
                    "value": 11,
                    "currency": "EUR"
                },
                "price_with_discount": {
                    "value": 15,
                    "currency": "EUR"
                }
            },
            "payment_method": "point_of_sale",
            "checkout": {
                "method": "delivery",
                "date": "2019-01-31",
                "time": "12:00",
                "end_time": "12:00",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE"
                },
                "notes": "...",
                "name": "...",
                "latch_id": 11
            },
            "shop": {
                "id": 15,
                "name": "Janick Kreiger",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                },
                "currency": "EUR"
            },
            "created_at": 1657086088,
            "joyn": {
                "points": 13,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending",
            "currency": "EUR"
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.2.0 stable