Получение контракта по ID
Метод позволяет получить существующий контракт по его идентификатору.
Определение текущего статуса контракта:
- issueDate is null - контракт не выдан
- issueDate is not null and closeDate is null - контракт открыт
- closeDate is not null - контракт закрыт
Path Parameters
id int64 required
id
Responses
- 200
- 401
- 403
- 404
OK
*/*
Schema
Example (from schema)
Schema
additional boolean
autoCalcSchedule boolean
barcode string
branchId int64
captive boolean
clientGroupId int64
clientId int64
closeDate date-time
closedStatusId int64
collateralLineId int64
comment string
contactDocId string
contactNewOutgoingDate date-time
contactTrnReference string
contractAgentId int64
contractCollectorId int64
contractLine object
contractTypeId int64
createSubdivisionId int64
createUserId int32
creationDate date
creditFieldReq object
creditOfficerId int64
creditProductId int64
creditProductName string
currencyId int64
currentStatusId int64
defermentDate date-time
defermentDistributionType string
defermentProlongationTranchesQty int32
defermentTranchesQty int32
defermentType string
definedIntForepaymentAmount double
depositFieldId int64
depositProductId int64
determinationDate date
documentsReceived boolean
donorId int64
dropOutDate date-time
effectiveRateDiscount double
eirForInvestor double
estimateFee double
firstRepaymentDate date
fixedEstimateFee double
fixedInsuranceFee double
fixedJoinFee double
forIssue boolean
forIssueSetupCreditOfficerId int64
forIssueSetupDate date-time
fullCostOfCredit double
fullTaxAmount double
groupConventionId int64
id int64
indexed boolean
institutionDate date
insurance boolean
insuranceFee double
insurancePolicy string
insurancePremiumAmount double
insurancePremiumRate double
issueDate date-time
issueInProcess boolean
issuePlanDate date
joinFee double
lastIntLimitDate date
loadingDate date
loanAmount double
loanApplicationId int64
loanCategoryId int64
loanStage int32
marketRate double
merchantCommissionRate double
msfoIntReserveRate double
msfoReserveRate double
name string
ofertaCode string
originalContractId int64
prevPeriodDelinqDays int32
prevProlongationsQty int32
prolonged boolean
repaymentNorm double
repaymentPlanDate date
restructedContractId int64
schedules object[]
subdivisionId int64
subsidyAmount double
uid string
underCourt boolean
underCourtAmount double
underCourtDate date
{
"additional": true,
"autoCalcSchedule": true,
"barcode": "string",
"branchId": 0,
"captive": true,
"clientGroupId": 0,
"clientId": 0,
"closeDate": "2024-11-20T07:47:13.800Z",
"closedStatusId": 0,
"collateralLineId": 0,
"comment": "string",
"contactDocId": "string",
"contactNewOutgoingDate": "2024-11-20T07:47:13.800Z",
"contactTrnReference": "string",
"contractAgentId": 0,
"contractCollectorId": 0,
"contractLine": {
"id": 0,
"lineLimit": 0
},
"contractTypeId": 0,
"createSubdivisionId": 0,
"createUserId": 0,
"creationDate": "2024-11-20",
"creditFieldReq": {
"allowHolidaysPayment": true,
"allowPrepayment": true,
"amountSecondPeriod": 0,
"arrearInterestFirstDay": 0,
"arrearInterestLastDay": 0,
"calcArrearInterest": true,
"calcIntOnDelinqBalanceOnlyAtDelinqIntRate": true,
"calcIntOnIssueDate": true,
"calcInterestOnDelinqBalance": true,
"calendarDaysPenalty": true,
"chargeExtraInterest": true,
"creditLineId": 0,
"dateCalcMethodId": 0,
"delayPenaltyDay": 0,
"delinqIntRateDelay": 0,
"delinquencyIntRate": 0,
"discountingEnabled": true,
"earlyProlongationFromCurrentDate": true,
"extraIntDaysQty": 0,
"fees": [
{
"amountTypeId": 0,
"chargeBaseId": 0,
"chargeMomentId": 0,
"chargePenalty": true,
"compositeValue": "string",
"id": 0,
"includeInTrancheAmountChargeBase": true,
"involvedInFullCostCalc": true,
"notForCharge": true,
"notForRepayment": true,
"value": 0,
"valueTypeId": 0
}
],
"firstWeekendWithoutPenalty": true,
"fixedDelayPenalty": 0,
"forepaymentConsiderationMethodId": 0,
"fullScheduleDatesRecalc": true,
"id": 0,
"intRateFirstPeriod": 0,
"intRateSecondPeriod": 0,
"interestCalcMethodId": 0,
"interestChargeMethodId": 0,
"interestForTranche": 0,
"interestGracePeriod": 0,
"interestLgotPeriod": 0,
"interestLgotRate": 0,
"interestOnLoanAmount": true,
"interestRateTypeId": 0,
"inviteAmountPct": 0,
"inviteDiscountPerFriend": 0,
"inviteMinIntRate": 0,
"keepUsingDelinqIntRate": true,
"mandatoryChargePeriod": 0,
"penaltyRatePeriodFrom": "FROM_DELINQUENCY_START_BY_STATUS",
"penaltyRates": [
{
"feeRate": 0,
"id": 0,
"interestRate": 0,
"keyRateCB": 0,
"keyRateCBTypeId": 0,
"periodBegin": 0,
"periodEnd": 0,
"principalRate": 0
}
],
"penaltyTypeId": 0,
"principalDistribMethodId": 0,
"principalParts": [
{
"id": 0,
"part": 0,
"trancheNo": 0
}
],
"prolongationOnNewSchedule": true,
"prolongationPeriod": 0,
"prolongedIntToLastTranche": true,
"qtyDaysStopPenaltyOnClose": 0,
"qtyTranchesFirstPeriod": 0,
"qtyTranchesRepNormSecondPeriod": 0,
"qtyTranchesSecondPeriod": 0,
"repaymentNorm": 0,
"repaymentSequenceId": 0,
"scheduleRecalcEnabled": true,
"shiftFirstRepaymentDate": true,
"shortTermControl": true,
"stopPenaltyOnClose": true,
"trancheCount": 0,
"trancheDuration": 0,
"useDelinqIntRateForPsk": true,
"useDelinqIntRateTillNextTranche": true,
"useEirForDiscounting": true
},
"creditOfficerId": 0,
"creditProductId": 0,
"creditProductName": "string",
"currencyId": 0,
"currentStatusId": 0,
"defermentDate": "2024-11-20T07:47:13.800Z",
"defermentDistributionType": "string",
"defermentProlongationTranchesQty": 0,
"defermentTranchesQty": 0,
"defermentType": "string",
"definedIntForepaymentAmount": 0,
"depositFieldId": 0,
"depositProductId": 0,
"determinationDate": "2024-11-20",
"documentsReceived": true,
"donorId": 0,
"dropOutDate": "2024-11-20T07:47:13.800Z",
"effectiveRateDiscount": 0,
"eirForInvestor": 0,
"estimateFee": 0,
"firstRepaymentDate": "2024-11-20",
"fixedEstimateFee": 0,
"fixedInsuranceFee": 0,
"fixedJoinFee": 0,
"forIssue": true,
"forIssueSetupCreditOfficerId": 0,
"forIssueSetupDate": "2024-11-20T07:47:13.800Z",
"fullCostOfCredit": 0,
"fullTaxAmount": 0,
"groupConventionId": 0,
"id": 0,
"indexed": true,
"institutionDate": "2024-11-20",
"insurance": true,
"insuranceFee": 0,
"insurancePolicy": "string",
"insurancePremiumAmount": 0,
"insurancePremiumRate": 0,
"issueDate": "2024-11-20T07:47:13.800Z",
"issueInProcess": true,
"issuePlanDate": "2024-11-20",
"joinFee": 0,
"lastIntLimitDate": "2024-11-20",
"loadingDate": "2024-11-20",
"loanAmount": 0,
"loanApplicationId": 0,
"loanCategoryId": 0,
"loanStage": 0,
"marketRate": 0,
"merchantCommissionRate": 0,
"msfoIntReserveRate": 0,
"msfoReserveRate": 0,
"name": "string",
"ofertaCode": "string",
"originalContractId": 0,
"prevPeriodDelinqDays": 0,
"prevProlongationsQty": 0,
"prolonged": true,
"repaymentNorm": 0,
"repaymentPlanDate": "2024-11-20",
"restructedContractId": 0,
"schedules": [
{
"activeBefore": "2024-11-20T07:47:13.801Z",
"amount": 0,
"chargeIssueFee": true,
"creationDate": "2024-11-20T07:47:13.801Z",
"eachRepaymentFeeFree": true,
"id": 0,
"issued": true,
"specifiedRepaymentNorm": 0,
"tranches": [
{
"eachRepaymentFee": 0,
"eachRepaymentFeeByType": [
{
"amount": 0,
"amountType": 0,
"feeId": 0
}
],
"id": 0,
"interest": 0,
"issueDate": "2024-11-20",
"lgot": true,
"principal": 0,
"repaymentDate": "2024-11-20",
"rest": 0
}
]
}
],
"subdivisionId": 0,
"subsidyAmount": 0,
"uid": "string",
"underCourt": true,
"underCourtAmount": 0,
"underCourtDate": "2024-11-20"
}
Unauthorized
Forbidden
Not Found
GET /main/contracts/:id
Request
Request
curl / cURL
curl -L -X GET '//localhost/main/contracts/:id' \
-H 'Accept: */*'
python / requests
curl -L -X GET '//localhost/main/contracts/:id' \
-H 'Accept: */*'
go / native
curl -L -X GET '//localhost/main/contracts/:id' \
-H 'Accept: */*'
nodejs / axios
curl -L -X GET '//localhost/main/contracts/:id' \
-H 'Accept: */*'
php / guzzle
curl -L -X GET '//localhost/main/contracts/:id' \
-H 'Accept: */*'
java / OkHttp
curl -L -X GET '//localhost/main/contracts/:id' \
-H 'Accept: */*'