upload_document
Upload an INVOICE or RECEIPT (PDF, image, or .zip of them) for analysis.
file_base64 is the file's raw bytes, base64-encoded. direction is
payable (incoming supplier invoice) or receivable (outgoing).
Creates Item(s) and queues extraction.
This door is invoices-only: it never routes a file onward by type, so a
bank statement, a journal export or a balance sheet sent here is analysed
and then just sits as a document. For anything that is not an invoice — or
when you are not sure what the file is — use upload_intake.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"filename": "<filename>",
"file_base64": "<file_base64>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| direction | No | payable | |
| company_id | Yes | ||
| file_base64 | Yes |