#manny_manny_2023
1 messages · Page 1 of 1 (latest)
Hi
You need to call invoice's items listing API and paginate through all the items untill fetching 20 items:
https://stripe.com/docs/api/invoiceitems/list
but each invoice item in webhook is not having subscription item
Can you share an eventId ?
sure
and what item are you expecting within it ?
we are trying to use each invoice paid webhook event to relate with subscription item in our database so we can show it in the billing history
in that event even though we have 20 subscription items its showing only 10 subscription items but 20 invoice items
In order to fetch the remaining 10 items you need to make the API call that I'm mentioning above
so i try to fetch all the invoice items with invoice id and then each item will have its subscription item
Yes and you'll get the remaining 10 items
ok understood, thank you so much