GET companies/{companyId}
Gets a comppany
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| companyId | The id of the company |
Define this parameter in the request URI. |
Response Information
Returns: The company model
Response body formats
application/json, text/json
Sample:
{
"Uri": "/companies/1",
"Id": 1,
"Enabled": false,
"CompanyName": "ExampleCompany",
"VatNumber": "BE0123456789",
"RegistrationNumber": null,
"Email": "example@company.com",
"Phone": "051123456",
"Fax": "051123456",
"Roles": [
8,
4
]
}
application/xml, text/xml
Sample:
<CompanyRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CompanyName>ExampleCompany</CompanyName>
<VatNumber>BE0123456789</VatNumber>
<Email>example@company.com</Email>
<Phone>051123456</Phone>
<Fax>051123456</Fax>
<Roles>
<RoleDiscriminator>Dispatcher</RoleDiscriminator>
<RoleDiscriminator>Sender</RoleDiscriminator>
</Roles>
<Uri>/companies/1</Uri>
<Id>1</Id>
<Enabled>false</Enabled>
</CompanyRestGet>
