API – Creating Charges

General

Creating charges is done through the API by sending a PUT request to the loan on which the charge will be added. This article assumes you already have an existing loan.  If not, see Creating a Loan with the API.

To add a charge to a loan, you will need to send a PUT request to the URL of the desired loan. For example, to add a charge to the loan with the id 515, the url would be https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(515).

Request Body

Below is an example of a charge request

{
  "Charges": {
    "results": [
      {
        "amount": "85.00",
        "chargeTypeId": 9,
        "date": "2015-11-16",
        "info": "CTEST Charge Type 11/16/2015",
        "chargeApplicationType": "loan.latefeeapp.payoff",
        "interestBearing": 1
      }
    ]
  }
}
  • amount – The amount of the charge
  • chargeTypeId – The ID of the charge type (determined by tenant settings)
  • date – Charge date
  • info – Information about the charge
  • chargeApplicationType – The application type for the charge. See Charge Collection
  • interestBearing – Whether or not interest will accrue on the charge.


How did we do?


Powered by HelpDocs (opens in a new tab)