API – Logging a Charge-Off
Introduction
This article explains how to log a charge-off through the API, but you can also do so through the UI.
Request URL
To create a charge-off for a loan, you will need to send a PUT request to the URL of the desired loan. For example, to create a charge-off for a loan with the id 17, the URL would look like this:
https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(17)
Request Body
{
"Credits":{
"results":[
{
"resetPastDue":0,
"chargeOffFlag":1,
"customApplication":{},
"loanId":17,
"date":"2019-12-23",
"paymentType":1,
"category":4,
"amount":"100.00",
"title":"Example Charge-Off"
}
]
}
}
- resetPastdue - Dictates whether the charge-off will reset the days past due on the account. (0 = no, 1 = yes)
- chargeOffFlag - Flags the credit as a charge-off. (0 = no, 1 = yes)
- customApplication - Allows you to specify a custom application for the charge-off.
- loanId - ID of the account that the charge-off will be applied towards.
- date - Date that the charge-off will be applied to the account.
- paymentType - The ID of the payment type being applied to the charge-odd.
- category - The category of the charge-off being applied.
- amount - The amount of the charge-off.
- title - The title of the charge-off