Is the documentation accurate for the invoices JSON?
I ask because I noticed sales tax is missing from the JSON I get back,
in fact, I get a bunch less than the documentation shows (https:// dev.freeagent.com/docs/expenses). Am I doing something wrong? I’m
using a URL with just from_date and to_date on the query string.
Sales_tax_rate is only shown for Invoice Items and not for the Invoice.
The reason is that an invoice can hold invoice items which each have
different sales_tax_rates (e.g. if selling zero VAT rated items alongside
standard rated items).
Invoices show the sales_tax_amount. As Nic points out if the
sales_tax_rate for an invoice item is not supplied it will be calculated.
Ah, I think I spotted the sales tax. It’s an amount and not a rate
now! Silly me!On Sep 16, 3:34 pm, Toby toby.wes...@gmail.com wrote:
Hey Folks,
Is the documentation accurate for the invoices JSON?
I ask because I noticed sales tax is missing from the JSON I get back,
in fact, I get a bunch less than the documentation shows (https:// FreeAgent Developer Dashboard). Am I doing something wrong? I’m
using a URL with just from_date and to_date on the query string.
Is the documentation accurate for the invoices JSON?
I ask because I noticed sales tax is missing from the JSON I get back,
in fact, I get a bunch less than the documentation shows (https:// FreeAgent Developer Dashboard). Am I doing something wrong? I’m
using a URL with just from_date and to_date on the query string.
Thanks for the reply, I’m interested in expenses at the moment though. Am I
right in thinking sales_tax_rate should appear on those (ie FreeAgent Developer Dashboard). I get a much smaller set of
fields back where I used to (in v1) get a bunch more stuff.
Initially I thought I could calculate the rate based on the
manual_sales_tax_amount (which does come back) but I can’t figure out how
to do that.
Sales_tax_rate is only shown for Invoice Items and not for the Invoice.
The reason is that an invoice can hold invoice items which each have
different sales_tax_rates (e.g. if selling zero VAT rated items alongside
standard rated items).
Invoices show the sales_tax_amount. As Nic points out if the
sales_tax_rate for an invoice item is not supplied it will be calculated.
Does this answer your question?
Graeme
On 17 September 2012 09:29, Toby <toby....@gmail.com <javascript:>> wrote:
Thanks, but it’s the GET that’s ‘getting’ me at the mo. seems like the
sales tax rate is just plain missing from the response body?
bounce!On Wednesday, 19 September 2012 11:15:49 UTC+1, Toby wrote:
Hi Graeme,
Thanks for the reply, I’m interested in expenses at the moment though. Am
I right in thinking sales_tax_rate should appear on those (ie FreeAgent Developer Dashboard). I get a much smaller set of
fields back where I used to (in v1) get a bunch more stuff.
Initially I thought I could calculate the rate based on the
manual_sales_tax_amount (which does come back) but I can’t figure out how
to do that.
Cheers,
Toby
On Wednesday, 19 September 2012 09:36:25 UTC+1, Graeme Boyd wrote:
Hi Toby,
Sales_tax_rate is only shown for Invoice Items and not for the Invoice.
The reason is that an invoice can hold invoice items which each have
different sales_tax_rates (e.g. if selling zero VAT rated items alongside
standard rated items).
Invoices show the sales_tax_amount. As Nic points out if the
sales_tax_rate for an invoice item is not supplied it will be calculated.
I think there is a manual amount, and a manual rate.
So you can set the rate to 20 (20%) (sales_tax_rate)
Or set the manual amount to 1.50 (£1.50) (manual_sales_tax_amont)
Or don’t submit ANYTHING for either field (ie, not null, blank or
zero, but NO FIELD SHOWING in the JSON), and it’ll work it out.
That one got me for ages. I have to do manual removal from my json
before I send it, based on various “magic” values. :(On Sun, Sep 16, 2012 at 7:35 PM, Toby toby.weston@gmail.com wrote:
Hmm, maybe not. I spotted the manual_sales_tax_amount and mistook it
for something i could use to work out the sales-tax-rate.
Should I be looking up what was the sales tax rate from the category
resource? that shows
“auto_sales_tax_rate”:“Standard rate”
for some, but nothing for others. I after something equivalent to the
old api, ie,
“sales_tax_rate” : 20.0
and would prefer not to lookup against hypermedia, any ideas?
Is the documentation accurate for the invoices JSON?
I ask because I noticed sales tax is missing from the JSON I get back,
in fact, I get a bunch less than the documentation shows (https:// FreeAgent Developer Dashboard). Am I doing something wrong? I’m
using a URL with just from_date and to_date on the query string.
mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2