API Insert Contact

POST https://api.freeagent.com/v2/contacts

Just a quick query. In the API docs, the JSON for inserting a contact is
below. I’ve highlighted the URL, as I assume the 70 on the end is not
correct, and it should just be https://api.freeagent.com/v2/contacts/

{ “contact”:
{
“url”:“https://api.freeagent.com/v2/contacts/70”,
“first_name”:“test”,
“last_name”:“me”,
“organisation_name”:“Acme Ltd”,
“email”:"test@example.com",
“billing_email”:"billing@example.com",
“phone_number”:“12345678”,
“mobile”:“9876543210”,
“address1”:“11 George Street”,
“address2”: “Kings Court”,
“address3”: “Flat 6”,
“town”:“London”,
“region”: “Southwark”,
“postcode”:“SE1 6HA”,
“country”:“United Kingdom”,
“contact_name_on_invoices”:true,
“locale”:“en”,
“account_balance”:"-100.0",
“uses_contact_invoice_sequence”:false,
“charge_sales_tax”:“Auto”,
“sales_tax_registration_number”:“ST12345”,
“active_projects_count”:0,
“status”:“Active”,
“created_at”:“2011-09-14T16:00:41Z”,
“updated_at”:“2011-09-16T09:34:41Z”
}}

Hi Paul,

The JSON given in the docs is an example response from the server after a
successful creation. When POSTing the data for a new contact, just send it
to https://api.freeagent.com/v2/contacts and omit the url parameter.

Regards,
IoanOn Wednesday, November 4, 2015 at 4:55:24 PM UTC, Paul Smith wrote:

POST https://api.freeagent.com/v2/contacts

Just a quick query. In the API docs, the JSON for inserting a contact is
below. I’ve highlighted the URL, as I assume the 70 on the end is not
correct, and it should just be https://api.freeagent.com/v2/contacts/

{ “contact”:
{
“url”:“https://api.freeagent.com/v2/contacts/70”,
“first_name”:“test”,
“last_name”:“me”,
“organisation_name”:“Acme Ltd”,
“email”:"test@example.com",
“billing_email”:"billing@example.com",
“phone_number”:“12345678”,
“mobile”:“9876543210”,
“address1”:“11 George Street”,
“address2”: “Kings Court”,
“address3”: “Flat 6”,
“town”:“London”,
“region”: “Southwark”,
“postcode”:“SE1 6HA”,
“country”:“United Kingdom”,
“contact_name_on_invoices”:true,
“locale”:“en”,
“account_balance”:"-100.0",
“uses_contact_invoice_sequence”:false,
“charge_sales_tax”:“Auto”,
“sales_tax_registration_number”:“ST12345”,
“active_projects_count”:0,
“status”:“Active”,
“created_at”:“2011-09-14T16:00:41Z”,
“updated_at”:“2011-09-16T09:34:41Z”
}}