Company List

Companylist

Parameter

Type

Description

[IN]

Parameters described in Overview

Company

[OPTIONAL]

String

[IN]

The company context

Action

String

[IN]

Identifier for the list requested

Response

XML/JSON

[OUT]

An XML tree / JSON string containing companies the user has access to

Description

Calling the timesheets API with an action of companylist retrieves a list of company index numbers and associated descriptions.

Return Values

Response – List of companies.

The structure of the response is:

<company control_uuid="F1BECF29058A4FC28437728721F89372">
  <control_number>1</control_number>
  <control_ourname>The Professional Services Company</control_ourname>
</company>
{
    "errormessage": "",
    "responsecode": 1,
    "pagerows": 0,
    "totalrows": 1,
    "responsestatus": "OK",
    "success": true,
    "responsemessage": "",
    "errorcode": 0,
    "totalpages": 1,
    "pagenumber": 1,
    "data": [
        {
            "control_uuid": "F1BECF29058A4FC28437728721F89372",
            "control_number": 1,
            "control_ourname": "The Professional Services Company"
        }
    ]
}