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/538 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer c9ba69ba0c9dd81f034b7f3182d1ca37decfd9cb267b84ad4425570e3a34069ec05c50ba02e57894edd758e37f3f1b95a386053f1123590d752e8c859299447ec39826f92c0216e5752a55d827acf524d6bd0f1b74198688c8ac00030357143e0f512d57
X-VERSION: 1.5.0
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: 2095
{
"id": 538,
"orders": [
{
"id": 538,
"status": "DELETED_BY_SHOP",
"valid": true,
"order_nr": 0,
"prices": {
"price": {
"value": 4786,
"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": 4786,
"currency": "EUR"
}
},
"payment_method": "payu_romania_visa_electron",
"checkout": {
"method": "takeout",
"date": "2020-02-14",
"time": "15:54"
},
"created_at": 1608038784,
"shop": {
"id": 1354,
"name": "The Pastry Sheet",
"address": {
"street": "Noëlsteeg",
"nr": "95",
"zipcode": "7380",
"city": "Brugge",
"country": "BE",
"position": {
"latitude": 51.05,
"longitude": 3.71667
}
},
"allow_comments": true,
"currency": "EUR"
},
"payment_status": null,
"joyn": null,
"currency": "EUR"
}
]
}