To achieve this, you would need to use a combination of the Orders API and the Customers API.
When you call the SearchOrders API, it returns the order details including the ‘customer_id’ field. You can then use this ‘customer_id’ to make a call to the RetrieveCustomer endpoint in the Customers API. This will give you the customer’s details including their address.
For the invoices, you can use the ListInvoices endpoint in the Invoices API to get a list of all invoices for a specific location. This will include both paid and unpaid invoices. Each invoice also includes a ‘customer_id’ field which you can use to retrieve customer details as described above.
By combining the data from these API calls, you should be able to create a comprehensive dashboard with all the information you need.
This answer was reviewed by @Bryan-Square.