Provisions a new fiscal unit for the register, triggering jurisdiction-specific fiscal device initialization:
The register must not already have an active fiscal unit. To replace
an existing binding, use POST /registers/:id/fiscal-units/replace.
The binding starts in provisioning state and transitions to active
once the fiscal device is initialized.
Pass issue_register_credential: true to receive a register-scoped API
key in the response. Use this for device-direct integrations (EV chargers,
unattended kiosks). The key is returned once only — store it immediately
and push to the device over a secure provisioning channel.
Platform API key sent as Authorization: Bearer ofk_platform_....
Platform integrators also pass OpenFiskal-Organization: org_xxx
to act on behalf of a merchant.
Merchant organization ID. Required for platform integrators acting on behalf of a specific merchant. Omit when using an organization-scoped API key directly.
If true, a register-scoped API key is issued and returned
in the response. Only needed for device-direct integrations.
Fiscal unit created
Response to fiscal unit creation. Always includes the full binding
object. register_api_key is only present if issue_register_credential: true
was requested.
"fiscal_unit_response"A FiscalUnit represents the link between a register and a fiscal compliance capability. A register can have one active fiscal unit at a time, with a full history of past fiscal units.
Register-scoped API key. Returned once only — store immediately
and push to the device over a secure channel. null if
issue_register_credential was not requested.
"ofk_reg_live_..."
Whether a register credential was issued in this response