Manuais
PHC GO Update Company
 

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:

  1. In case of success:


    {
    "code": 1,
    "message": "Information saved with success"
    }


  2. In case of error:


    {
    "code": 100,
    "message": "Error message"
    }



JSON Specification for Update Company



Customer


 
NameTypePHC GO EntityPHC GO FieldObservations
nameStringE1nomecomp
addressStringE1morada
address2StringE1morada2
localityStringE1local
postalCodeStringE1codpost
phoneStringE1telefone
taxNumberStringE1ncont
nameForDocumentsStringE1doctitu
headerForDocumentsStringE1doccabe
footerForDocumentsStringE1docmens
shareCapitalDoubleE1capsocial
birthdayDateE1birthdayDate of establishment of the company