#UnyteBI - Invoice Items

1 messages ยท Page 1 of 1 (latest)

tranquil cobalt
#

Hi ๐Ÿ‘‹

#

Do you have the ID of the invoice?

autumn olive
#

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?

tranquil cobalt
#

Can you share the ID of the invoice (sorry)

autumn olive
#

Yup one second

#

in_1KaiPIJeuviw0nusEN6PotlB

tranquil cobalt
#

Okay and what happens when you try to retrieve that via the API?

autumn olive
#

I get null values in the discount fields

#

Acatually sorry let me send you a screenshot, I do values....

tranquil cobalt
#

Okay that is because you need to Expand the request. If you are going through the API that is

autumn olive
#

Ah okay thanks! this was really helpfyl!

#

๐Ÿ‘

tranquil cobalt
#

Happy to help ๐Ÿ™‚