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/1155 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer c1a11f68c258bcde56703fb80a1f4de7bcd3c8a35703465dc12312657de0e3ea427c0a6bd3ac1da55efc1526a4a2cab347232c74af6c91f4fb936db6794f6494571108854f59b93fc137dda9611f23e17aafbdea9456db5b2508523fc8caa287d573d12b
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: 2095

{
    "id": 1155,
    "orders": [
        {
            "id": 1155,
            "status": "DELETED_BY_SHOP",
            "valid": true,
            "order_nr": 0,
            "prices": {
                "price": {
                    "value": 9383,
                    "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": 9383,
                    "currency": "EUR"
                }
            },
            "payment_method": "pesopay_gcash",
            "checkout": {
                "method": "takeout",
                "date": "2023-11-21",
                "time": "01:40"
            },
            "created_at": 1618995629,
            "shop": {
                "id": 2826,
                "name": "The Cookie Cook",
                "address": {
                    "street": "Lefebvrering",
                    "nr": "17",
                    "zipcode": "5300",
                    "city": "Beaumont",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": false,
                "currency": "EUR"
            },
            "payment_status": null,
            "joyn": null,
            "currency": "EUR"
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable