Create Invoice and Contact simultaneouly

Hi Fari,

You can’t make an invoice and contact in the same request. You should make
a POST request to create the contact which returns the newly created
contact, read the url parameter from the contact and then specify it when
creating the invoice.

Kind regards,

GraemeOn 25 July 2012 14:56, Fari farahmand.moslemi@gmail.com wrote:

Hi,

Is there any way to create an invoice and a contact simultaneously in one
POST request? For example:

‘{“invoice”:{“contact”:{“first_name”:“Foo”,“last_name”:“Bar”,“phone_number”:“987654321”…}}}’
*

Thank you in advance,*
*
Fari


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/UeSSkfqEtMMJ.
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

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