Documents
List Documents for a Record
Lists the documents linked to a given business record (purchase order, purchase invoice, bill, or stock take). Because one document can be linked to several records, the same file appears here for every record it relates to.
Upload Document
Uploads a file and links it to a business record. Send as `multipart/form-data`.
Stream Document File
Streams a document's file inline (PDF or image) through the backend. Content-Type reflects the stored file's type.
Update Document Description
Updates a document's description. The description is the only editable field — the stored file itself is immutable, so upload a new document to replace it.
Delete Document
Permanently deletes a document, the stored file, and every link to it. Because one document can be linked to several records, deleting it removes it from all of them.