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/13 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.2
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: 5293

{
    "id": 18,
    "orders": [
        {
            "id": 10,
            "status": "PENDING",
            "valid": true,
            "order_nr": 13,
            "prices": {
                "price": 17,
                "discount": 10,
                "warranty": 17,
                "delivery_cost": 11,
                "invoice_cost": 14,
                "sms_cost": 12,
                "transaction_cost": 12,
                "price_to_pay": 13,
                "price_with_discount": 13
            },
            "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": "..."
            },
            "shop": {
                "id": 12,
                "name": "Johnson Schiller PhD",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                }
            },
            "created_at": "2019-01-31 12:00:00",
            "joyn": {
                "points": 17,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending"
        },
        {
            "id": 12,
            "status": "PENDING",
            "valid": false,
            "order_nr": 10,
            "prices": {
                "price": 19,
                "discount": 14,
                "warranty": 10,
                "delivery_cost": 18,
                "invoice_cost": 12,
                "sms_cost": 13,
                "transaction_cost": 12,
                "price_to_pay": 10,
                "price_with_discount": 19
            },
            "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": "..."
            },
            "shop": {
                "id": 17,
                "name": "Ona Wilkinson Sr.",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                }
            },
            "created_at": "2019-01-31 12:00:00",
            "joyn": {
                "points": 10,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending"
        },
        {
            "id": 12,
            "status": "PENDING",
            "valid": false,
            "order_nr": 19,
            "prices": {
                "price": 17,
                "discount": 16,
                "warranty": 17,
                "delivery_cost": 18,
                "invoice_cost": 14,
                "sms_cost": 11,
                "transaction_cost": 13,
                "price_to_pay": 10,
                "price_with_discount": 13
            },
            "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": "..."
            },
            "shop": {
                "id": 12,
                "name": "Mrs. Kylie Emmerich Jr.",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                }
            },
            "created_at": "2019-01-31 12:00:00",
            "joyn": {
                "points": 15,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending"
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.2 stable