Attach a document to a transaction
attach_documentAttaches a stored document (from list_documents) to a bank transaction as its evidence — confirming a match_ambiguous proposal (pass one of its candidate_ids) or manually resolving an awaiting_transaction/extraction_failed document. This links evidence only: it NEVER creates or changes a booking. Already-matched documents are refused (attachments are never silently re-pointed). event_id is a classified event id, e.g. from list_documents proposal.candidate_ids or get_unreviewed_events. actor_id is optional and defaults to the organisation entity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | No | Optional. Defaults to the organisation the authenticated API key is bound to, so you normally omit it and never need to ask the user for their organisation UUID. If provided, it must match the key’s org or the request is rejected. | 0e91146d-511c-469f-bdee-5c867b26ae0d |
| actor_id | No | Optional. Defaults to the organisation entity (correct for an org-scoped key). If provided, it must be an entity belonging to this organisation — arbitrary UUIDs are rejected, so the audit trail cannot be attributed to someone else. | |
| event_id | Yes | The transaction (classified event) it evidences. | |
| document_file_id | Yes | The document to attach (list_documents). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matched_via | Yes | ||
| document_file_id | Yes | ||
| matched_event_id | Yes |