API – Archiving Loans/Resurrecting Loans

Archiving

To archive a loan, send a PUT request to the URL of the target loan. The PUT request will have the following body:

{"archived":1}

For example, to archive the loan with ID of 50, send a PUT with the above body to the URL https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(50).

Note: Archiving a loan will incur additional charges on your account! Be careful!

Note: To get the latest cost for archiving a loan, send a GET request to https://loanpro.simnang.com/api/public/api/1/tenant.settings(tenant.usage.prices) and look for the JSON object with the id of “tenant.udage.prices.archive”

Resurrecting

To resurrect a loan, send a PUT request to the URL of the target loan. The PUT request will have the following body:

{"archived":0}

For example, to archive the loan with ID of 50, send a PUT with the above body to the URL https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(50).

Note: Resurrecting a loan will incur additional charges on your account! Be careful!

Note: To get the latest cost for resurrecting a loan, send a GET request to https://loanpro.simnang.com/api/public/api/1/tenant.settings(tenant.usage.prices) and look for the JSON object with the id of “tenant.udage.prices.resurrect”

Note: You cannot delete an archived loan. Archived loans must be resurrected before they can be deleted.


How did we do?


Powered by HelpDocs (opens in a new tab)