# API – Change Due Date

### General

In LoanPro, you can either change a due date within the UI or through the API, which this article covers. To change a due date for a loan, send a PUT request to the URL of the loan. This URL is unique to each loan because it contains a specific loan ID. For example, to create a loan funding request for the loan with the ID 702, the URL would be

https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(702)

Below is the body of the request:

{    "DueDateChanges": {        "results": [            {                "newDate": "2019-12-15",                "changedDate": "2019-12-01"            }        ]    }}

This is all that is required to change a due date. Here is an explanation of the fields:

• DueDateChanges – This is a list of the due date change(s) to be made
• newDate – The date the due date was changed to (YYYY-MM-DD)
• changedDate – The original due date (YYYY-MM-DD)

You can also add a "Charges" section to the payload in order to add a due date change fee. This is not required. Here is what the payload looks like with a charge.

{   "Charges":{      "results":[         {            "chargeTypeId":3,            "chargeApplicationType":"loan.latefeeapp.standard",            "amount":30,            "date":"2015-11-27",            "info":"CTEST FEE"         }      ]   },   "DueDateChanges":{      "results":[         {            "originalDate":"2016-12-08",            "newDate":"2016-12-29",            "changedDate":"2016-12-15"         }      ]   }}

• Charges – This object relates to applying a charge(s) for changing the due date
• chargeTypeId – The ID of the charge type (found in tenant settings)
• chargeApplicationType – The type of the charge (see Charge Collection)
• amount – The amount of the charge
• applyDate – The application date of the charge (YYYY-MM-DD)
• info – The info for the charge