This object represents the interest and promo rates of the loan. You can modify interest and promo rates at any time. If a rate is modified or added with an effective date in the past, we will recalculate loan balances retroactively and future expected payments from the effective date. If a rate is modified or added with effective date in the future, we will recalculate future expected payments only.
This endpoint is used for adding rates. A loan can have multiple rates. If two or more interestRate
overlap on the same date we use the lowest value. If two or more promoRate
overlap on the same date, we
take the sum of the promo rates for the given day, and cap this rate at the maximum interest rate for the
given day (to avoid accruing negative interest).
The added interestRate
must be within the bounds of any corresponding minimum and maximum rate range
configuration that is found on the loan type (if any).
Success
{- "interestRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "isEndExistingRates": false
}, - "promoRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "isEndExistingRates": false
}, - "caseId": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "ratesValidation": {
- "interestRateExceedsMax": true,
- "interestRateBelowMinOrZero": true
}
}
}
Success
{- "data": {
- "interestRates": [
- {
- "id": "string",
- "type": "interestRate",
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "setAtActivation": true,
- "interestType": "absolute"
}
], - "promoRates": [
- {
- "id": "string",
- "type": "interestRate",
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "setAtActivation": true
}
]
}
}
This endpoint returns rates details of a loan for a given date(s).
Interest rates:
If two or more interest rates are active
on the same date (aka overlap), the Peach system selects the lowest rate (also called effective rate) to accrue interest.
Promo rates:
If two or more promo rates are active
on the same date (aka overlap), the Peach system sums up the rates as "effective" promo rate.
Success
{- "data": {
- "effectiveRates": [
- {
- "effectiveDate": "2019-08-24",
- "interestRate": 0,
- "interestType": "absolute",
- "indexRate": 0,
- "promoRate": 0,
- "effectiveInterestRate": 0
}
]
}
}
This endpoint is used for updating a single interest
or promo
rate. (don't pass both in the same call). The updating of an
interest rate cannot lead to a gap in the loan where there is no reference interest rate.
Success
{- "interestRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}, - "promoRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}, - "caseId": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "ratesValidation": {
- "interestRateExceedsMax": true,
- "interestRateBelowMinOrZero": true
}
}
}
This endpoint is used for removing a single interest
or promo
rate. The deletion of an
interest rate cannot lead to a gap in the loan where there is no reference rate.
Rates where setAtActivation is true
can only be deleted with a special force permission.
Success
This endpoint is used for adding rates. A draw can have multiple rates. If two or more interestRate overlap on the same date we use the lowest value. If two or more promoRate overlap on the same date, we take the sum of the promo rates for the given day, and cap this rate at the maximum interest rate for the given day (to avoid accruing negative interest).
The added interestRate
must be within the bounds of any corresponding minimum and maximum rate range
configuration that is found on the loan type (if any).
Success
{- "interestRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "isEndExistingRates": false
}, - "promoRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "isEndExistingRates": false
}, - "caseId": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "ratesValidation": {
- "interestRateExceedsMax": true,
- "interestRateBelowMinOrZero": true
}
}
}
Success
{- "data": {
- "interestRates": [
- {
- "id": "string",
- "type": "interestRate",
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "setAtActivation": true,
- "interestType": "absolute"
}
], - "promoRates": [
- {
- "id": "string",
- "type": "interestRate",
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "setAtActivation": true
}
]
}
}
This endpoint returns rates details of a draw for a given date(s).
Interest rates:
If two or more interest rates are active
on the same date (aka overlap), the Peach system selects the lowest rate (also called effective rate) to accrue interest.
Promo rates:
If two or more promo rates are active
on the same date (aka overlap), the Peach system sums up the rates as "effective" promo rate.
Success
{- "data": {
- "effectiveRates": [
- {
- "effectiveDate": "2019-08-24",
- "interestRate": 0,
- "interestType": "absolute",
- "indexRate": 0,
- "promoRate": 0,
- "effectiveInterestRate": 0
}
]
}
}
This endpoint is used for updating a single interest
or promo
rate (don't pass both in the same call). The updating of an
interest rate cannot lead to a gap in the loan where there is no reference interest rate.
Success
{- "interestRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}, - "promoRate": {
- "status": "active",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}, - "caseId": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "ratesValidation": {
- "interestRateExceedsMax": true,
- "interestRateBelowMinOrZero": true
}
}
}
This endpoint is used for removing a single interest
or promo
rate. The deletion of an
interest rate cannot lead to a gap in the loan where there is no reference rate.
Rates where setAtActivation is true
can only be deleted with a special force permission.
Success