Job client contacts lookup list
Job Client Contact
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | jobs.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=contacts | |
| Client | Yes | Client code | client=8/1244 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/jobs.json?company=8&version=6&client=8/1244&&action=contacts
Example request (legacy username/password):
http://<SERVER>/jsonapi/jobs.json?company=8&version=6&client=8/1244&&action=contacts&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 2,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"clientcontactInternalRef": 8600,
"clientcontactFullName": "James Janson",
"variable_selected": false
}
]
}