This utility function is used for managing index interest rates (for example, a rate that is pegged to the prime rate of the Fed). Index Interest Rates are set at the loan type level and can be used by loans associated with the loanTypeId. Index Interest Rates are only relevant to interest rates and not relevant to promo rates.
Index Interest Rate values can be updated with a new value with an effective date in the past. When a new Index Interest Rate value is set, the previous rate end date will be set to one calendar day before the new rate's effective date. If the new rate's effective date is in the past, the Peach system will replay all Active loans (to clarify, Active loans at the time of Index Interest Rate update) with the new Index Interest Rate value and re-accrue loans' interest.
externalId | string or null (externalId) <= 50 characters A lender's identifier for a resource. After the resource is successfully created, a lender can use the Peach assigned ID OR
the Fetching with
|
indexDescription | string The index interest rate description. For example: "1 Month LIBOR Rate" or "Custom rate". |
country | string = 2 characters Country. English short name according to ISO 3166-1 standard. |
annualRate required | number <float> The annual interest rate value for the period defined. Format is decimal. For example, 0.01 is 1% annual rate, 0.2 is 20% annual rate. |
startDate required | string <date> The start date of the index rate in the product timezone. The start date is inclusive. When a new Index Interest Rate value is added, the previous rate end date will be set to one calendar day before the new rate's start date. If the new rate's start date is in the past, the Peach system will replay all "active" loans (to clarify, "active" loans at the time of Index Interest Rate addition) with the new Index Interest Rate value and re-accrue loans' interest. Replaying the entire portfolio of loans might take time. It is recommended that the Customer set the new Index Interest Rate at night. |
endDate | string or null <date> The index rate end date n the product timezone. The end date is inclusive. Pass |
Success
{- "externalId": "string",
- "indexDescription": "string",
- "country": "st",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "indexDescription": "string",
- "country": "st",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
}
Success
{- "status": 0,
- "count": 0,
- "data": [
- {
- "id": "string",
- "externalId": "string",
- "indexDescription": "string",
- "country": "st",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
]
}
This endpoint is used for updating index interest rates.
Success
{- "annualRate": 0,
- "endDate": "2019-08-24",
- "indexDescription": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "indexDescription": "string",
- "country": "st",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
}
Success
{- "status": 0,
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "indexDescription": "string",
- "country": "st",
- "annualRate": 0,
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
}
Request sandbox access