Client details

Returns a single client record

Clients

If you wish to access a single client record you would normally use the clientdetails model

For more details about using models see Using data models

For clients two models are available:

  • clientslist
  • clientdetails
  • clientfinancial
ParameterDescriptionExampleMore info
APIThe API areaclients.json
ActionNot required
GeneralParameters described in overviewuser=user&password=userOverview
CompanyCompany numbercompany=1
ModelstructureName of model requiredModelstructure=clientdetailsUsing data models
ClientSpecify clientclient=1/P0909
ResponseReturned dataA JSON string containing the data

Example request:

http://<SERVER>/jsonapi/clients.json?company=1&version=3.3&user=user&password=user&company=1&style=modeldata&modelstructure=clientdetails&client=1/P0909

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 1,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "clientUuid": "493686EA86774194831FFE438B031917",
      "clientTimeStampModified": 1534507527,
      "clientRecordVersionNumber": 87,
      "clientCustomField196": "new item for list",
      "clientCustomField204": "111",
      "clientCustomField211": "2017-09-21",
      "clientCustomField260": "",
      "clientCustomField296": "1",
      "clientCustomField315": false,
      "clientCustomField323": "",
      "clientNotes": "",
      "clientCode": "1/P0909",
      "clientName": "",
      "clientStreet": "Hollins Park, Hollins Lane",
      "clientAddress1": "",
      "clientAddress2": "Warrington",
      "clientCounty": "http://www.synergist.co.uk",
      "clientPostcode": "WA2 8WA",
      "clientCountry": "",
      "clientCountryCode": "UK",
      "clientCountryName": "United Kingdom",
      "clientPhone": "",
      "clientFax": "",
      "clientHandlerUserID": 412,
      "clientHandlerFullName": "Matthew Test",
      "clientWebURL": "www.synergist.co.uk",
      "clientEmail": "",
      "clientISDN": "",
      "clientInternalClient": false,
      "clientInactive": false,
      "clientOPSourceClient": "Advertisment",
      "clientType": "",
      "clientEmployees": "",
      "clientOpStatus": "",
      "clientMarketSector": "Arts, Sport, Entertainment1",
      "clientDefaultSpec": "",
      "clientLeadRating": "",
      "clientOnHold": false,
      "clientTimeZoneCode": "UTCA",
      "clientTimezoneDescription": "",
      "clientCompanyNumber": 1
    }
  ]
}

Note: needs 12.2 for custom fields