Skip to main content
GET
Get 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.

Path Parameters

operationId
string
required

Response

Operation returned

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.