Client representative
create
POST /api/v2/clients/999999999/representative HTTP/1.1
{
"representativeId" : 999999998
}
Parameter | Description |
---|---|
|
The represented client’s ID |
Path | Type | Description | Constraints |
---|---|---|---|
representativeId |
Number |
The representative’s ID |
Must not be null |
HTTP/1.1 200 OK
{
"id" : 999999998,
"firstName" : "Представитель",
"familyName" : "Первый",
"patronymicName" : "Представителевич",
"city" : null,
"address" : null,
"email" : null,
"birthdayDay" : null,
"birthdayMonth" : null,
"birthdayYear" : null,
"tel1" : "88002220228",
"tel2" : null,
"gender" : false,
"passportNumber" : null,
"snilsNumber" : null,
"snilsIssueOn" : null,
"passportIssueOn" : null,
"passportIssuedBy" : null,
"informationSource" : null,
"comment" : null,
"profession" : null,
"employmentPlace" : null,
"driver" : false,
"computer" : false,
"smsAccepted" : false,
"emailAccepted" : false,
"phoneAccepted" : false,
"mailAccepted" : false,
"deleted" : false,
"vipDiscount" : null,
"initialOrdersSum" : 0.0,
"ordersSum" : 0.0,
"mobileAppLastUsage" : null,
"contractId" : null,
"contractDate" : null,
"clientCard" : null,
"assistant" : null,
"lastUpdatedAt" : "2025-08-27T07:23:07.865642",
"feedback" : null,
"lastSeen" : null,
"snilsVerificationStatus" : null,
"mobileClient" : false,
"clReplacementDiscountDate" : null
}
Path | Type | Description |
---|---|---|
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
|
|
city |
|
|
address |
|
|
|
|
|
birthdayDay |
|
|
birthdayMonth |
|
|
birthdayYear |
|
|
tel1 |
|
|
tel2 |
|
|
gender |
|
|
passportNumber |
|
|
informationSource |
|
|
comment |
|
|
profession |
|
|
employmentPlace |
|
|
driver |
|
|
computer |
|
|
smsAccepted |
|
|
emailAccepted |
|
|
phoneAccepted |
|
|
mailAccepted |
|
|
deleted |
|
|
vipDiscount |
|
|
clReplacementDiscountDate |
|
|
initialOrdersSum |
|
|
ordersSum |
|
|
isMobileClient |
|
|
mobileAppLastUsage |
|
|
contractId |
|
|
contractDate |
|
|
clientCardId |
|
|
assistant |
|
|
user’s id |
|
|
user’s firstName |
|
|
user’s familyName |
|
|
user’s patronymicName |
list
GET /api/v2/clients/999999999/representative HTTP/1.1
Parameter | Description |
---|---|
|
The represented client’s ID |
HTTP/1.1 200 OK
{
"id" : 999999998,
"firstName" : "Представитель",
"familyName" : "Первый",
"patronymicName" : "Представителевич",
"city" : null,
"address" : null,
"email" : null,
"birthdayDay" : null,
"birthdayMonth" : null,
"birthdayYear" : null,
"tel1" : "88002220228",
"tel2" : null,
"gender" : false,
"passportNumber" : null,
"snilsNumber" : null,
"snilsIssueOn" : null,
"passportIssueOn" : null,
"passportIssuedBy" : null,
"informationSource" : null,
"comment" : null,
"profession" : null,
"employmentPlace" : null,
"driver" : false,
"computer" : false,
"smsAccepted" : false,
"emailAccepted" : false,
"phoneAccepted" : false,
"mailAccepted" : false,
"deleted" : false,
"vipDiscount" : null,
"initialOrdersSum" : 0.0,
"ordersSum" : 0.0,
"mobileAppLastUsage" : null,
"contractId" : null,
"contractDate" : null,
"clientCard" : null,
"assistant" : null,
"lastUpdatedAt" : "2025-08-27T07:23:07.865642",
"feedback" : null,
"lastSeen" : null,
"snilsVerificationStatus" : null,
"mobileClient" : false,
"clReplacementDiscountDate" : null
}
Path | Type | Description |
---|---|---|
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
|
|
city |
|
|
address |
|
|
|
|
|
birthdayDay |
|
|
birthdayMonth |
|
|
birthdayYear |
|
|
tel1 |
|
|
tel2 |
|
|
gender |
|
|
passportNumber |
|
|
informationSource |
|
|
comment |
|
|
profession |
|
|
employmentPlace |
|
|
driver |
|
|
computer |
|
|
smsAccepted |
|
|
emailAccepted |
|
|
phoneAccepted |
|
|
mailAccepted |
|
|
deleted |
|
|
vipDiscount |
|
|
clReplacementDiscountDate |
|
|
initialOrdersSum |
|
|
ordersSum |
|
|
isMobileClient |
|
|
mobileAppLastUsage |
|
|
contractId |
|
|
contractDate |
|
|
clientCardId |
|
|
assistant |
|
|
user’s id |
|
|
user’s firstName |
|
|
user’s familyName |
|
|
user’s patronymicName |