API – Delete a Loan
Please note that deleting a loan will cause extra fees to be charged to your account! Proceed with care!
To delete a loan, simply send a DELETE request to the url of the desired loan. For example, to delete the loan with id 515, you would send a DELETE request to https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(515). The loan will now be deleted.
Please note that prices are subject to change, so it is recommended to pull the latest price from the server for any custom UI which has a confirmation prompt!
To get the amount that you will be charged, send a GET request to https://loanpro.simnang.com/api/public/api/1/tenant.settings(tenant.usage.prices) and accessing the JSON object with the id “tenant.usage.prices.delete”. Please note that you will be charged the amount stated in this endpoint, regardless of whether you call the endpoint!
Note: Archived loans cannot be deleted. To delete an archived loan, you will need to resurrect the loan first.