Updating an invoice with a new invoice item not effective

Hi, I’m using the follow URl and JSON with PUT

PUT https://api.sandbox.freeagent.com/v2/invoices/7577

with the following JSON

{
“invoice_items” : [
{
“sales_tax_rate” : “20.0”,
“item_type” : “Services”,
“quantity” : 1,
“price” : “8.50”,
“description” : “some service”
}
]
}

I get a 200 code with no content back and a further query with GET of that
invoice, continues to show no invoice items.

Am i doing the “update invoice, creating new invoice item” correctly?

Regards,
Mark Blackman

Thanks Mark,

And yes, the docs aren’t amazingly clear in this regard: we’ll hopefully be
making some improvements there soon.

-J

Yes, thanks, that sorted it. I can see that form is implied by the ‘Create
Invoice’ example, although it might be worth spelling out in the docs for
‘Update Invoice’.On Monday, March 31, 2014 9:49:53 AM UTC+1, Jonathan Barrett wrote:

Hi Mark,

Can I get you to try nesting the invoice items in an invoice object when
submitting:

{
“invoice”: {
"invoice_items: [{
“sales_tax_rate”: …
}]
}
}

and let me know if you’re still having issues?

Cheers,

-J

Hi Mark,

Can I get you to try nesting the invoice items in an invoice object when
submitting:

{
“invoice”: {
"invoice_items: [{
“sales_tax_rate”: …
}]
}
}

and let me know if you’re still having issues?

Cheers,

-J