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/15 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.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: 5287
{
"id": 18,
"orders": [
{
"id": 12,
"status": "PENDING",
"valid": false,
"order_nr": 16,
"prices": {
"price": 14,
"discount": 14,
"warranty": 17,
"delivery_cost": 19,
"invoice_cost": 13,
"sms_cost": 15,
"transaction_cost": 11,
"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": "..."
},
"shop": {
"id": 11,
"name": "Fiona Gutmann",
"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"
},
{
"id": 13,
"status": "PENDING",
"valid": false,
"order_nr": 17,
"prices": {
"price": 10,
"discount": 10,
"warranty": 16,
"delivery_cost": 10,
"invoice_cost": 13,
"sms_cost": 19,
"transaction_cost": 13,
"price_to_pay": 19,
"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": "..."
},
"shop": {
"id": 19,
"name": "Mr. Arnaldo Kunze DDS",
"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": 12,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending"
},
{
"id": 13,
"status": "PENDING",
"valid": false,
"order_nr": 19,
"prices": {
"price": 10,
"discount": 10,
"warranty": 13,
"delivery_cost": 13,
"invoice_cost": 16,
"sms_cost": 19,
"transaction_cost": 19,
"price_to_pay": 15,
"price_with_discount": 10
},
"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": 18,
"name": "Ms. Gudrun Koss DDS",
"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": 19,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending"
}
]
}