Appearance
Contact persons
Get all contact person
Method : GET
Endpoint : /api/clients_contact_persons
{
"data": [
{
"CLIENT_CONTACT_PERSON_ID": 1,
"CLIENT_ID": 1,
"MAIN_PERSON": false,
"IS_ACTIVE": true,
"NAME": "Vārds",
"SURNAME": "Uzvārds",
"PHONE1": "+371 12312312",
"PHONE2": "+ 371 12312312",
"EMAIL": "test@test.lv",
"POSITION": "",
"NOTES": ""
}
],
"links": {
"first": "/api/clients_contact_persons?page=1",
"last": "/api/clients_contact_persons?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "/api/clients_contact_persons",
"per_page": 1000,
"to": 3,
"total": 3
}
}Get only changed contact persons
Method : GET
Endpoint : /api/clients_contact_persons/changes
TIP
Returns changed contact persons by default within the last hour or specified timestamp (if date is specified). Example:
https://<yourdomain>/api/clients_contact_persons/changes?token=<your_token>&date=1672527661
Get single contact person
Method : GET
Endpoint : /api/clients_contact_persons/{id}
{
"CLIENT_CONTACT_PERSON_ID": 1,
"CLIENT_ID": 1,
"MAIN_PERSON": false,
"IS_ACTIVE": true,
"NAME": "Vārds",
"SURNAME": "Uzvārds",
"PHONE1": "+371 12312312",
"PHONE2": "+ 371 12312312",
"EMAIL": "test@test.lv",
"POSITION": "",
"NOTES": ""
}