#Mathankumar
1 messages · Page 1 of 1 (latest)
Hi there,
the link you shared is for a request Attribute and not a response one, in that field you can specify a customer id in order to list their invoices
how can I specify customer id in list of invoice query?
It depends on your integration but if you are using Nodejs for exp:
const invoices = await stripe.invoices.list({
customer: 'cus_123'
});
Like you send a request body to an API
in php?
You can choose what language you need as mentioned in the screenshot
You should do something like this:
$stripe = new \Stripe\StripeClient(
'sk_test_...'
);
$stripe->invoices->all(['customer' => 'cus_123]);
Okay great !!