Accountant Documents

List candidate documents for a customer transaction

Changed on

The 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.

get/accountant/companies/{customerId}/transactions/{transactionId}/document-candidates

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Path parameters

customerId, string uuid required
transactionId, string uuid required

Query parameters

query, string

Case-insensitive substring over document name, vendor, customer name and invoice number.

limit, integer

Response

Ranked candidate documents, money-compatible with the transaction

object required
success, boolean
data, object

Changes