Hello,
We are planning on using the FreeAgent API to allow our customers to check
and update their billing details through our website when signed in.
So far, I have been able to read contact information but I am finding it
impossible to update existing contact information. I seem to be able to
submit an update request without receiving an error but nothing gets
updated.
Here are my request headers, any ideas why this is not working?
PUT /v2/contacts/597884 HTTP/1.1
User-Agent: Lawford Education Ltd
Host: api.freeagent.com
Accept: application/json
Content-type: application/json
Authorization: OAuth MY_TOKEN
{“organisation_name”:“My
Organisation",“first_name”:“Joe”,“last_name”:“Bloggs”,“email”:"joe@bloggs.com”,“phone_number”:“01234567890”,“address1”:“The
House”,“town”:“Manningtree”,“region”:“Essex”,“postcode”:“AB12CD”,“country”:“United
Kingdom”}
I have tried wrapping the array in a “contact” tag as well but still
nothing. Do I need to include all the input parameters, or just those that
need to be updated?
Many thanks in advance,
Tim