Update interest rate record for an account during the given time period. Note that the interest_rate_id of the record will change.
PUT
/accounts/{account_id}/interest_rates
Path parameters
-
account_id string Required
ID of the Account
Body Required
Body of request to update an interest rate record.
-
effective_at_inclusive_start string Required
The
Date-Time
start of the window for this effective interest rate -
effective_at_exclusive_end string Required
The
Date-Time
end of the window for this effective interest rate. The keyword 'infinity' may be used as a date later than all other dates. -
interest_rate_id number
The record identifier for an existing interest rate record
PUT /accounts/{account_id}/interest_rates
curl \
-X PUT https://<your_environment_name>-uat-api.canopyservicing.com/accounts/can_52322/interest_rates \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"effective_at_inclusive_start":"2018-07-20T09:12:30+00:00","effective_at_exclusive_end":"2018-07-20T09:12:30+00:00","interest_rate_id":"14","tags":{"scra":"true"}}'
Request example
{
"effective_at_inclusive_start": "2018-07-20T09:12:30+00:00",
"effective_at_exclusive_end": "2018-07-20T09:12:30+00:00",
"interest_rate_id": "14",
"tags": {
"scra": "true"
}
}
Response example (200)
{
"account_id": 4,
"line_item_id": "can_26",
"effective_at_inclusive_start": "2018-07-20T09:12:30+00:00",
"effective_at_exclusive_end": "2018-07-20T09:12:30+00:00",
"interest_rate": "1.23",
"interest_rate_id": "10",
"tags": {
"scra": "true"
}
}