AR/AP

Drawer lifecycle action (mark paid / void / uncollectible), FSM-enforced

Transitions to 'paid' also record an ar_item_payments row for the outstanding amount (paid_at = today) and settle amountPaidCents, so the pipeline's collected-by-month reflects manual mark-paid flows.

post/companies/{companyId}/ar/{id}/status

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

Status updated (with availableTransitions)

Changes

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