documents.list
List kept records: tax documents (filed returns and schedules, GST/HST returns, notices of assessment and reassessment, CRA letters, payment confirmations, T4, T4A and T5 slips and summaries), company documents, bank statement PDFs and other records. Filter by kind (tax_document, company_document, bank_statement, other, company, contractor for any record filed with a contractor, or all), contractorId (records filed with one contractor, such as their tax forms and IDs, and invoices they attached to a pay period in the portal), contractorPeriodId (the invoices attached to one pay period), taxYear and search. Each record has its extracted fields, extraction status, contractorId and contractorPeriodId; with kind contractor or contractorId, contractorNames maps each contractor to their name.
/api/v1/accounting/documents.listPermissions
Who can call it
Retries
MCP
Fields
kindenumWhich kind of record or job this is.
tax_documentcompany_documentbank_statementotherallcompanycontractorDefault "all"
taxYearinteger1990 to 2100
searchstringText to search for.
at most 200 characters
includeArchivedbooleanAlso include archived records.
contractorIdstring (ID)The ID of a contractor, from contractors.list.
contractorPeriodIdstring (ID)The ID of the related record.
limitintegerHow many results to return at most.
1 to 200 · Default 100
offsetintegerHow many results to skip, for the next page of a list.
0 to 100000 · Default 0
Example
curl https://app.getoatmilk.com/api/v1/accounting/documents.list \
-H "Authorization: Bearer $OATMILK_API_KEY"{
"data": { … }
}Try it
Try it
Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.
curl https://app.getoatmilk.com/api/v1/accounting/documents.list \
-H "Authorization: Bearer $OATMILK_API_KEY"More in Documents and signing.