#geordi

1 messages · Page 1 of 1 (latest)

quartz egretBOT
uncut arch
old adder
#

It doesn't show tax rate as a percentage, just the amounts?

#

Or can you expand the tax_rates field or similar?

uncut arch
old adder
#

Yes, but that isn't expandable? I would have to fetch that separately no?

uncut arch
#

It the full array of hashes should be returned in the preview call, no expanding needed

old adder
#

This is what I receive in the preview

    {
        "amount": 7497,
        "inclusive": false,
        "tax_rate": "txr_1JNGiZLLAsLlRiDe4P2lV4Mx"
    }
]```
#

But not the VAT rate given the customer is located in Sweden (25%)

#

this was the "total_tax_amounts" property of an upcoming invoice request

uncut arch
uncut arch
old adder
#

Ah yep, the individual invoice line item also has an empty array under "tax_rates"

uncut arch
#

Hmm, maybe that's not returned for upcoming invoices then. I'm not sure

#

I guess if you need the explicit % applied then you'll need to retrieve the txr_xxx

old adder
#

haha yep, thanks for your help!