#Mathankumar-invoice
1 messages · Page 1 of 1 (latest)
hello! maybe you can try https://stripe.com/docs/api/invoices/upcoming?
oh sorry, i think this might work better : https://stripe.com/docs/api/invoiceitems/list
and you can set pending=true : https://stripe.com/docs/api/invoiceitems/list#list_invoiceitems-pending
$invoice = $stripe->invoiceItems->all(['limit' => 3, 'pending' => true]);
is right?
you can run it and see if it works
its not show pending invoices!
it'll show the pending invoice items
lets take a step back
when you say pending invoices, do you mean invoices in draft?
yes invoices in unpaid or past due
sorry, i misunderstood your question earlier. You'd want to use https://stripe.com/docs/api/invoices/list
https://stripe.com/docs/api/invoices/list#list_invoices-status - you can only pass in one status though, so you'll have to make two requests to get both unpaid and past due
$invoice = $stripe->invoiceItems->all(['limit' => 3, 'status' => 'open']);
is right?
try it and see if it runs
showing errors** Received unknown parameter: status**