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]Unique 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
VIP ClientCustom field name
Client TypeWhether value is mandatory
truePrevious value (if changed)
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.
ID
1Scheduled amount
2000Scheduled payment date (dd.MM.yyyy)
15.03.2023Paid amount toward this part
2000Whether it's a prepayment part
falseWhether paid
trueSchedule payment type enum.
MONTHLY_PAYMENT— Monthly paymentPREPAYMENT— PrepaymentMORTGAGE— MortgageREMAINING— Remaining payment
Possible values: [MONTHLY_PAYMENT, PREPAYMENT, MORTGAGE, REMAINING]
MONTHLY_PAYMENTDate the part was paid (dd.MM.yyyy)
10.03.2023{
"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
],
"payNumber": "PAY-2023-001",
"status": "ACTIVE",
"comment": "Special conditions apply",
"fields": [
{
"fieldId": 1,
"value": "VIP Client",
"name": "Client Type",
"required": true,
"oldValue": "Regular Client"
}
],
"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": [
{
"id": 1,
"amount": 2000,
"date": "15.03.2023",
"payment": 2000,
"prepayment": false,
"paid": true,
"type": "MONTHLY_PAYMENT",
"paidDate": "10.03.2023"
}
]
}