title: Get invoices from Stripe
body: <p>I'm trying to get list of invoices for specific customer from Stripe using PHP.</p>
  
  <p>Following is the code I'm using.</p>
  
  <pre><code> \Stripe\Stripe::setApiKey('STRIPE_SECRET_KEY');
   $response = \Stripe\Invoice::all(array('customer' =&gt; 'CUSTOMER_TOKEN'));
  </code></pre>
  
  <p>But this returns empty array.</p>
  
  <p>Instead, CURL command returns result</p>
  
  <pre><code> curl https://api.stripe.com/v1/invoices?customer=CUSTOMER_TOKEN  -u STRIPE_SECRET_KEY
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>I'm using <code>Stripe PHP library</code> available from Github.</p>
  
  <p><a href="https://github.com/stripe/stripe-php" rel="nofollow">https://github.com/stripe/stripe-php</a></p>