#Mathankumar

1 messages · Page 1 of 1 (latest)

sinful gladeBOT
ember frost
#

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

charred cave
#

how can I specify customer id in list of invoice query?

ember frost
#

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

charred cave
#

in php?

ember frost
#

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]);
charred cave
#

Okay great !!