Client representative

create

request
POST /api/v2/clients/999999999/representative HTTP/1.1

{
  "representativeId" : 999999998
}
Table 127. /api/v2/clients/{clientId}/representative
Parameter Description

clientId

The represented client’s ID

Path Type Description Constraints

representativeId

Number

The representative’s ID

Must not be null

response
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
}
Table 128. response description
Path Type Description

firstName

String

firstName

familyName

String

familyName

patronymicName

String

patronymicName

city

String

city

address

String

address

email

String

email

birthdayDay

Number

birthdayDay

birthdayMonth

Number

birthdayMonth

birthdayYear

Number

birthdayYear

tel1

String

tel1

tel2

String

tel2

gender

Boolean

gender

passportNumber

String

passportNumber

informationSource

String

informationSource

comment

String

comment

profession

String

profession

employmentPlace

String

employmentPlace

driver

Boolean

driver

computer

Boolean

computer

smsAccepted

Boolean

smsAccepted

emailAccepted

Boolean

emailAccepted

phoneAccepted

Boolean

phoneAccepted

mailAccepted

Boolean

mailAccepted

deleted

Boolean

deleted

vipDiscount

Number

vipDiscount

clReplacementDiscountDate

String

clReplacementDiscountDate

initialOrdersSum

Number

initialOrdersSum

ordersSum

Number

ordersSum

isMobileClient

Boolean

isMobileClient

mobileAppLastUsage

String

mobileAppLastUsage

contractId

String

contractId

contractDate

String

contractDate

clientCardId

Number

clientCardId

assistant

Object

assistant

assistant.id

Number

user’s id

assistant.firstName

String

user’s firstName

assistant.familyName

String

user’s familyName

assistant.patronymicName

String

user’s patronymicName

list

request
GET /api/v2/clients/999999999/representative HTTP/1.1
Table 129. /api/v2/clients/{clientId}/representative
Parameter Description

clientId

The represented client’s ID

response
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
}
Table 130. response description
Path Type Description

firstName

String

firstName

familyName

String

familyName

patronymicName

String

patronymicName

city

String

city

address

String

address

email

String

email

birthdayDay

Number

birthdayDay

birthdayMonth

Number

birthdayMonth

birthdayYear

Number

birthdayYear

tel1

String

tel1

tel2

String

tel2

gender

Boolean

gender

passportNumber

String

passportNumber

informationSource

String

informationSource

comment

String

comment

profession

String

profession

employmentPlace

String

employmentPlace

driver

Boolean

driver

computer

Boolean

computer

smsAccepted

Boolean

smsAccepted

emailAccepted

Boolean

emailAccepted

phoneAccepted

Boolean

phoneAccepted

mailAccepted

Boolean

mailAccepted

deleted

Boolean

deleted

vipDiscount

Number

vipDiscount

clReplacementDiscountDate

String

clReplacementDiscountDate

initialOrdersSum

Number

initialOrdersSum

ordersSum

Number

ordersSum

isMobileClient

Boolean

isMobileClient

mobileAppLastUsage

String

mobileAppLastUsage

contractId

String

contractId

contractDate

String

contractDate

clientCardId

Number

clientCardId

assistant

Object

assistant

assistant.id

Number

user’s id

assistant.firstName

String

user’s firstName

assistant.familyName

String

user’s familyName

assistant.patronymicName

String

user’s patronymicName