Company List

Returns a list of expense sheet companies.

Company List

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpensesheets.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=companylist

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=companylist

Example request (legacy username/password):

http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=companylist&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 3,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "companyUuid": "66619B8544E74787A6C7FA2445289A4A",
      "companyModified": 1532083132,
      "companyRecordVersionNumber": 3572,
      "companyNumber": 1,
      "companyName": "Confidence Creative Ltd"
    },
    {
      "companyUuid": "59C692B982E14724A871DFAD9B5D4720",
      "companyModified": 1532011544,
      "companyRecordVersionNumber": 125,
      "companyNumber": 2,
      "companyName": "Birmingham Brewers"
    },
    {
      "companyUuid": "B7D42AA8659D4CC5ADAF05912371E2B2",
      "companyModified": 1532608034,
      "companyRecordVersionNumber": 363,
      "companyNumber": 11,
      "companyName": "RS International"
    }
  ]
}