Method
The method to be called is:
Parameters
In the request headers the Authorization header must have the Access Token:
- Authorization: {{accessToken}}
JSON body
In the body of the POST a JSON structure like this one has to be passed:
{
"company": {
"name": "New Company",
"address": "Grand Boulevard 1",
"locality": "London",
"postalCode": "1234-100",
"phone": "912345678",
"taxNumber": "290048346",
"nameForDocuments": "New Company",
"headerForDocuments": "Header for Documents",
"footerForDocuments": "Footer for Documents",
"shareCapital": 5000.00,
"birthday": "1989-06-16 00:00:00.000"
}
}
Return Information
Any call made to this method will return a JSON information with this structure:
-
In case of success:
{
"code": 1,
"message": "Information saved with success"
}
-
In case of error:
{
"code": 100,
"message": "Error message"
}
JSON Specification for Update Company
Customer
| Name | Type | PHC GO Entity | PHC GO Field | Observations |
| name | String | E1 | nomecomp | |
| address | String | E1 | morada | |
| address2 | String | E1 | morada2 | |
| locality | String | E1 | local | |
| postalCode | String | E1 | codpost | |
| phone | String | E1 | telefone | |
| taxNumber | String | E1 | ncont | |
| nameForDocuments | String | E1 | doctitu | |
| headerForDocuments | String | E1 | doccabe | |
| footerForDocuments | String | E1 | docmens | |
| shareCapital | Double | E1 | capsocial | |
| birthday | Date | E1 | birthday | Date of establishment of the company |