Beacon

Fiscal API

View as Markdown

Fiscal API

Fiscal issuance, reconciliation, and governance endpoints for PT operations.

reference • updated 2026-03-15

Goal

Control fiscal document issuance, reconciliation, and setup readiness to keep compliance stable without interrupting commercial operations.

Primary endpoints

EndpointFunctionTypical usage
GET /v1/fiscal/overviewaggregate fiscal statusdaily monitoring and operational handover
POST /v1/fiscal/documentsissue fiscal documentsafter eligible commercial events
POST /v1/fiscal/reconciliationreconcile discrepanciesdaily/month-end close or incident response
GET /v1/fiscal/setup-statevalidate fiscal readinessbefore go-live and after config changes

Issuance prerequisites

  • Organization fiscal profile validated.
  • Series/sequences active in the target mode (test or live).
  • Fiscal provider integration healthy and monitored.
  1. 11) Check setup

    Call setup-state and block issuance on critical pending items.
  2. 22) Issue document

    Call documents with consistent payload and idempotency.
  3. 33) Persist outcome

    Store fiscal identifiers and final status.
  4. 44) Reconcile

    Run reconciliation to close pending mismatches.

Typical errors

CodeCommon causeMitigation
400incomplete fiscal payloadvalidate required fields before submit
409sequence/series conflictresync sequence state and retry safely
422fiscal rule not satisfiedreview document type/regime/customer data
503transient provider outageretry with backoff and alert operations
  • Alerts for fiscal backlog and per-organization error ratio.
  • Daily reconciliation with defined correction SLA.
  • Audit trail for changes to series, profile, and permissions.