Skip to main content
POST
Create operation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-OpenFiskal-Merchant
string
required

Merchant identifier returned by the merchants resource.

Idempotency-Key
string
required

Required. A unique key per request, e.g. a UUID, at most 255 printable ASCII characters. Sending it again with the same request replays the first result (marked Idempotent-Replayed: true) instead of running the request again; with a different request it is rejected with 409 idempotency_key_conflict. Scoped per endpoint, merchant, and tenant. Retained for 30 days.

Body

application/json

Discriminated request body. The type field selects the variant.

source
enum<string>
required
Available options:
POS,
ONLINE
Example:

"POS"

currency
string
required

ISO 4217 currency code. On a register, the currency of its fiscal regime: EUR under KassenSichV (Germany), CZK under EET 2.0 (Czechia); any other is refused with currency_not_allowed_for_register.

Example:

"EUR"

pretax_amount
string
required

Total before taxes

Example:

"9.00"

tax_amount
string
required

Total tax amount

Example:

"0.95"

tip_amount
string
required

Tip amount

Example:

"0.00"

total_amount
string
required

Total amount (pretax + tax + tip)

Example:

"9.95"

line_items
object[]
required
type
enum<string>
required
Available options:
sale
Example:

"sale"

register_id
string

Required for POS, must be null for ONLINE.

Example:

"reg_abc123"

external_id
string

Merchant or POS identifier for the upstream order.

Example:

"order-12345"

note
string
Example:

"Customer requested extra napkins"

occurred_at
string

When the operation started on the client (ISO 8601), e.g. when the cashier opened the cart. Returned as started_at and used as the receipt start (DSFinV-K Bon_Start). Without it the start is not recorded and the receipt starts at its completion time. Send it when the operation reaches the platform later than it happened, e.g. from an offline queue. Rejected with 422 validation_error when more than 5 minutes in the future.

Example:

"2026-02-26T12:00:00.000Z"

cart_level_discounts
object[]

Cart-level (order-level) discounts applied across the SALE, not apportioned onto specific line items. Each entry surfaces as a separate Rabatt business case in DSFinV-K. Line-item totals must already reflect their post-discount values.

Response

Operation created

id
string
required
merchant_id
string
required
source
enum<string>
required
Available options:
POS,
ONLINE
status
enum<string>
required
Available options:
open,
completed,
voided
currency
string
required

ISO 4217 currency code.

Example:

"EUR"

resource_version
number
required

Current server-issued version for the operation, starting at 1. Returned as ETag header.

outstanding_amount
string
required

What is left open, as a decimal string. On a sale or an exchange: what is open on it now, its total_amount minus its own payments minus its completed payment operations; it goes down when a payment completes, without changing its resource_version. A sale and an exchange of the same order each report only their own open amount. On a payment: what was open on the related sale or exchange right after this payment completed (while the payment is still open: that operation's current open amount minus this payment). On every other type: "0.00".

Example:

"18.80"

fiscal_warnings
object[]
required

Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.

created_at
string<date-time>
required
updated_at
string<date-time>
required
pretax_amount
string
required
tax_amount
string
required
tip_amount
string
required
total_amount
string
required
line_items
object[]
required
payments
object[]
required
type
enum<string>
required
Available options:
sale
Example:

"sale"

payment_operations
object[]
required

The completed payment operations against this sale, oldest first, each with its tender legs, so the caller can follow and recompute outstanding_amount. Empty when the sale left nothing open or nothing has been paid on it yet. Derived: it grows without changing the sale's resource_version.

releasing_returns
object[]
required

The completed return operations that released part of this sale's open amount (released_outstanding_amount), oldest first. With payment_operations they explain outstanding_amount: what the sale left open, minus what was paid, minus what was released. Derived: it grows without changing the sale's resource_version.

cart_level_discounts
object[]
required

Cart-level (order-level) discounts applied across the SALE. Empty array when none. Surfaced separately from line items so consumers do not need to back-derive from totals.

location_id
string | null

Only set for source: POS.

register_id
string | null

Only set for source: POS.

session_id
string | null

The RegisterSession this Operation is bound to. Set on every POS Operation; null for ONLINE goods-movement (no register, hence no session). On session-event variants this is the session being opened, adjusted, or closed; on goods-movement variants it is the session the operation was rung up during.

external_id
string | null

Merchant or POS identifier for the upstream order.

fiscal_information
FiscalInformationKassenSichV · object

The fiscal record of this Operation: in Germany its TSE signature, null until it has been signed; in Czechia its report to the Financial Administration (EET 2.0), null until it has been reported.

started_at
string<date-time> | null

When the operation started on the client: the occurred_at sent on create. Null when none was sent; the receipt then starts at completed_at. On a session operation, the same as completed_at.

completed_at
string<date-time> | null

When the operation ended on the client: the occurred_at (or completed_at) sent on complete, else the time the platform received it. Null while open.

fiscal_status
enum<string> | null

What happened to the operation fiscally. The same five values in every country. successfully_recorded: done, signed or accepted without problems. not_required: nothing to do for this operation (fiscal_status_reason says why). pending: not done yet, but there is still time. blocked: should be sent, but was never sent, because something is missing. failed: was sent, but did not go through cleanly. Null while the operation is open or voided, and on operations completed before this field existed.

Available options:
successfully_recorded,
not_required,
pending,
blocked,
failed
Example:

"not_required"

fiscal_status_reason
string | null

Why, as a stable code, when the status has a why; null for successfully_recorded. Country-specific codes start with the country, e.g. cz_no_money_received; new codes can be added at any time, so treat an unknown one by its fiscal_status.

Example:

"cz_no_money_received"

fiscal_status_action_by
enum<string> | null

Who has to act: none, the merchant (e.g. upload a certificate), or openfiskal. Null when fiscal_status is null.

Available options:
none,
merchant,
openfiskal
Example:

"none"

fiscal_status_message
string | null

One sentence explaining the status, always in English. Null for successfully_recorded. To show merchants another language, translate from fiscal_status_reason.

Example:

"No money received. Each payment is reported to EET2 when it is received."

voided_at
string<date-time> | null
void_reason
string | null
note
string | null

Merchant free-text note for the goods-movement event.