invoices.filesExtract
Read an uploaded invoice file and return extracted invoice candidates with suggested customers. For CSV files, first call without csvMapping to get headers, then call again with the confirmed column mapping.
GETPOST
/api/v1/accounting/invoices.filesExtractPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_invoices_files_extractFields
sha256stringRequiredThe SHA-256 hash of the file's exact bytes, as 64 lowercase hex characters.
SHA-256 hash as 64 lowercase hex characters
filenamestringRequiredThe file's name, including its extension.
1–200 characters
mimeTypestringRequiredThe file's type, such as image/jpeg or application/pdf.
at most 150 characters
csvMappingobject or null
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.filesExtract \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'sha256=9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c' \
--data-urlencode 'filename=receipt.pdf' \
--data-urlencode 'mimeType=example'{
"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/invoices.filesExtract
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.filesExtract \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'sha256=9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c' \
--data-urlencode 'filename=receipt.pdf' \
--data-urlencode 'mimeType=example'More in Invoicing.