Invoice mark as cancelled


#1

Hello,

I am trying to mark invoice as cancelled using below URL which is executed
successfully but status is not updated in the free Agent.
https://api.sandbox.freeagent.com/v2/invoices/1848/transitions/mark_as_cancelled

I have tried to update after status change to “draft ” as well as “Sent”.
The status change to “mark_as_sent” working fine.

Please advise.


#2

I’m also getting this.On Saturday, 18 May 2013 16:56:56 UTC+1, hardik patel wrote:

Anybody please advise on this.

Thanks,
Hardik Patel

On Tuesday, May 14, 2013 8:28:59 PM UTC+5:30, hardik patel wrote:

Hello,

I am trying to mark invoice as cancelled using below URL which is
executed successfully but status is not updated in the free Agent.

https://api.sandbox.freeagent.com/v2/invoices/1848/transitions/mark_as_cancelled

I have tried to update after status change to “draft ” as well as “Sent”.
The status change to “mark_as_sent” working fine.

Please advise.


#3

Hi Thomas and Hardik,

A sent or overdue invoice can be marked as cancelled (“written off”) by
making an HTTP PUT request to e.g. https://api.sandbox.freeagent.
com/v2/invoices/1848/transitions/mark_as_cancelled

An HTTP POST or GET request will not work.

https://dev.freeagent.com/docs/invoices#mark-invoice-as-cancelled

Can you please provide details on exactly what you’re sending to the server
and what the response is? You might find a service like
http://httpbin.org/useful for this.

Kind regards,

GraemeOn 20 December 2013 01:19, Thomas Bibb hello@thomasbibb.co.uk wrote:

I’m also getting this.

On Saturday, 18 May 2013 16:56:56 UTC+1, hardik patel wrote:

Anybody please advise on this.

Thanks,
Hardik Patel

On Tuesday, May 14, 2013 8:28:59 PM UTC+5:30, hardik patel wrote:

Hello,

I am trying to mark invoice as cancelled using below URL which is
executed successfully but status is not updated in the free Agent.
https://api.sandbox.freeagent.com/v2/invoices/1848/
transitions/mark_as_cancelled

I have tried to update after status change to “draft ” as well as
“Sent”. The status change to “mark_as_sent” working fine.

Please advise.


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


#4

Anybody please advise on this.

Thanks,
Hardik PatelOn Tuesday, May 14, 2013 8:28:59 PM UTC+5:30, hardik patel wrote:

Hello,

I am trying to mark invoice as cancelled using below URL which is executed
successfully but status is not updated in the free Agent.

https://api.sandbox.freeagent.com/v2/invoices/1848/transitions/mark_as_cancelled

I have tried to update after status change to “draft ” as well as “Sent”.
The status change to “mark_as_sent” working fine.

Please advise.


#5

I have the same problem. Based on the description above i’m guessing the cancelled status can only work if its in the Sent status, however I’m not able to mark an invoice sent using “mark_as_sent”, it will just change it status to Open.

In the dashboard it says “If you’re trying to refund a customer, or just cancel the invoice, create a credit note.” However i don’t see an API for this.