title: Paypal API: Getting list of orders
body: <p>So I am trying to get the list of the items that I have to deliver based off of orders between certain dates from paypal. I couldn't find any solution or explanation on paypal developer documentation on this. </p>
  
  <p>So I use "paypal here" to receive POS payments for orders during the week. I wanted to essentially get an order list if you will (I was surprised that paypal didn't offer an api call for this). By order list I mean a list of customers and each customer's list of items(shopping cart) that they have ordered. I believe "paypal here" treats all orders as an invoice. </p>
  
  <p>So after a lot of research, I got a list of invoices from the api. However, none of the invoices include the shopping cart information (the items they have ordered.). I would greatly appreciate any suggestions or help.</p>
  
  <p>Config file ---></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
      &lt;!--&lt;startup&gt; 
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /&gt;
      &lt;/startup&gt;--&gt;
      &lt;configSections&gt;
        &lt;section name="paypal" type="PayPal.SDKConfigHandler, PayPal" /&gt;
      &lt;/configSections&gt;
  
      &lt;!-- PayPal SDK settings --&gt;
      &lt;paypal&gt;
        &lt;settings&gt;
          &lt;add name="mode" value="live" /&gt;
          &lt;add name="clientId" value=" client id" /&gt;
          &lt;add name="clientSecret" value="client Secret" /&gt;
        &lt;/settings&gt;
      &lt;/paypal&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>C# Code ---></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using PayPal.Api;
  
  namespace PaypalConsoleApp
  {
      class Program
      {
          static void Main(string[] args)
          {
              // Authenticate with PayPal
              var config = ConfigManager.Instance.GetProperties();
              var accessToken = new OAuthTokenCredential(config).GetAccessToken();
              var apiContext = new APIContext(accessToken); 
              var test = Invoice.GetAll(apiContext, pageSize: 10, totalCountRequired: true); 
          }
      }
  }
  </code></pre>
  
  <p>Update:
  Link to SDK--> <a href="https://github.com/paypal/PayPal-NET-SDK" rel="nofollow noreferrer">https://github.com/paypal/PayPal-NET-SDK</a></p>