Attached Files

Main Page

Moneylender can store files within the portfolio, associated with individual loans. These files can be read from the LoanAttachment record type. The attachment system in Moneylender creates a sequence of binary block records to house the attached file. The API will manage the allocation of binary data into and out of the portfolio for you. Files are submitted and retrieved as base64 encoded data. When uploading a file, specify the attachment ID in the query string, and supply the base64 encoded data in the request body. Optionally specify raw=true in the query string to supply the raw bytes in the body instead of a base64 encoded string.

To download/retrieve a file from the API, supply a valid attachment ID in the query string and the API will return the file as a base64 encoded string.

upload - read and write records in the portfolio.

download - read and write records in the portfolio.