Path parameters

Body Required

Body of request to update an interest rate record.

Responses

  • 200 object

    Interest rate effective for an account over a given time range

  • 401

    Unauthorized.

  • 403

    Forbidden.

  • 404

    Account not found

  • 429

    Too many requests.

  • Unexpected Error.

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"
  }
}