API – Tenant Files

Getting Tenant Files

To get a list of tenant files, send a GET request to the following URL:

https://loanpro.simnang.com/api/public/api/1/files/Tenant

Uploading

To add a tenant file, send a POST request to the following URL:

https://loanpro.simnang.com/api/public/api/1/files/Tenant/false

(replace “false” with “true” to make the file publicly available)

The body will then be formatted as follows:

—————————–1661761877511986552862541093

Content-Disposition: form-data; name=”upload”; filename=”(file name here)”

Content-Type: (file content type here)(file contents here)

—————————–1661761877511986552862541093–

Deleting

To delete tenant files, send a DELETE request to a URL formatted as follows:

https://loanpro.simnang.com/api/public/api/1/files/Tenant/<id>/false
  • “<id>” – The ID of the tenant file

Getting the Homepage Image

To get the URL for a homepage image, send a GET request to a URL formatted as follows:

https://loanpro.simnang.com/api/public/api/1/files/customer.website/homepage.image({id})
  • Replace {id} with the ID of the homepage image to get


How did we do?


Powered by HelpDocs (opens in a new tab)