AR/AP

Match a bank transaction to a bill and reflect its pay state

DARK — 404s unless company_subledger_flags.ar_ap_items_enabled is true. Creates the applied document_match through the production bill-payment apply path (idempotent, reconciliation-lock safe — never touches a reconciled transaction/JE), then reflects the AP pay state via the existing fail-closed recompute. A covering match settles the bill to paid; a partial one leaves it partially_paid. Re-POST of the same pair converges to the same state rather than a conflict.

post/companies/{companyId}/ap/{id}/match

Request

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

Path parameters

companyId, string uuid required
id, string uuid required

Query parameters

entityId, string uuid

Concrete legal entity that owns this AR/AP request. Omission is accepted only when the actor is authorized to exactly one concrete entity; consolidated scope cannot mutate or serve these entity-only resources.

Headers

X-Median-App-Surface, 'qa'

Optional customer-app bundle marker for production-promoted demo-parity routes. Production customer calls omit this header. When present, qa selects the QA bundle and the server additionally requires an allowlisted test company with persisted client_status=test.

Request body

object required
transactionId, string uuid required

Response

AP item after the match (with availableTransitions)

Changes

No recorded changes to this operation across all 110 revisions of this API.