.NET (C#) Deserializing a JSON API response to return a list of a custom type

Advertisements I am making a request to the following endpoint: https://resellers.accounting.sageone.co.za/api/2.0.0/Help/Api/GET-SalesOrder-Get_includeDetail_includeCustomerDetails I have a model called SalesOrder.cs and a service called SalesOrderService.cs which has a method called GetAllOrders. This method is called from a SalesOrderController endpoint/method. The GetAllOrders code that makes the request looks like this: public Task<List<SalesOrder>> GetAllOrders() { // Set endpoint URL string… Read More .NET (C#) Deserializing a JSON API response to return a list of a custom type