Transactions

List entity-scoped candidate documents for a transaction

Changed on

The mirror of /documents/{id}/match-candidates (#2013). Search and ranking run on the server; the attach-document picker previously filtered a ten-row client page, so a company holding hundreds of unmatched receipts could be shown none. Candidates are filtered on the DISPLAYED document type, which is re-derived from metadata and can differ from the stored type column. A candidate whose attachedTransactionId is non-null is already attached to another transaction: attaching it here replaces that link rather than adding one, and for a bill that reverses its payment posting.

get/companies/{companyId}/transactions/{id}/document-candidates

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required
id, string uuid required

Query parameters

query, string

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

limit, integer

Response

Ranked candidate documents, money-compatible with the transaction

object required
success, boolean
data, object

Changes

    • info

      added the optional property data/candidates/items/document/categoryGlAccountId to the response with the status

    • info

      added the optional property data/candidates/items/rejectedByPerson to the response with the status