Documents without a booking
list_unattached_documentsThe company's documents (receipts, supplier invoices, statements) that NO booking holds yet, newest first: id, file_name, mime, size_bytes, uploaded_on, external_link (true = a link to a file stored elsewhere, nothing to read). Use it when the user has put invoices into YESbusiness Documents and asks you to match them to bank transactions: read a candidate with get_document (its signed_url, not inline base64, unless the file is small), then pass its id in documents_ids on propose_bank_transaction_booking or propose_booking. search narrows by file name. Only available when the connection was granted access to files.
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>"
},
"name": "list_unattached_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Text the file name must contain. | |
| company_id | Yes | The company to work on — one of list_my_companies' company_id values. |