1. Home
  2. Docs
  3. Dynamic Integration
  4. Endpoint 2 – Retrieving orders based on an email address
  5. Extend endpoint 2

Extend endpoint 2

How can I get more out of the Orders List (endpoint 2)?

In the following example, I will show you how to get even more out of Endpoint 2

Extended response

{
    "orders":
    [
		{
			"order_number": "183339",
			"list_view": {
				"order_number": "183339",
				"order_date": "13-02-2018 11:29:39",
				"delivery_date": "08-03-2018",
				"status": "Order finished",
				"last_update":"14-03-2018 17:13:25"
			}
		},
		{
			"order_number": "200037",
			"list_view": {
				"order_number": "200037",
				"order_date": "01-03-2018 10:41:30",
				"delivery_date": "Not yet delivered",
				"status": "Arrival at Sorting Center",
				"last_update":"14-03-2018 16:30:42"
			}
		},
		{
			"order_number": "183907",
			"list_view": {
				"order_number": "183907",
				"order_date": "17-02-2018 09:59:44",
				"delivery_date": "25-02-2018",
				"status": "Order finished",
				"last_update":"25-02-2018 17:03:57"
			}
		}
	]
}
Endpoint 2 extended
Endpoint 2 extended

 

All the fields in List_view are custom fields; meaning that you can pass along any element you want, as long as it is a string.