States of Invoice

Hi Team,

Can anyone tell me please different states of invoice??? i only know only
about Draft state. I also see Sent and Open state on my account; but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve

If you have a look on github, I just pushed a change which does Mark
As Sent (and also, uploading an invoice works if you full the fields
in right). I was working on that for something else, so your timing is
just right :slight_smile:

here’s the change set so you can see what has changed

You can only call Mark as Sent on a DRAFT. It’ll fail if it’s not :slight_smile:
And you cant Email a Draft… has to be marked as sent to be emailed
:slight_smile:

Found that out last night the hard way.On 19 July 2013 09:17, Cheesa fakeid390@gmail.com wrote:

Hi Nic,
Is it possible for you to describe the logic to set the status so that I can
try to write in my code?

On Thursday, July 18, 2013 3:53:40 PM UTC+5, Nic Wise wrote:

The api library is mine, which I wrote for MobileAgent

https://github.com/nicwise/FreeAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )

On 18 July 2013 11:33, Jonathan Barrett jona...@freeagent.com wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of
the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to handle
this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice is
creating properly but status is not according to that; that i set. it
always
Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only know
only about Draft state. I also see Sent and Open state on my account;
but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/


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.

Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

You need to keep the access token and refresh token that you get back
when you finish the login phase.

then, when you start again, load those in and try it again. If it
fails, use the refresh token to get a new access token and keep going.On 19 July 2013 13:56, Cheesa fakeid390@gmail.com wrote:

Bundle of Thanks Nic,

If you don’t mind can we discuss one more issue?

Problem is that when i create invoice on freeagent using your API then every
time it go to login page and then asks to approve, even app is already
approved. Could you
please let me know is there any method that if i approve app once then it
never asks me to approve or deny.

I am waiting for your positive reply.

Thanks and Kind Regards,
Cheesa,
Developer, Ambosco, Sherserve.

On Friday, July 19, 2013 3:01:34 PM UTC+5, Nic Wise wrote:

If you have a look on github, I just pushed a change which does Mark
As Sent (and also, uploading an invoice works if you full the fields
in right). I was working on that for something else, so your timing is
just right :slight_smile:

here’s the change set so you can see what has changed

https://github.com/nicwise/FreeAgent/commit/3e60ed63a856558422e823b8978b99a2b7328c28

You can only call Mark as Sent on a DRAFT. It’ll fail if it’s not :slight_smile:
And you cant Email a Draft… has to be marked as sent to be emailed
:slight_smile:

Found that out last night the hard way.

On 19 July 2013 09:17, Cheesa fake...@gmail.com wrote:

Hi Nic,
Is it possible for you to describe the logic to set the status so that I
can
try to write in my code?

On Thursday, July 18, 2013 3:53:40 PM UTC+5, Nic Wise wrote:

The api library is mine, which I wrote for MobileAgent

https://github.com/nicwise/FreeAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )

On 18 July 2013 11:33, Jonathan Barrett jona...@freeagent.com wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of
the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to
handle
this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice
is
creating properly but status is not according to that; that i set.
it
always
Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only
know
only about Draft state. I also see Sent and Open state on my
account;
but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/


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.

Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

Bundle of thanks nice wise :slight_smile:

One more question, please give the answer that if i want Freeagent App
authentication only once. mean if i approve app once then after that
whenever i want to perform any action on freeagent without authentication.
then how it is possible???

Regards and Thanks,
Cheesa,
Developer, Ambosco, SherserveOn Friday, July 19, 2013 3:01:34 PM UTC+5, Nic Wise wrote:

If you have a look on github, I just pushed a change which does Mark
As Sent (and also, uploading an invoice works if you full the fields
in right). I was working on that for something else, so your timing is
just right :slight_smile:

here’s the change set so you can see what has changed

https://github.com/nicwise/FreeAgent/commit/3e60ed63a856558422e823b8978b99a2b7328c28

You can only call Mark as Sent on a DRAFT. It’ll fail if it’s not :slight_smile:
And you cant Email a Draft… has to be marked as sent to be emailed
:slight_smile:

Found that out last night the hard way.

On 19 July 2013 09:17, Cheesa <fake...@gmail.com <javascript:>> wrote:

Hi Nic,
Is it possible for you to describe the logic to set the status so that I
can
try to write in my code?

On Thursday, July 18, 2013 3:53:40 PM UTC+5, Nic Wise wrote:

The api library is mine, which I wrote for MobileAgent

https://github.com/nicwise/FreeAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )

On 18 July 2013 11:33, Jonathan Barrett jona...@freeagent.com wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of
the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to
handle

this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice
is

creating properly but status is not according to that; that i set.
it

always
Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only
know

only about Draft state. I also see Sent and Open state on my
account;

but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

Bundle of Thanks Nic,

If you don’t mind can we discuss one more issue?

Problem is that when i create invoice on freeagent using your API then
every time it go to login page and then asks to approve, even app is
already approved. Could you
please let me know is there any method that if i approve app once then it
never asks me to approve or deny.

I am waiting for your positive reply.

Thanks and Kind Regards,
Cheesa,
Developer, Ambosco, Sherserve.On Friday, July 19, 2013 3:01:34 PM UTC+5, Nic Wise wrote:

If you have a look on github, I just pushed a change which does Mark
As Sent (and also, uploading an invoice works if you full the fields
in right). I was working on that for something else, so your timing is
just right :slight_smile:

here’s the change set so you can see what has changed

https://github.com/nicwise/FreeAgent/commit/3e60ed63a856558422e823b8978b99a2b7328c28

You can only call Mark as Sent on a DRAFT. It’ll fail if it’s not :slight_smile:
And you cant Email a Draft… has to be marked as sent to be emailed
:slight_smile:

Found that out last night the hard way.

On 19 July 2013 09:17, Cheesa <fake...@gmail.com <javascript:>> wrote:

Hi Nic,
Is it possible for you to describe the logic to set the status so that I
can
try to write in my code?

On Thursday, July 18, 2013 3:53:40 PM UTC+5, Nic Wise wrote:

The api library is mine, which I wrote for MobileAgent

https://github.com/nicwise/FreeAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )

On 18 July 2013 11:33, Jonathan Barrett jona...@freeagent.com wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of
the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to
handle

this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice
is

creating properly but status is not according to that; that i set.
it

always
Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only
know

only about Draft state. I also see Sent and Open state on my
account;

but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

The api library is mine, which I wrote for MobileAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )On 18 July 2013 11:33, Jonathan Barrett jonathan@freeagent.com wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to handle this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice is
creating properly but status is not according to that; that i set. it always
Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only know
only about Draft state. I also see Sent and Open state on my account; but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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.

Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

https://dev.freeagent.com/docs/invoices

-JOn Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only know only
about Draft state. I also see Sent and Open state on my account; but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve

Hi Nic,
Is it possible for you to describe the logic to set the status so that I
can try to write in my code?On Thursday, July 18, 2013 3:53:40 PM UTC+5, Nic Wise wrote:

The api library is mine, which I wrote for MobileAgent

https://github.com/nicwise/FreeAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )

On 18 July 2013 11:33, Jonathan Barrett <jona...@freeagent.com<javascript:>> wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of
the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to handle
this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice is
creating properly but status is not according to that; that i set. it
always

Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only know
only about Draft state. I also see Sent and Open state on my account;
but i

really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

Hi Chessa,

Please take a look at our OAuth introductionhttps://dev.freeagent.com/docs/oauthfor how to do this. Basically after the app approval step you will get an
authorisation code which you will exchange for two codes: the access and
refresh tokens. Once you have these, store them somewhere and do the
requests to the API using the access token.

As mentioned there, you’ll also need to get a new access token after the
current one expires using the refresh token.

Regards,
IoanOn Monday, 22 July 2013 12:06:11 UTC+1, Cheesa wrote:

Bundle of thanks nice wise :slight_smile:

One more question, please give the answer that if i want Freeagent App
authentication only once. mean if i approve app once then after that
whenever i want to perform any action on freeagent without authentication.
then how it is possible???

Regards and Thanks,
Cheesa,
Developer, Ambosco, Sherserve

On Friday, July 19, 2013 3:01:34 PM UTC+5, Nic Wise wrote:

If you have a look on github, I just pushed a change which does Mark
As Sent (and also, uploading an invoice works if you full the fields
in right). I was working on that for something else, so your timing is
just right :slight_smile:

here’s the change set so you can see what has changed

https://github.com/nicwise/FreeAgent/commit/3e60ed63a856558422e823b8978b99a2b7328c28

You can only call Mark as Sent on a DRAFT. It’ll fail if it’s not :slight_smile:
And you cant Email a Draft… has to be marked as sent to be emailed
:slight_smile:

Found that out last night the hard way.

On 19 July 2013 09:17, Cheesa fake...@gmail.com wrote:

Hi Nic,
Is it possible for you to describe the logic to set the status so that
I can
try to write in my code?

On Thursday, July 18, 2013 3:53:40 PM UTC+5, Nic Wise wrote:

The api library is mine, which I wrote for MobileAgent

https://github.com/nicwise/FreeAgent

Invoices - aside from reading them - is something I’ve not done yet.
Mark as Sent isn’t in there, for eg (neither is creating an invoice,
tho it might be shortly :slight_smile: )

On 18 July 2013 11:33, Jonathan Barrett jona...@freeagent.com wrote:

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status
of

the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to
handle

this?

-J

On Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status
of

invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice
is

creating properly but status is not according to that; that i set.
it

always
Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only
know

only about Draft state. I also see Sent and Open state on my
account;

but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/


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/groups/opt_out.


Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice is
creating properly but status is not according to that; that i set. it
always Draft. :frowning:
now tell me where i am wrong?On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only know only
about Draft state. I also see Sent and Open state on my account; but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve

Hi Cheesa,

Thanks for clarifying. The API documentation on setting the status of the
invoice to sent is here:

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

However, it looks like you’re using one of the API libraries to handle this?

-JOn Thursday, 18 July 2013 11:30:10 UTC+1, Cheesa wrote:

Jonathan I knew it. my question was that how can i set the status of
invoice using API coding. Like
i am setting invoice status as Sent like that:

Invoice oInvoice= new Invoice();
oInvoice.Status=“Sent”;

when i have a look on my freeagent account then i saw that invoice is
creating properly but status is not according to that; that i set. it
always Draft. :frowning:
now tell me where i am wrong?

On Thursday, July 18, 2013 2:55:31 PM UTC+5, Jonathan Barrett wrote:

https://dev.freeagent.com/docs/invoices

-J

On Thursday, 18 July 2013 10:38:22 UTC+1, Cheesa wrote:

Hi Team,

Can anyone tell me please different states of invoice??? i only know
only about Draft state. I also see Sent and Open state on my account; but i
really dn’t know that how can i set it using API.???

Thanks and Kind Regards,
Cheesa
Developer, Ambosco, Sherserve