1. Home
  2. Docs
  3. Dynamic Integration
  4. Endpoint 3 – Retrieving order details based on an order number
  5. Extend endpoint 3

Extend endpoint 3

How can I get more out of the Orders Details (endpoint 3)?

In the following example, I will show you how you can customise the order details

Extended response

{
    "details_view": [
        {
            "display_as": "details",
            "data": {
				"name":"Peter Jan",
                "order_number": "RHQ1234",
                "order_date": "10-07-2018 10:45:02",
                "status": "Bestelling is succesvol",
                "payment_method": "Ideal"
            }
        },
        {
            "display_as": "rows",
            "caption": "Costs",
            "data": [{
				"order_amount":"€199,90",
				"discounts":"0,00",
				"shipping costs":"€0,00",
				"paid":"€199,90",
				"return_payments":"124,95",
				"orderwaarde":"74,95"
			}]
        },
        {
            "display_as": "rows",
            "caption": "Products",
            "data": [ {
                "product_number":"1740.30.109706",
				"brand":"Fabio Deveraux",
				"model":"2140102 suede",
				"colour":"Bruin",
				"size":"40",
				"status":"Geretourneerd",
				"price":"€99,95",
				"sale_percentage":"25%",				 
            },
			{
                "product_number":"1740.30.109706",
				"brand":"Fabio Deveraux",
				"model":"2140102 suede",
				"colour":"Bruin",
				"size":"39",
				"status":"Verzonden",
				"price":"€99,95",
				"sale_percentage":"25%",				 
            },
			{
                "product_number":"1740.30.109706",
				"brand":"Fabio Deveraux",
				"model":"2140102 suede",
				"colour":"Bruin",
				"size":"39",
				"status":"Geretourneerd",
				"price":"€74,95",
				"sale_percentage":"25%",
				"": "<div class=\'panel_button\'><div><a href=\'http://yourwebsite.com\' target=\'_blank\'>Edit order</a></div></div>"				
            }
			]
        }
    ]
}
Endpoint 3 extend 1
Endpoint 3 extend 1

 

Endpoint 3 extend 2

{
    "details_view": [
        {
            "display_as": "details",
            "data": {
                "order_number":"RHQ1234",
                "order_date":"10-07-2018 10:45:02",
                "order_status":"Invoiced",
                "invoice_number":"234252",
				"invoice_date":"2018-05-12 07:07:21",
				"order_amount":"€77,90",
				"payment_method":"IDEAL betaling"
            }
        },
        {
            "display_as": "columns",
            "caption": "products",
            "data": [ {
                "description":"Isolaat Perfection 2000 gram (71 Shakes) Vanilla Sensation",
				"total":"1",
				"price":"€ 36,50",		 
            },
			{
                "description":"Ultra Fine Oats 1000 gram",
				"total":"2",
				"price":"€ 5,80",		 
            },
			{
                "description":"Isolaat Perfection 2000 gram (71 Shakes) Strawberry Sensation",
				"total":"1",
				"price":"€ 36,50",		 
            },
			{
                "description":"Staffel korting",
				"total":"1",
				"price":"-€0,90",		 
            },
			{
                "description":"Shakebeker Mini Blauw 500ml per stuk",
				"total":"1",
				"price":"€ 0,00",		 
            },
			{
                "description":"Nr 11 Sachet (willekeurige smaak) (gift)",
				"total":"1",
				"price":"€ 0,00",		 
            },
			{
				"description":"<b>Totaal</b>",
				"total":"",
				"price":"€77,90"
			}
			]
        },
		{
			"display_as": "rows",
			"caption": "Packages",
			"data": [ {
				"barcode": "234523542346236",
				"package_number": "2024253",
				"delivery_company":"POSTNL",
				"": "<div class=\'panel_button\'><div><a href=\'http://yourwebsite.com\' target=\'_blank\'>Edit order</a></div></div>"
			}
			]
		}
    ]
}
Endpoint 3 extend 2
Endpoint 3 extend 2