Is this possible? I tried UpdateInvoice with no Lines to see if I could delete but it didn't work. Sending Lines back (including the LineID) seems to add a new line rather than updating the current one. Am I doing something wrong? Cheers, Chris
Hi Chris, Updating the invoice and having no lines should indeed delete the lines. I think I know why it might not be all of a sudden. I'll have a word with the relevant developer tomorrow to get it sorted. Duane
Any news on this? I emailed a wiredump of the SOAP traffic to support last week, wondering if you got it? Cheers, Chris
Chris, This has now been fixed. When you update an invoice the invoice lines are also deleted from the invoice after updating. Cheers,
Great, thank you! I noticed one thing caused by some dodgy test data I was working with. If you InsertInvoice with no InvoiceLine items, it comes back as inserted ok, and appears in the web interface. However if you GetInvoice with the invoice number assigned, it comes back as an empty invoice, with number 0 and dbid 0. When I fixed my data and had line items again, it all worked as expected. Not a problem for us, but I thought I'd mention it. Is there an official bug tracker for the API, or is it best to post here or email support? Cheers, Chris
Thanks for bringing this to our attention. If you want to report api bugs, please send an email to API Support. Thanks