Update Invoice

Hi,

I’m trying to update an Invoice however when I PUT the update to the
applicable invoice all the invoice items are duplicated.

I notice the documentation denotes I may need to specify an id to delete
an Invoice item but I want to update a specific line…

Also I don’t want to delete all the lines then recreate as that would mean
two API calls…

Hopefully you can help.

Tom

Hi Thomas,

I’ve raised a bug for this. The url for the nested invoice items is not
being passed through so new ones are being created rather than updated.
The invoice items resource can be used directly for editing and deleting
invoice items (use PUT and DELETE HTTP calls) but only for one invoice item
at a time.

Kind regards,

GraemeOn 20 December 2013 00:54, Thomas Bibb hello@thomasbibb.co.uk wrote:

Hi,

I’m trying to update an Invoice however when I PUT the update to the
applicable invoice all the invoice items are duplicated.

I notice the documentation denotes I may need to specify an id to
delete an Invoice item but I want to update a specific line…

Also I don’t want to delete all the lines then recreate as that would mean
two API calls…

Hopefully you can help.

Tom


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.

Graeme Boyd
Senior Software Engineer

Web. freeagent.com http://www.freeagent.com/ Blog. freeagent.com/blog
Twitter. @freeagent https://twitter.com/#!/freeagent Facebook.
facebook.com/freeagentapp

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774