GET /company/shops/@id/orders
Return all orders (sorted from old to new by default). You can filter the results. If you want to poll for new orders, you should use the future property:
next
value from the API, do immediately another call with the next
query parameters when you finished processing the orders in results
next
value and you received a non-null future
property, then there are no new orders available right now but there might be in the future. Store the future
property somewhere persistent (keep it after a reboot).future
property to the backend and then the backend will give us the new orders together with a next
or future
propertyThe future object will only be available if it is possible that new orders will match your filtering criteria, when you use ascending sorting (default), and if there are no more results left (next
property is null, results
may stil contain some orders).
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 | The id of the shop you are requesting to get the orders from |
Append the querystring with following properties to the URL.
A dictionary with fields
Field | Type | Description |
---|---|---|
status | String | Optional. Only return orders with this status |
created_after | Timestamp | Optional. Only return orders that were placed after (including) this timestamp. Do not use this for pagination as multiple orders might share the same created_at timestamp. |
created_before | Timestamp | Optional. Only return orders that were placed before (including) this timestamp. You can use this together with created_after. Do not use this for pagination as multiple orders might share the same created_at timestamp. |
before_id | Int | Optional. Only return orders created before (not including) the order with the given id. Before isn't the same as smaller, it might return IDs that are larger than the given id from orders that are validated before the given order id! Use for pagination. |
after_id | Int | Optional. Only return orders created after (not including) the order with the given id. After isn't the same as larger, it might return IDs that are smaller than the given id from orders that are validated after the given order id! Use for pagination. |
sort | String | Optional. Sort the results in ascending (default) or descending order by creation date (the date an order is paid or validated). Default is ascending. |
GET /company/shops/14/orders?status=PENDING&created_after=1657086061&created_before=1657086061&before_id=15&after_id=15&sort=ascending HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.3.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
results | [company.Order.detailed] | Array of company.Order.detailed |
next | Dictionary? | Nullable. Set when we have more results at this moment. It contains the query parameters you need to request the following results. Is null when there are no results left |
future | Dictionary? | Nullable. When all the results have been returned (no next set), but there might be more results in the future, future contains the query parameters you should use to request new results in the future (e.g. in 15 minutes) to know if you have extra results without returning the same results again. |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 72012
{
"results": [
{
"id": 19,
"shop_id": 19,
"company_id": 19,
"status": "PENDING",
"order_nr": 18,
"prices": {
"price": {
"value": 13,
"currency": "EUR"
},
"discount": {
"value": 10,
"currency": "EUR"
},
"warranty": {
"value": 15,
"currency": "EUR"
},
"delivery_cost": {
"value": 16,
"currency": "EUR"
},
"invoice_cost": {
"value": 11,
"currency": "EUR"
},
"sms_cost": {
"value": 17,
"currency": "EUR"
},
"transaction_cost": {
"value": 14,
"currency": "EUR"
},
"price_to_pay": {
"value": 19,
"currency": "EUR"
},
"price_with_discount": {
"value": 19,
"currency": "EUR"
}
},
"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": 14
},
"products": [
{
"amount": 13,
"persons": 16,
"gram": 19,
"comment": "...",
"product": {
"id": 16,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 11,
"currency": "EUR"
}
},
"product_price": {
"id": 13,
"name": "...",
"price": {
"value": 13,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 19,
"currency": "EUR"
},
"price": {
"value": 10,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 14,
"currency": "EUR"
},
"price": {
"value": 19,
"currency": "EUR"
}
},
"options": [
{
"id": 18,
"name": "...",
"price_change": {
"value": 15,
"currency": "EUR"
},
"optionset": {
"id": 10,
"name": "...",
"allow_attachment": false
}
},
{
"id": 11,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
},
"optionset": {
"id": 18,
"name": "...",
"allow_attachment": true
}
},
{
"id": 19,
"name": "...",
"price_change": {
"value": 13,
"currency": "EUR"
},
"optionset": {
"id": 19,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 15
},
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 12
},
{
"upload": {
"id": 11,
"url": "https://example.com"
},
"optionset_id": 13
}
],
"code": "..."
},
{
"amount": 10,
"persons": 13,
"gram": 15,
"comment": "...",
"product": {
"id": 15,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 15,
"currency": "EUR"
}
},
"product_price": {
"id": 13,
"name": "...",
"price": {
"value": 12,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 10,
"currency": "EUR"
},
"price": {
"value": 17,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 15,
"currency": "EUR"
},
"price": {
"value": 19,
"currency": "EUR"
}
},
"options": [
{
"id": 11,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 15,
"name": "...",
"allow_attachment": true
}
},
{
"id": 15,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 11,
"name": "...",
"allow_attachment": false
}
},
{
"id": 10,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
},
"optionset": {
"id": 12,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 17
},
{
"upload": {
"id": 11,
"url": "https://example.com"
},
"optionset_id": 11
},
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 15
}
],
"code": "..."
},
{
"amount": 17,
"persons": 17,
"gram": 13,
"comment": "...",
"product": {
"id": 13,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 19,
"currency": "EUR"
}
},
"product_price": {
"id": 18,
"name": "...",
"price": {
"value": 16,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 14,
"currency": "EUR"
},
"price": {
"value": 15,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 17,
"currency": "EUR"
},
"price": {
"value": 13,
"currency": "EUR"
}
},
"options": [
{
"id": 10,
"name": "...",
"price_change": {
"value": 19,
"currency": "EUR"
},
"optionset": {
"id": 17,
"name": "...",
"allow_attachment": false
}
},
{
"id": 14,
"name": "...",
"price_change": {
"value": 12,
"currency": "EUR"
},
"optionset": {
"id": 14,
"name": "...",
"allow_attachment": false
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 15,
"currency": "EUR"
},
"optionset": {
"id": 11,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 18
},
{
"upload": {
"id": 11,
"url": "https://example.com"
},
"optionset_id": 18
},
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 16
}
],
"code": "..."
}
],
"invoice": {
"name": "...",
"vat": "BE0123456789",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"isop": {
"origin": "in-store",
"customer_id": 18,
"employee_id": 14
},
"consumer": {
"email": "example@domain.com",
"firstname": "...",
"lastname": "...",
"phone": "+32 475 00 00 00"
},
"created_at": 1657086061
},
{
"id": 17,
"shop_id": 11,
"company_id": 18,
"status": "PENDING",
"order_nr": 13,
"prices": {
"price": {
"value": 16,
"currency": "EUR"
},
"discount": {
"value": 14,
"currency": "EUR"
},
"warranty": {
"value": 19,
"currency": "EUR"
},
"delivery_cost": {
"value": 12,
"currency": "EUR"
},
"invoice_cost": {
"value": 10,
"currency": "EUR"
},
"sms_cost": {
"value": 17,
"currency": "EUR"
},
"transaction_cost": {
"value": 19,
"currency": "EUR"
},
"price_to_pay": {
"value": 10,
"currency": "EUR"
},
"price_with_discount": {
"value": 16,
"currency": "EUR"
}
},
"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
},
"products": [
{
"amount": 12,
"persons": 16,
"gram": 17,
"comment": "...",
"product": {
"id": 19,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": true,
"price": {
"value": 16,
"currency": "EUR"
}
},
"product_price": {
"id": 13,
"name": "...",
"price": {
"value": 17,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 13,
"currency": "EUR"
},
"price": {
"value": 11,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 13,
"currency": "EUR"
},
"price": {
"value": 19,
"currency": "EUR"
}
},
"options": [
{
"id": 13,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 16,
"name": "...",
"allow_attachment": true
}
},
{
"id": 15,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 18,
"name": "...",
"allow_attachment": true
}
},
{
"id": 17,
"name": "...",
"price_change": {
"value": 19,
"currency": "EUR"
},
"optionset": {
"id": 18,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 15,
"url": "https://example.com"
},
"optionset_id": 13
},
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 12
},
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 18
}
],
"code": "..."
},
{
"amount": 16,
"persons": 19,
"gram": 15,
"comment": "...",
"product": {
"id": 17,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 14,
"currency": "EUR"
}
},
"product_price": {
"id": 18,
"name": "...",
"price": {
"value": 12,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 17,
"currency": "EUR"
},
"price": {
"value": 17,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 11,
"currency": "EUR"
},
"price": {
"value": 11,
"currency": "EUR"
}
},
"options": [
{
"id": 11,
"name": "...",
"price_change": {
"value": 16,
"currency": "EUR"
},
"optionset": {
"id": 15,
"name": "...",
"allow_attachment": false
}
},
{
"id": 19,
"name": "...",
"price_change": {
"value": 10,
"currency": "EUR"
},
"optionset": {
"id": 11,
"name": "...",
"allow_attachment": true
}
},
{
"id": 11,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
},
"optionset": {
"id": 18,
"name": "...",
"allow_attachment": true
}
}
],
"uploads": [
{
"upload": {
"id": 13,
"url": "https://example.com"
},
"optionset_id": 19
},
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 15
},
{
"upload": {
"id": 13,
"url": "https://example.com"
},
"optionset_id": 10
}
],
"code": "..."
},
{
"amount": 14,
"persons": 17,
"gram": 12,
"comment": "...",
"product": {
"id": 17,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": true,
"price": {
"value": 16,
"currency": "EUR"
}
},
"product_price": {
"id": 18,
"name": "...",
"price": {
"value": 15,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 12,
"currency": "EUR"
},
"price": {
"value": 19,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 10,
"currency": "EUR"
},
"price": {
"value": 19,
"currency": "EUR"
}
},
"options": [
{
"id": 13,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
},
"optionset": {
"id": 11,
"name": "...",
"allow_attachment": false
}
},
{
"id": 15,
"name": "...",
"price_change": {
"value": 19,
"currency": "EUR"
},
"optionset": {
"id": 15,
"name": "...",
"allow_attachment": true
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 10,
"name": "...",
"allow_attachment": true
}
}
],
"uploads": [
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 15
},
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 15
},
{
"upload": {
"id": 12,
"url": "https://example.com"
},
"optionset_id": 15
}
],
"code": "..."
}
],
"invoice": {
"name": "...",
"vat": "BE0123456789",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"isop": {
"origin": "in-store",
"customer_id": 12,
"employee_id": 17
},
"consumer": {
"email": "example@domain.com",
"firstname": "...",
"lastname": "...",
"phone": "+32 475 00 00 00"
},
"created_at": 1657086061
},
{
"id": 14,
"shop_id": 14,
"company_id": 18,
"status": "PENDING",
"order_nr": 12,
"prices": {
"price": {
"value": 16,
"currency": "EUR"
},
"discount": {
"value": 13,
"currency": "EUR"
},
"warranty": {
"value": 18,
"currency": "EUR"
},
"delivery_cost": {
"value": 10,
"currency": "EUR"
},
"invoice_cost": {
"value": 11,
"currency": "EUR"
},
"sms_cost": {
"value": 16,
"currency": "EUR"
},
"transaction_cost": {
"value": 14,
"currency": "EUR"
},
"price_to_pay": {
"value": 18,
"currency": "EUR"
},
"price_with_discount": {
"value": 15,
"currency": "EUR"
}
},
"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": 12
},
"products": [
{
"amount": 15,
"persons": 17,
"gram": 17,
"comment": "...",
"product": {
"id": 11,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 10,
"currency": "EUR"
}
},
"product_price": {
"id": 15,
"name": "...",
"price": {
"value": 11,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 17,
"currency": "EUR"
},
"price": {
"value": 15,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 17,
"currency": "EUR"
},
"price": {
"value": 14,
"currency": "EUR"
}
},
"options": [
{
"id": 12,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 19,
"name": "...",
"allow_attachment": true
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 19,
"currency": "EUR"
},
"optionset": {
"id": 16,
"name": "...",
"allow_attachment": false
}
},
{
"id": 18,
"name": "...",
"price_change": {
"value": 13,
"currency": "EUR"
},
"optionset": {
"id": 17,
"name": "...",
"allow_attachment": true
}
}
],
"uploads": [
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 14
},
{
"upload": {
"id": 18,
"url": "https://example.com"
},
"optionset_id": 14
},
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 12
}
],
"code": "..."
},
{
"amount": 10,
"persons": 12,
"gram": 19,
"comment": "...",
"product": {
"id": 11,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 12,
"currency": "EUR"
}
},
"product_price": {
"id": 12,
"name": "...",
"price": {
"value": 18,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 14,
"currency": "EUR"
},
"price": {
"value": 18,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 11,
"currency": "EUR"
},
"price": {
"value": 18,
"currency": "EUR"
}
},
"options": [
{
"id": 17,
"name": "...",
"price_change": {
"value": 14,
"currency": "EUR"
},
"optionset": {
"id": 13,
"name": "...",
"allow_attachment": false
}
},
{
"id": 19,
"name": "...",
"price_change": {
"value": 10,
"currency": "EUR"
},
"optionset": {
"id": 15,
"name": "...",
"allow_attachment": true
}
},
{
"id": 13,
"name": "...",
"price_change": {
"value": 14,
"currency": "EUR"
},
"optionset": {
"id": 12,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 18
},
{
"upload": {
"id": 12,
"url": "https://example.com"
},
"optionset_id": 11
},
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 10
}
],
"code": "..."
},
{
"amount": 17,
"persons": 19,
"gram": 10,
"comment": "...",
"product": {
"id": 17,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 18,
"currency": "EUR"
}
},
"product_price": {
"id": 13,
"name": "...",
"price": {
"value": 16,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 12,
"currency": "EUR"
},
"price": {
"value": 14,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 11,
"currency": "EUR"
},
"price": {
"value": 10,
"currency": "EUR"
}
},
"options": [
{
"id": 11,
"name": "...",
"price_change": {
"value": 10,
"currency": "EUR"
},
"optionset": {
"id": 15,
"name": "...",
"allow_attachment": true
}
},
{
"id": 11,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
},
"optionset": {
"id": 16,
"name": "...",
"allow_attachment": true
}
},
{
"id": 14,
"name": "...",
"price_change": {
"value": 14,
"currency": "EUR"
},
"optionset": {
"id": 14,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 19,
"url": "https://example.com"
},
"optionset_id": 15
},
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 14
},
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 11
}
],
"code": "..."
}
],
"invoice": {
"name": "...",
"vat": "BE0123456789",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"isop": {
"origin": "in-store",
"customer_id": 18,
"employee_id": 19
},
"consumer": {
"email": "example@domain.com",
"firstname": "...",
"lastname": "...",
"phone": "+32 475 00 00 00"
},
"created_at": 1657086061
}
],
"next": {
"status": "PENDING",
"created_after": 1657086061,
"created_before": 1657086061,
"before_id": 11,
"after_id": 17,
"sort": "ascending"
},
"future": {
"status": "PENDING",
"created_after": 1657086061,
"created_before": 1657086061,
"before_id": 19,
"after_id": 14,
"sort": "ascending"
}
}