Get clients info
Get Client by ID
Search for a client using their ID.
Header
Content-Type:multipart/form-data
Authorization:'Bearer token_value_from_login'Query parameters
clientIdstringRequired
Responses
200
Success (Custom Example)
application/json
stringOptionalExample:
{ "Status": "success", "Message": "", "ResponseObject": { "Id": 316258, "UserId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1", "ManagerId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1", "Name": "Test Client", "CompNum": null, "Emails": "testclient@test.com;", "Phones": "0500000000;", "APIResponse": [] } }400
Bad Request
500
Internal Server Error
get/api/Clients/GetById
GET /api/Clients/GetById?clientId=text HTTP/1.1
Accept: */*
{
"Status": "success",
"Message": "",
"ResponseObject": {
"Id": 316258,
"UserId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1",
"ManagerId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1",
"Name": "Test Client",
"CompNum": null,
"Emails": "testclient@test.com;",
"Phones": "0500000000;",
"APIResponse": []
}
}Get Client Information
Search for a client by name, email, or phone number.
Headers
Key
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
IdintegerRequiredExample:
1UserIdstringOptionalExample:
id_4059ba53ManagerIdstringOptionalExample:
id_1b3efe3bNamestringOptionalExample:
John DoeCompNumstringOptionalExample:
sample_compnumEmailsstringOptionalExample:
client@example.comPhonesstringOptionalExample:
sample_phonesClientsstringOptional
APIResponsestringOptional
Responses
200
Success (Custom Example)
application/json
stringOptionalExample:
{ "Status": "success", "Message": "", "ResponseObject": { "Id": 316258, "UserId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1", "ManagerId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1", "Name": "Test Client", "CompNum": null, "Emails": "testclient@test.com;", "Phones": "0500000000;", "APIResponse": [] } }400
Bad Request
500
Internal Server Error
post/api/Clients/GetByParams
POST /api/Clients/GetByParams HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 191
{
"Id": 1,
"UserId": "id_4059ba53",
"ManagerId": "id_1b3efe3b",
"Name": "John Doe",
"CompNum": "sample_compnum",
"Emails": "client@example.com",
"Phones": "sample_phones",
"Clients": null,
"APIResponse": null
}{
"Status": "success",
"Message": "",
"ResponseObject": {
"Id": 316258,
"UserId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1",
"ManagerId": "1ebbd3dd-4c4a-4e9a-a254-6a2b9b1f14b1",
"Name": "Test Client",
"CompNum": null,
"Emails": "testclient@test.com;",
"Phones": "0500000000;",
"APIResponse": []
}
}Last updated