AR/AP

Customer AP bill list (accountant mirror, read-only)

The accountant's AP read (#3884): accountant-scoped read-only mirror of GET /companies/{companyId}/ap, returning the same bill read models. The customer Home "Bills due" tile is computed from these rows, not by a separate endpoint: it sums amountCents - amountPaidCents over bills whose ledgerStatus is posted, whose lifecycleStatus is open or partially_paid, and whose dueDate is set and on or before today + 30 days (overdue bills included). Request it without status to get the rows the tile reads. Same conversion gate as the customer surface: 404 with error title AR_AP_NOT_ENABLED while AR/AP items are not enabled for the customer. Optional status and vendorId filters as on the customer mount. Entity scope is resolved from the customer's own entity roster (accountants hold no per-user entity grants): an explicit entityId must be one of the customer's concrete (non-group) entities; absent, the customer's single concrete entity is used; a multi-entity customer without entityId gets 422 ENTITY_SELECTION_REQUIRED and a customer with no entity gets 422 ENTITY_SCOPE_UNAVAILABLE.

get/accountant/companies/{customerId}/ap

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

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.

status, string
vendorId, string uuid

Response

Same payload as the customer mount: ApItem read models

Changes

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