Delete an invoice

Hi all,

Can anybody help me in a urgent issue,
Delete an invoice, I had read the documentation and there is “estimates”
mentioned in command in place of invoice,
Is this correct?

DELETE https://api.freeagent.com/v2/estimates/:id
or
DELETE https://api.freeagent.com/v2/invoices/:id

Please help asap, as working at a live environment…

Hi Vipul,

Sorry, that should be invoices in the URL, not estimates. The correct
command is

DELETE https://api.freeagent.com/v2/invoices/:id

​Sorry about that. We’ll get the docs fixed up ASAP.​

Regards,
Harry MillsOn Tue, May 6, 2014 at 7:25 AM, vipul Kumar dashing.vipul@gmail.com wrote:

Hi all,

Can anybody help me in a urgent issue,
Delete an invoice, I had read the documentation and there is “estimates”
mentioned in command in place of invoice,
Is this correct?

DELETE https://api.freeagent.com/v2/estimates/:id
or
DELETE https://api.freeagent.com/v2/invoices/:id

Please help asap, as working at a live environment…


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/d/optout.

Hi Harry,

Thanks for reply, Actually I had tried this URL too, but its giving 409
error.
can anyone tell that we can delete the invoice or not.
OR Is there any other method to delete, like status disable or something,
Actually I need to create a invoice with same reference no…

Can this possible? , or effortless?On Tuesday, 6 May 2014 13:45:19 UTC+5:30, Harry wrote:

Hi Vipul,

Sorry, that should be invoices in the URL, not estimates. The correct
command is

DELETE https://api.freeagent.com/v2/invoices/:id

​Sorry about that. We’ll get the docs fixed up ASAP.​


Regards,
Harry Mills

On Tue, May 6, 2014 at 7:25 AM, vipul Kumar <dashin...@gmail.com<javascript:> wrote:

Hi all,

Can anybody help me in a urgent issue,
Delete an invoice, I had read the documentation and there is “estimates”
mentioned in command in place of invoice,
Is this correct?

DELETE https://api.freeagent.com/v2/estimates/:id
or
DELETE https://api.freeagent.com/v2/invoices/:id

Please help asap, as working at a live environment…


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_ap...@googlegroups.com <javascript:>.
To post to this group, send email to freeag...@googlegroups.com<javascript:>
.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

As you posted this quite a while ago you are probably not interested in the
answer or you have figured it out already.

I changed the status of the invoice to Draft and then deleted it. That
removed the 409 and returned a 200 ok (deleting the invoice)

The Docs have not been updated yet to include invoices instead of
estimates. (https://api.sandbox.freeagent.com/v2/invoices/12345)On Tuesday, May 6, 2014 at 9:24:59 AM UTC+1, vipul Kumar wrote:

Hi Harry,

Thanks for reply, Actually I had tried this URL too, but its giving 409
error.
can anyone tell that we can delete the invoice or not.
OR Is there any other method to delete, like status disable or something,
Actually I need to create a invoice with same reference no…

Can this possible? , or effortless?

On Tuesday, 6 May 2014 13:45:19 UTC+5:30, Harry wrote:

Hi Vipul,

Sorry, that should be invoices in the URL, not estimates. The correct
command is

DELETE https://api.freeagent.com/v2/invoices/:id

​Sorry about that. We’ll get the docs fixed up ASAP.​


Regards,
Harry Mills

On Tue, May 6, 2014 at 7:25 AM, vipul Kumar dashin...@gmail.com wrote:

Hi all,

Can anybody help me in a urgent issue,
Delete an invoice, I had read the documentation and there is “estimates”
mentioned in command in place of invoice,
Is this correct?

DELETE https://api.freeagent.com/v2/estimates/:id
or
DELETE https://api.freeagent.com/v2/invoices/:id

Please help asap, as working at a live environment…


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_ap...@googlegroups.com.
To post to this group, send email to freeag...@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.