#Aditya Bhutani-invoice-tax
1 messages · Page 1 of 1 (latest)
Hi there 👋 no, there isn't an attribute that contains amount+tax, but you can calculate that with the amount and tax_amounts fields.
Okay. Will it be possible to fetch invoice items for an invoice ?
To clarify, I mean can we fetch all the invoice items (maybe expandable) while retrieving invoice ?
The line items are included when you retrieve the invoice, is that different from what you're seeing?
Yeah. Line items are available and I’m using that. But I see that invoice item provides amount + tax attribute. And line items doesn’t have this attribute.
Sorry, but I'm not sure I follow. When you retrieve an invoice lines.data contains a list of line item objects, which have this tax_amounts parameter that is provided when you retrieve the invoice.
https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_amounts
Can you confirm whether invoice item has any attribute which gets amount + tax ?
Not that I'm aware of.
Oh. I thought there is. Got it thanks toby. Will use tax_amounts.