Client List

Selecting a client for an activity record. This action can take place prior to creating an activity. It would normal be used if creating an activity on a client, where the activity is not related to a job.

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaactivities.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.9Overview
Model StructureYesName of model requiredmodelstructure=clientslistUsing data models
ViewNoStored filter appliedUsing views
SortNoChange the view's default sort ordersort=CLIENTSorting
FiltersNoFilter by a key fieldFilters
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=clientslist

Example request:

http://<SERVER>/jsonapi/activities.json?style=modeldata&modelstructure=clientslist&action=clientslist&company=1&view=SELECTVIEW44486&version=3.9&user=user&password=user

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 480,
  "totalpages": 48,
  "responsemessage": "",
  "pagerows": 10,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "clientUuid": "C28D517EC2F14921B347C4E1744E0CBC",
      "clientTimeStampModified": 1496750532,
      "clientRecordVersionNumber": 730,
      "clientCode": "1/GRA",
      "clientName": "Granada",
      "clientCategoryName": "Client",
      "clientPhone": "0171 698 9800",
      "clientCategory": 3,
      "clientHandlerUserID": 239,
      "clientWebURL": "www.onedayx.com",
      "clientEmail": "[email protected]",
      "clientInactive": false,
      "clientType": "Arts 1",
      "clientOpStatus": "Bronze",
      "clientMarketSector": "Arts, Sport, Entertainment1",
      "clientOnHold": true,
      "clientHandlerFullName": "Aaron Cronshaw"
    },
    {
      "clientUuid": "ADA9CBAD7BA43447A94DF6E39A5D03AA",
      "clientTimeStampModified": 1496750447,
      "clientRecordVersionNumber": 99,
      "clientCode": "1/C4036",
      "clientName": "999 Inc",
      "clientCategoryName": "Client",
      "clientPhone": "",
      "clientCategory": 3,
      "clientHandlerUserID": 239,
      "clientWebURL": "",
      "clientEmail": "",
      "clientInactive": false,
      "clientType": "B2B2",
      "clientOpStatus": "",
      "clientMarketSector": "Tourism",
      "clientOnHold": false,
      "clientHandlerFullName": "Aaron Cronshaw"
    },
    etc., etc.,
    }