AR/AP

Apply customer workflow transitions to multiple AP items

DARK — 404s unless company_subledger_flags.ar_ap_items_enabled is true. Per-item atomic batch of the single-item transition (1..100 items, no duplicate itemIds). Returns 200 even on mixed outcomes — each entry in results carries its own ok flag and one item's failure never aborts a sibling. Envelope-level failures (auth, validation, entity authority) still surface as non-200.

post/companies/{companyId}/ap/transitions/batch

Request

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

Path parameters

companyId, 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
transitions, object[] required

Response

Batch processed; returns { results: [...] } where each entry is { itemId, ok: true, item } (item includes availableTransitions) or { itemId, ok: false, error: { code, message } }.

Changes

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