AR/AP

Aggregate applied bank-match coverage for a bill

DARK — 404s unless company_subledger_flags.ar_ap_items_enabled is true. Server-authoritative evidence the record-paid control gates on: coveredCents is the SUM of every applied document_match allocation against this bill's linked document, counted once per transaction, so a bill settled by several partial payments reports fullyCovered: true. Fails closed to zero coverage when the bill has no linked document. Deliberately served here rather than from the documents match-proposal read, which is gated by the unrelated intelligence-home flag.

get/companies/{companyId}/ap/{id}/match-coverage

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.

Response

{ amountCents, coveredCents, fullyCovered, matches: [{ transactionId, amountCents }] }

Changes

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