Documents and signing

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.

GETPOST/api/v1/accounting/documents.list

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

Not offered over MCP: Accountants' supporting originals grant isn't offered over MCP yet: phase 1 is read and comment only.

Fields

  • kindenum

    Which kind of record or job this is.

    tax_documentcompany_documentbank_statementotherallcompanycontractor

    Default "all"

  • taxYearinteger

    1990 to 2100

  • includeArchivedboolean

    Also include archived records.

  • contractorIdstring (ID)

    The ID of a contractor, from contractors.list.

  • contractorPeriodIdstring (ID)

    The ID of the related record.

  • limitinteger

    How many results to return at most.

    1 to 200 · Default 100

  • offsetinteger

    How 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"
Response
{
  "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.

GET/api/v1/accounting/documents.list
curl https://app.getoatmilk.com/api/v1/accounting/documents.list \
  -H "Authorization: Bearer $OATMILK_API_KEY"

More in Documents and signing.