title: Paypal: Transaction History with REST API / Nodejs SDK
body: <h2>I would like to display all the inbound/outbound transactions a user made/received to display it in a simple html list.</h2>
  
  <p>I'm using the recommended node.js module <a href="https://github.com/paypal/rest-api-sdk-nodejs" rel="nofollow">https://github.com/paypal/rest-api-sdk-nodejs</a> and I'm trying to use this code to get the transactions:</p>
  
  <pre><code>    // Get Transaction History
      paypal.payment.list({ 
          'count': 100,
          'sort_by':'create_time',
          'sort_order': 'asc',
          'start_time': '2008-03-06T11:00:00Z'
      }, function(error, payment_history){
          if(error){
              console.error('error', error);
              response.data.payment_history = {};
          } else {
              console.log('history', payment_history);
              response.data.payment_history = payment_history;
          }
          response.finish();
      });
  </code></pre>
  
  <p>but <code>payment_history</code> gives me <code>{ count: 0 }</code>. I'm pretty sure that I have transactions since 2008.</p>
  
  <p>I'm not really sure what's the problem. The user is already logged in using the <code>access_token</code> and I can display user informations but I have no idea how to pull transaction informations.</p>