#UnyteBI - Invoice Items
1 messages ยท Page 1 of 1 (latest)
Yes I have the ID of the invoice. So I tried joining the invoice table with the coupons table, but this invoice (of the screenshot) is not in the query. I think it's because the coupon is being applied against the invoice line item?
Can you share the ID of the invoice (sorry)
Okay and what happens when you try to retrieve that via the API?
I get null values in the discount fields
Acatually sorry let me send you a screenshot, I do values....
Okay that is because you need to Expand the request. If you are going through the API that is
WE call that out here: https://stripe.com/docs/api/invoices/line_item?lang=dotnet#invoice_line_item_object-discounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Happy to help ๐