Skip to main content

Entry Documents

Documents are proof files attached to entries. They are essential for establishing the completeness of a financial record.

Document Types

TypePurpose
BASISThe foundational document (invoice, contract, purchase order)
PAYMENT_PROOFEvidence of payment (bank statement, receipt, transfer confirmation)
SUPPORTINGAdditional supporting documents
CREDIT_NOTECredit note issued for a refund

Document Statuses

StatusDescription
REQUESTEDAccountant has requested this document (no file yet)
PENDINGFile uploaded, awaiting review
APPROVEDReviewed and approved by accountant
REJECTEDRejected with a reason, needs re-upload

Document Workflow

1. Upload

Users attach documents to entries, specifying the document type:

POST /entries/{entryId}/documents/upload?workspaceId={id}
Content-Type: multipart/form-data

file: <binary>
documentType: BASIS

2. Request

Accountants can request missing documents:

POST /entries/{entryId}/documents/request
{
"documentName": "Bank statement for June",
"documentType": "PAYMENT_PROOF",
"comment": "Please provide the bank statement showing this transfer"
}

3. Fulfill

Users upload the requested document:

POST /entries/{entryId}/documents/{documentId}/fulfill?workspaceId={id}
Content-Type: multipart/form-data

file: <binary>

4. Review

Accountants approve or reject documents:

PATCH /entries/{entryId}/documents/{documentId}/approve

PATCH /entries/{entryId}/documents/{documentId}/reject
{ "reason": "Document is illegible" }

Impact on Entry Completeness

When documents are approved or rejected, the system automatically recalculates entry completeness. See Completeness for details.