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/15 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.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: 5632

{
    "id": 14,
    "orders": [
        {
            "id": 12,
            "status": "PENDING",
            "valid": true,
            "order_nr": 16,
            "prices": {
                "price": 16,
                "discount": 19,
                "warranty": 17,
                "delivery_cost": 14,
                "invoice_cost": 16,
                "sms_cost": 16,
                "transaction_cost": 13,
                "price_to_pay": 11,
                "price_with_discount": 11
            },
            "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": 15
            },
            "shop": {
                "id": 16,
                "name": "Prof. Gerson Bins Sr.",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                },
                "currency": "EUR"
            },
            "created_at": 1657086115,
            "joyn": {
                "points": 13,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending",
            "currency": "EUR"
        },
        {
            "id": 18,
            "status": "PENDING",
            "valid": false,
            "order_nr": 17,
            "prices": {
                "price": 16,
                "discount": 14,
                "warranty": 16,
                "delivery_cost": 19,
                "invoice_cost": 10,
                "sms_cost": 16,
                "transaction_cost": 13,
                "price_to_pay": 14,
                "price_with_discount": 16
            },
            "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": 12,
                "name": "Jazmin Mayer",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                },
                "currency": "EUR"
            },
            "created_at": 1657086115,
            "joyn": {
                "points": 14,
                "collect_url": "https://example.com",
                "qr_code_url": "https://example.com"
            },
            "payment_status": "pending",
            "currency": "EUR"
        },
        {
            "id": 14,
            "status": "PENDING",
            "valid": true,
            "order_nr": 15,
            "prices": {
                "price": 17,
                "discount": 11,
                "warranty": 15,
                "delivery_cost": 14,
                "invoice_cost": 10,
                "sms_cost": 12,
                "transaction_cost": 12,
                "price_to_pay": 17,
                "price_with_discount": 18
            },
            "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": 17,
                "name": "Favian Rippin",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE",
                    "position": {
                        "latitude": 1.54361,
                        "longitude": 0.45645
                    }
                },
                "currency": "EUR"
            },
            "created_at": 1657086115,
            "joyn": {
                "points": 14,
                "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.0.0 stable