List candidate documents for a customer transaction
Changed onThe accountant-portal twin of /companies/{companyId}/transactions/{id}/document-candidates (#2013), read by the bookkeeping agent for every transaction it decides (zero questions, #2587; rule P32: the documents are searched before a question is asked). With query the company's documents are searched by text, beyond the newest ones. Refused with 403 AGENT_PHI_RESTRICTED to the agent's key for a patient-data-restricted company. At a PHI-bounded company (phi_bounded_ingestion) the agent's key is answered no candidates, with documentsForModel: false (a transaction that does not exist is still 404); a failed read of that flag answers the agent's key 503.
Request
- Base URLhttps://api.medianfi.com/api/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
Path parameters
Query parameters
Case-insensitive substring over document name, vendor, customer name and invoice number.
Response
Ranked candidate documents, money-compatible with the transaction
Changes
- info
endpoint added
- info