Get an auditfile
Status of an upload: the period the file covers, the import's progress, counts, and errors or warnings.
Other LedgerSuite products call this with their own client_credentials token with scope askledger:auditfile, for administrations that include them. An AskLedger admin of the administration (company group owner or admin, or AskLedger role admin) can call it signed in to AskLedger, or with an OAuth token that has ledger:write (Pro and Enterprise). API keys cannot upload.
bearerAuthorizationBearer <token>A company group API key (al_live_…, created at /dashboard/api), an OAuth access token from the same authorization flow MCP clients use, or (other LedgerSuite products, /administrations routes only) a LedgerSuite client_credentials token.
administrationId*stringLedgerSuite administration id; its linked ledger is used
auditfileId*stringAuditfile id (auf_…)
OK
application/json- response
id*stringauf_…
administrationId*stringfileName*stringstatus*stringawaiting_upload: PUT the file to the upload URL, then complete; queued/processing: being imported; processed: the data is available; failed: see error
"awaiting_upload""queued""processing""processed""failed"sizeBytes*|nullversion*|XAF version: 3.2 or 4.0
fiscalYear*|From the header, e.g. 2025 or 2025-2026
periodStart*|Start of the period the file covers (YYYY-MM-DD)
periodEnd*|End of the period the file covers (YYYY-MM-DD)
companyName*string|nullkvkNumber*|KvK number in the file's header
software*|Accounting package that made the file
error*|nullissues*array<>Errors and warnings found in the file (at most 100)
counts*|Imported records: relations, ledgerAccounts, vatCodes, journals, transactions, transactionLines, openingBalanceLines
createdAt*stringcompletedAt*string|nullprocessedAt*string|nullcurl -X GET "https://example.com/administrations/string/auditfiles/string"{ "id": "string", "administrationId": "string", "fileName": "string", "status": "awaiting_upload", "sizeBytes": -9007199254740991, "version": "string", "fiscalYear": "string", "periodStart": "string", "periodEnd": "string", "companyName": "string", "kvkNumber": "string", "software": "string", "error": { "code": "file_missing", "message": "string" }, "issues": [ { "code": "string", "severity": "error", "message": "string", "line": -9007199254740991, "column": -9007199254740991 } ], "counts": { "property1": 0, "property2": 0 }, "createdAt": "string", "completedAt": "string", "processedAt": "string"}