API – Predict Payment Application
General
With LoanPro, you can preview how a payment is applied before it is logged. To do this, send a POST request to a URL formatted as:
https://loanpro.simnang.com/api/public/api/1/Loans(515)/Autopal.PredictPaymentApplication()
The body is formatted as follows:
{
"Date": "2021-11-23",
"Amount": "225.26",
"Extra": "payment.extra.tx.principal",
"chargeFeeType": "loan.cardfee.types.1",
"chargeFeeAmount": "5",
"chargeFeePercentage": "5",
"PaymentTypeId": 1
}
Parameter | Description |
Date | The date on which the payment will apply (YYYY-MM-DD). |
Amount | The amount of the payment. |
Extra | How to apply extra (see Payment Collections). |
chargeFeeType | The type of fee to charge (see Payment Collections). |
chargeFeeAmount | The amount to charge as a fee. |
chargeFeePercentage | The fee percentage. |
PaymentTypeId | The ID of the payment type (options in tenant settings). |