API Creating new Invoice status flag not accepted

Hi,

I am using the V2 API to try and create a new invoice with the status
‘Sent’. The parameter is being sent to the API and the Invoice created
however the status remains on draft.

Is this a bug with the API or something that could be wrong?

Hi Graeme,

We’re actually writing a hook for WHMCS which creates FreeAgent
invoices when a WHMCS invoice is paid.

The invoice goes into FreeAgent with the same details on it, and
should be marked as sent straight away so that our accounts department
can explain the invoice against a corresponding transaction. Otherwise
they have to manually set them to Sent before they can explain them.
We don’t want to actually e-mail the FreeAgent invoice out until it is
explained, so that the customer sees an invoice with zero due
(otherwise they might pay twice mistakenly).

Regards,

MatthewOn Apr 26, 10:58 am, Graeme Boyd graeme.b...@freeagent.com wrote:

Hi Chris,

At the moment you should make a draft invoice and then update it as sent
using a second API call. This mirrors the behaviour in the app.

I’ll look into creating sent invoices directly without a second api call.
Can you give me some insight into what your doing? Is it the case that
you’re normally creating Sent invoices rather than Draft invoices?

Kind regards,

Graeme

On 26 April 2012 09:33, Chris Page sirhc.p...@gmail.com wrote:

Hi,

I am using the V2 API to try and create a new invoice with the status
‘Sent’. The parameter is being sent to the API and the Invoice created
however the status remains on draft.

Is this a bug with the API or something that could be wrong?


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.


Graeme Boyd
Senior Software Engineer
FreeAgent Central Ltd
40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

Hi Matthew,
Did you complete this plugin? were looking for something to link our whmcs
invoicing to FreeAgent too!On Friday, 27 April 2012 10:08:20 UTC+1, Matthew Hall wrote:

Hi Graeme,

We’re actually writing a hook for WHMCS which creates FreeAgent
invoices when a WHMCS invoice is paid.

The invoice goes into FreeAgent with the same details on it, and
should be marked as sent straight away so that our accounts department
can explain the invoice against a corresponding transaction. Otherwise
they have to manually set them to Sent before they can explain them.
We don’t want to actually e-mail the FreeAgent invoice out until it is
explained, so that the customer sees an invoice with zero due
(otherwise they might pay twice mistakenly).

Regards,

Matthew

On Apr 26, 10:58 am, Graeme Boyd graeme.b...@freeagent.com wrote:

Hi Chris,

At the moment you should make a draft invoice and then update it as sent
using a second API call. This mirrors the behaviour in the app.

I’ll look into creating sent invoices directly without a second api
call.
Can you give me some insight into what your doing? Is it the case that
you’re normally creating Sent invoices rather than Draft invoices?

Kind regards,

Graeme

On 26 April 2012 09:33, Chris Page sirhc.p...@gmail.com wrote:

Hi,

I am using the V2 API to try and create a new invoice with the status
‘Sent’. The parameter is being sent to the API and the Invoice created
however the status remains on draft.

Is this a bug with the API or something that could be wrong?


You received this message because you are subscribed to the Google
Groups
“FreeAgent API” group.
To post to this group, send email to freeag...@googlegroups.com<javascript:>.

To unsubscribe from this group, send email to
freeagent_ap...@googlegroups.com <javascript:>.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.


Graeme Boyd
Senior Software Engineer
FreeAgent Central Ltd
40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

Hi Chris,

At the moment you should make a draft invoice and then update it as sent
using a second API call. This mirrors the behaviour in the app.

I’ll look into creating sent invoices directly without a second api call.
Can you give me some insight into what your doing? Is it the case that
you’re normally creating Sent invoices rather than Draft invoices?

Kind regards,

GraemeOn 26 April 2012 09:33, Chris Page sirhc.page@gmail.com wrote:

Hi,

I am using the V2 API to try and create a new invoice with the status
‘Sent’. The parameter is being sent to the API and the Invoice created
however the status remains on draft.

Is this a bug with the API or something that could be wrong?


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

Graeme Boyd
Senior Software Engineer
FreeAgent Central Ltd
40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

Hi Matthew,

Did you resolve this in the end?

The API allows you to mark an invoice as sent
(FreeAgent Developer Dashboard) so you could
follow up the initial POST request with a PUT? It won’t be atomic but might
work for you,

CheersOn Friday, 27 April 2012 10:08:20 UTC+1, Matthew Hall wrote:

Hi Graeme,

We’re actually writing a hook for WHMCS which creates FreeAgent
invoices when a WHMCS invoice is paid.

The invoice goes into FreeAgent with the same details on it, and
should be marked as sent straight away so that our accounts department
can explain the invoice against a corresponding transaction. Otherwise
they have to manually set them to Sent before they can explain them.
We don’t want to actually e-mail the FreeAgent invoice out until it is
explained, so that the customer sees an invoice with zero due
(otherwise they might pay twice mistakenly).

Regards,

Matthew

On Apr 26, 10:58 am, Graeme Boyd graeme.b...@freeagent.com wrote:

Hi Chris,

At the moment you should make a draft invoice and then update it as sent
using a second API call. This mirrors the behaviour in the app.

I’ll look into creating sent invoices directly without a second api
call.
Can you give me some insight into what your doing? Is it the case that
you’re normally creating Sent invoices rather than Draft invoices?

Kind regards,

Graeme

On 26 April 2012 09:33, Chris Page sirhc.p...@gmail.com wrote:

Hi,

I am using the V2 API to try and create a new invoice with the status
‘Sent’. The parameter is being sent to the API and the Invoice created
however the status remains on draft.

Is this a bug with the API or something that could be wrong?


You received this message because you are subscribed to the Google
Groups
“FreeAgent API” group.
To post to this group, send email to freeag...@googlegroups.com<javascript:>.

To unsubscribe from this group, send email to
freeagent_ap...@googlegroups.com <javascript:>.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.


Graeme Boyd
Senior Software Engineer
FreeAgent Central Ltd
40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774