---
updatedAt: 2026-04-21T16:06:54.000Z
agentTools:
  projectIndex: https://canopy-api.readme.io/llms.txt
---

# Adjust the interest rate for a line of credit.

Applies a Military Lending Act (MLA) interest rate adjustment to the specified line of credit.

This endpoint enforces MLA interest rate caps for eligible service members and recomputes the accrued
interest retroactively for the covered period. If the recomputed interest (based on the capped rate) is
lower than what was originally charged, the borrower receives a refund for the difference.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Canopy Servicing Core API",
    "description": "\nCanopy allows you to easily manage credit, installment, or other more complex lending programs from a servicing and compliance perspective -\nwhether newly launched or migrated from existing systems. using canopy, you can track balances and transactions for each customer of your product, both in real-time and historically.\nYou can see how various policy and product changes would impact your customers, and readily generate compliance reports and minimize your risk with all real-time information always on hand.\nCanopy additionally surfaces information around all of your lending activity through its intuitive ui which provides a customer support interface as well as at-a-glance data needed for compliance and insights.\nSimply configure your product`s policies through our create product api endpoint, and then you can immediately begin adding customer accounts and relying on canopy for accurate servicing information.\n",
    "contact": {
      "name": "Canopy Support",
      "url": "https://www.canopyservicing.com/contact",
      "email": "support@canopyservicing.com"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "Contact sales to enable your sandbox",
      "description": "Your private sandbox environment"
    },
    {
      "url": "https://demo-api.us.canopyservicing.com",
      "description": "Demo environment"
    }
  ],
  "paths": {
    "/revolving/v1/accounts/{account_id}/line_of_credit/{line_of_credit_id}/mla_adjustment": {
      "post": {
        "tags": [
          "Lines of Credit"
        ],
        "summary": "Adjust the interest rate for a line of credit.",
        "description": "Applies a Military Lending Act (MLA) interest rate adjustment to the specified line of credit.\n\nThis endpoint enforces MLA interest rate caps for eligible service members and recomputes the accrued\ninterest retroactively for the covered period. If the recomputed interest (based on the capped rate) is\nlower than what was originally charged, the borrower receives a refund for the difference.",
        "operationId": "LineOfCreditCBV_post_mla_adjustment_revolving_v1_accounts__account_id__line_of_credit__line_of_credit_id__mla_adjustment_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Account Id"
            }
          },
          {
            "name": "line_of_credit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ID of the Line of Credit",
              "title": "Line Of Credit Id"
            },
            "description": "ID of the Line of Credit"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/application__schemas__revolving__line_of_credit__military_adjustment__post_mla_adjustment_request__PostMlaAdjustmentRequestSchema",
                "description": "MLA adjustment parameters"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Returns the MLA adjustment result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocMilitaryAdjustmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Your request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrBadRequestSchema"
                }
              }
            }
          },
          "404": {
            "description": "Entity not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrNotFoundSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "A server error has occurred.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrServerErrorSchema"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrBadRequestSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "Your request is invalid."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrBadRequestSchema"
      },
      "ErrNotFoundSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "Entity not found."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrNotFoundSchema"
      },
      "ErrServerErrorSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "A server error has occurred."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrServerErrorSchema"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocMilitaryAdjustmentResponse": {
        "properties": {
          "account_id": {
            "type": "string",
            "title": "Account Id",
            "description": "The account ID."
          },
          "adjustment_type": {
            "$ref": "#/components/schemas/LocMilitaryInterestAdjustmentType",
            "description": "The type of military adjustment."
          },
          "military_start_date": {
            "type": "string",
            "title": "Military Start Date",
            "description": "The start date of the military service."
          },
          "military_end_date": {
            "type": "string",
            "title": "Military End Date",
            "description": "The end date of the military service. If provided and in the past relative to current time, the adjustment will be computed up to that date. If provided and in the future, the interest rate will be updated to the new rate starting at current time."
          },
          "effective_at": {
            "type": "string",
            "title": "Effective At",
            "description": "The effective timing of when the military adjustment is scheduled."
          },
          "message": {
            "type": "string",
            "title": "Message",
            "description": "A description of events scheduled."
          },
          "line_of_credit_id": {
            "type": "string",
            "title": "Line Of Credit Id",
            "description": "The line of credit ID."
          }
        },
        "type": "object",
        "required": [
          "account_id",
          "adjustment_type",
          "military_start_date",
          "effective_at",
          "message",
          "line_of_credit_id"
        ],
        "title": "LocMilitaryAdjustmentResponse"
      },
      "LocMilitaryInterestAdjustmentType": {
        "type": "string",
        "enum": [
          "LOC_MILITARY_INTEREST_ADJUSTMENT_SCRA",
          "LOC_MILITARY_INTEREST_ADJUSTMENT_MLA"
        ],
        "title": "LocMilitaryInterestAdjustmentType"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "application__schemas__revolving__line_of_credit__military_adjustment__post_mla_adjustment_request__PostMlaAdjustmentRequestSchema": {
        "properties": {
          "military_start_date": {
            "type": "string",
            "title": "Military Start Date",
            "description": "Date when military service began (inclusive)",
            "examples": [
              "2018-03-20T09:12:28+00:00"
            ],
            "hidden": false
          },
          "military_end_date": {
            "type": "string",
            "title": "Military End Date",
            "description": "Date when military service ended (exclusive)",
            "examples": [
              "2018-03-20T09:12:28+00:00"
            ]
          }
        },
        "type": "object",
        "required": [
          "military_start_date"
        ],
        "title": "PostMlaAdjustmentRequestSchema",
        "description": "Request schema for initiating Military Lending Act (MLA) adjustments on lines of credit.\n- Applies 36% interest rate cap"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Lines of Credit",
      "description": "Manage lines of credit for your customers in Canopy."
    }
  ]
}
```