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.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Query parameters
Concrete legal entity to read. Mutually exclusive with reportingScopeId/scopeAsOf. Omission is accepted only when the actor is authorized to exactly one concrete entity.
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).
Zero-based line index for multi-line documents (reserved for future use; currently only the first schedule per document is returned).
Headers
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
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.