Books

Recognition / amortization schedule for a document

Demo-parity customer route for an explicitly allowlisted active or test company. /qa callers additionally require the QA application marker and persisted test lifecycle. Returns the recognition or amortization schedule for a contract / invoice document line: the schedule type and a list of period entries with running cumulative amounts and posted/pending status. { immediate: true } is returned only when the company posts through the subledger core and no schedule exists for the document in the selected entity. Every other schedule-less case returns { status, reason } and makes no recognition claim: unavailable/document_not_found for a document outside the selected entity (unknown and sibling-entity documents are indistinguishable), not_scheduled/no_business_event for a document with no business event, and unavailable/schedule_authority_not_entity_scoped when the only schedule authority is not keyed to the selected entity.

get/companies/{companyId}/books/schedules/recognition

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 to read. Mutually exclusive with reportingScopeId/scopeAsOf. Omission is accepted only when the actor is authorized to exactly one concrete entity.

documentId, string required

The invoice/bill document id. Resolved to its recognition schedule only after the document is authorized for the selected legal entity. It is then matched against business_events.metadata.sourceDocumentId, and the schedule keys on that event id (event_schedules.source_event_id).

lineIndex, integer

Zero-based line index for multi-line documents (reserved for future use; currently only the first schedule per document is returned).

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

Recognition schedule payload

object required
success, boolean
data, union

Recognition or amortization schedule for a document/contract line. When immediate is true, entity-keyed schedule authority proves the document recognises in full in the period it was received. When scheduleType and schedule are populated, a persisted schedule exists. When status is present, nothing proves either, and no recognition timing is claimed.

Changes

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