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.
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | An integer value |
GET /orders/group/18 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.1
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
id | Int | Id of the order group |
orders | [Order.simple] | Array of Order.simple |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 5630
{
"id": 17,
"orders": [
{
"id": 10,
"status": "PENDING",
"valid": false,
"order_nr": 17,
"prices": {
"price": 17,
"discount": 11,
"warranty": 11,
"delivery_cost": 11,
"invoice_cost": 17,
"sms_cost": 18,
"transaction_cost": 12,
"price_to_pay": 12,
"price_with_discount": 15
},
"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": 10,
"name": "Amanda Franecki",
"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": 14,
"status": "PENDING",
"valid": false,
"order_nr": 11,
"prices": {
"price": 13,
"discount": 18,
"warranty": 10,
"delivery_cost": 11,
"invoice_cost": 12,
"sms_cost": 10,
"transaction_cost": 17,
"price_to_pay": 14,
"price_with_discount": 14
},
"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": 11,
"name": "Lenna Quigley",
"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": 18,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending",
"currency": "EUR"
},
{
"id": 19,
"status": "PENDING",
"valid": false,
"order_nr": 16,
"prices": {
"price": 15,
"discount": 12,
"warranty": 10,
"delivery_cost": 13,
"invoice_cost": 18,
"sms_cost": 17,
"transaction_cost": 12,
"price_to_pay": 15,
"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": 11
},
"shop": {
"id": 19,
"name": "Nella Lubowitz",
"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": 18,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending",
"currency": "EUR"
}
]
}