Hi Joe,
Looking at the invoice itself, it looks like it has no invoice items? This
will make it unsendable until you add some invoice items.
The error you’re getting back is pretty horrible: I’ll look to have that
fixed up and return something a little more usable.
Cheers,
-JOn Thu, Oct 24, 2013 at 11:53 AM, Joe Mallion jdmallion@gmail.com wrote:
Yep we are definitely using the endpoint:
https://api.freeagent.com/v2/invoices/7385599/send_email
We’ve tried it with both empty params:
{“invoice”:{“email”:{}}}
and full ones:
{“invoice”:{“email”:{“to":"emailaddress@domain.com”,“from”:"test@Test.com",“subject”:“TEST
INVOICE”,“body”:“TEST”}}}
and still getting the 403 code.
We have been experimenting here: http://www.requestmaker.com/ If you want
to test please make sure it’s set to POST and set the following headers:
Authorization Bearer 1noM3kVe-FAAiNsOsS5w3_HdOotUuT3EB0Ya7ooib
Content-Type application/json
Accept application/json
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2)
Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
–
You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/groups/opt_out.
Jonathan Barrett, Senior Engineer
FreeAgent: Accounting software, simplified
+44 (0)131 447 0011
Follow us on Twitter: @freeagent https://twitter.com/freeagent
FreeAgent Central Ltd, 40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774