ContractDTO
Full contract information object. Returned by GET /v1/open-api/contract/{id}.
Contract ID
5001Contract number
CNT-2023-001Contract duration in months (0 if only prepayment)
12Original contract price (without discount)
50000Initial payment (0 if only installment payment)
10000Initial payment date (dd.MM.yyyy)
15.01.2023Paid amount
15000Remaining amount to be paid (amount − discount − payed)
35000Discount amount
5000Discount description
New year discountPenalty
0Creation time (epoch seconds)
1672531200Employee who created the contract
Alice JohnsonCancellation time (epoch seconds)
1672617600Employee who cancelled the contract
Bob SmithCancellation reason
Client requestDeletion time (epoch seconds)
1672704000Employee who deleted the contract
Charlie BrownPrevious contract ID if client was replaced
5000Previous contract number if client was replaced
CNT-2022-999client object
Company client information object.
Client ID
1001Client name (individual or legal entity)
John DoeClient INN (individual's PINFL)
123456789Client status enum.
Possible values: [NEW, ACTIVE, PASSIVE, ARCHIVE]
ACTIVEApartment IDs.
[101,102]flatDetails object[]
Apartments — with building and house names (same rows as flats, expanded).
Apartment ID
7781Apartment number
45Room count
3Floor
5Area, m².
78.4Whether the apartment is repaired
trueBuilding ID
34Building name
A blokHouse (project) ID
12House (project) name
Green Valleyhouse object
House (project) the contract belongs to — taken from the first apartment in flatDetails.
House ID
12House name
Green ValleyUnique payment number
PAY-2023-001Contract status enum.
Possible values: [STARTED, ACTIVE, CANCELLED, FINISHED, TRANSFERRED]
ACTIVEContract comment
Special conditions applyfields object[]
Custom field values.
Field ID
1Custom field value (resolved per type
VIP ClientCustom field name
Client TypeContract field type enum (the CONTRACT-family slice of uysot-v2's CustomFieldType).
Serialized by name.
Possible values: [TEXT, EXTENDED_TEXT, DATE, SELECT, MULTI_SELECT, RADIO, TOGGLE_SWITCH, URL, TAG, LOCATION, COUNTER, ADDRESS, EMPLOYEE, FILE, NUMBER]
SELECTWhether value is mandatory
trueDisplay order
1Numeric value — only for type: NUMBER.
1500.5Currency ID — only for type: NUMBER.
1Ordered list of values for multi-row types (MULTI_SELECT/EMPLOYEE/FILE). Always an array, empty when not applicable.
[]Latitude — only for type: LOCATION.
41.311081Longitude — only for type: LOCATION.
69.240562files object[]
Attached files — only for type: FILE. Always an array, empty when not applicable.
Presigned URL to the full-size file
https://minio.uysot.uz/uysot/files/201/avatar.png?X-Amz-Expires=3600Presigned URL to the thumbnail rendition
https://minio.uysot.uz/uysot/files/201/avatar_thumb.png?X-Amz-Expires=3600Presigned URL to the smallest rendition
https://minio.uysot.uz/uysot/files/201/avatar_small.png?X-Amz-Expires=3600Deprecated, no longer populated by the API — kept only because it shipped in a previous release.
Regular ClientResponsible person full name
David WilsonResponsible person ID
201Broker name
Eve BrokerBroker ID
301currency object
Currency information object.
Currency ID
1Exchange rate (1 for the basic currency)
1Last update time (epoch seconds)
1672531200Whether it's the company's basic currency
trueCurrency code
USDMortgage amount
20000Paid mortgage amount
5000Mortgage date (dd.MM.yyyy)
20.01.2023prepaymentParts object[]
Prepayment parts.
ID
1Payment amount
5000Payment due date (dd.MM.yyyy)
15.02.2023monthlyPayments object[]
Active monthly payment schedule.
Scheduled amount
2000Scheduled payment date (dd.MM.yyyy)
15.03.2023Paid amount toward this part
2000Whether it's a prepayment part
falseWhether paid
trueSchedule row type.
Possible values: [MONTHLY_PAYMENT, PREPAYMENT, MORTGAGE, REMAINING]
MONTHLY_PAYMENTDate the part was paid (dd.MM.yyyy)
10.03.2023lead object
Compact lead reference embedded in ContractDTO as the lead field.
Carries only the lead identity and its current pipeline / responsible state — use
GET /v1/open-api/lead/{leadId} with the id for the full lead.
Lead ID
1001Lead UUID value
550e8400-e29b-41d4-a716-446655440000Lead name
New apartment buyerLead balance amount
5000ISO code of the lead balance currency, null when the lead has no currency
UZSLead pipeline status ID
1Responsible employee ID
101Responsible employee full name
Alice Johnson{
"id": 5001,
"number": "CNT-2023-001",
"delay": 12,
"amount": 50000,
"prepayment": 10000,
"prepaymentDate": "15.01.2023",
"payed": 15000,
"residue": 35000,
"discount": 5000,
"discountDescription": "New year discount",
"surcharge": 0,
"createdTimestamp": 1672531200,
"createdBy": "Alice Johnson",
"cancelledTimestamp": 1672617600,
"cancelledBy": "Bob Smith",
"cancelText": "Client request",
"deletedTimestamp": 1672704000,
"deletedBy": "Charlie Brown",
"baseId": 5000,
"baseNumber": "CNT-2022-999",
"client": {
"id": 1001,
"name": "John Doe",
"inn": "123456789",
"status": "ACTIVE"
},
"flats": [
101,
102
],
"flatDetails": [
{
"id": 7781,
"number": "45",
"rooms": "3",
"floor": 5,
"area": 78.4,
"repaired": true,
"buildingId": 34,
"buildingName": "A blok",
"houseId": 12,
"houseName": "Green Valley"
}
],
"house": {
"id": 12,
"name": "Green Valley"
},
"payNumber": "PAY-2023-001",
"status": "ACTIVE",
"comment": "Special conditions apply",
"fields": [
{
"fieldId": 1,
"value": "VIP Client",
"name": "Client Type",
"type": "SELECT",
"required": true,
"sortOrder": 1,
"number": 1500.5,
"currencyId": 1,
"values": [],
"latitude": 41.311081,
"longitude": 69.240562,
"files": []
}
],
"responsibleBy": "David Wilson",
"responsibleById": 201,
"broker": "Eve Broker",
"brokerId": 301,
"currency": {
"id": 1,
"value": 1,
"updateTimestamp": 1672531200,
"basic": true,
"ccy": "USD"
},
"mortgage": 20000,
"mortgagePayed": 5000,
"mortgageDate": "20.01.2023",
"prepaymentParts": [
{
"id": 1,
"prepayment": 5000,
"prepaymentDate": "15.02.2023"
}
],
"monthlyPayments": [
{
"amount": 2000,
"date": "15.03.2023",
"payment": 2000,
"prepayment": false,
"paid": true,
"type": "MONTHLY_PAYMENT",
"paidDate": "10.03.2023"
}
],
"lead": {
"id": 1001,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "New apartment buyer",
"balance": 5000,
"ccy": "UZS",
"pipeStatusId": 1,
"responsibleById": 101,
"responsibleBy": "Alice Johnson"
}
}