Starts a new operation. The body is a discriminated union on type: goods movement (sale / return / exchange), a payment against a sale’s open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).
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.
SaleOperation
ReturnOperation
ExchangeOperation
SessionOpenOperation
SessionCashAdjustmentOperation
SessionCashCountOperation
SessionCloseOperation
PaymentOperation
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
Show child attributes
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.
Show child attributes
Response
Operation created
SaleOperation
ReturnOperation
ExchangeOperation
SessionOpenOperation
SessionCashAdjustmentOperation
SessionCashCountOperation
SessionCloseOperation
PaymentOperation
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.
Show child attributes
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
Show child attributes
payments
object[]
required
Show child attributes
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.
Show child attributes
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.
Show child attributes
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.
Show child attributes
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.
FiscalInformationKassenSichV
FiscalInformationRKSV
FiscalInformationRT
FiscalInformationEET2
Show child attributes
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.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OpenFiskal Platform API","description":"Documentation for the OpenFiskal Platform API, the compliance layer for POS. Learn how to issue compliant receipts, generate Z-reports, and produce audit exports for German, Austrian, and Italian fiscal requirements through one API.","colors":{"primary":"#001A72","light":"#3D5BCC","dark":"#001052"},"logo":{"light":"https://mintcdn.com/openfiskal/qxovsukyJl4o5re7/images/OpenFiskal_Logo_Main_Hori_Blue.svg?fit=max\u0026auto=format\u0026n=qxovsukyJl4o5re7\u0026q=85\u0026s=615e680b036ab06bf14aeedd2d72b6f7","dark":"https://mintcdn.com/openfiskal/qxovsukyJl4o5re7/images/OpenFiskal_Logo_main_white.svg?fit=max\u0026auto=format\u0026n=qxovsukyJl4o5re7\u0026q=85\u0026s=afa9b600a738695c8e5d739f75eb9727"},"favicon":"https://mintcdn.com/openfiskal/BmewfJXUvnYF5kcl/images/web-app-manifest-512x512.png?fit=max\u0026auto=format\u0026n=BmewfJXUvnYF5kcl\u0026q=85\u0026s=8d14fb6d63045e9e0b82d7638367fa3c","background":{"color":{"dark":"#0A0F1F"}},"navbar":{"links":[{"href":"https://api.openfiskal.com/openapi-json","label":"OpenAPI spec"},{"href":"mailto:help@openfiskal.com","label":"Support"}]},"fonts":{"family":"Inter"},"integrations":{"posthog":{"apiKey":"phc_wZtAZkE6osudq1JRbckb44zF4QeFbzXJAsoaHC89Co6","apiHost":"https://eu.i.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","view","claude","cursor","vscode"],"display":"header"},"thumbnails":{"fonts":{"family":"Inter"}},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"openfiskal","hasAudioNarration":false,"actualSubdomain":"openfiskal","customDomains":["docs.openfiskal.com"],"gitSource":{"type":"github","owner":"openfiskal","repo":"platform-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6b0b53fe0b1800e3ecec5f8e","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Fiscalization API","count":64},{"language":"default","tag":"Reporting API","count":13},{"language":"default","tag":"Hosted Receipts API","count":10},{"language":"default","tag":"Registers","count":7},{"language":"default","tag":"Overview","count":6},{"language":"default","tag":"Transaction processing","count":6},{"language":"default","tag":"Exports","count":6},{"language":"default","tag":"Locations","count":5},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Czechia (EET 2.0)","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/operations/create-operation","slug":"/api-reference/operations/create-operation","pageMetadata":{"title":"Create operation","description":"Starts a new operation. The body is a discriminated union on `type`: goods movement (sale / return / exchange), a payment against a sale's open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations","href":"/api-reference/operations/create-operation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Starts a new operation. The body is a discriminated union on \", _jsx(_components.code, {\n children: \"type\"\n }), \": goods movement (sale / return / exchange), a payment against a sale’s open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create operation","description":"Starts a new operation. The body is a discriminated union on `type`: goods movement (sale / return / exchange), a payment against a sale's open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations","href":"/api-reference/operations/create-operation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Starts a new operation. The body is a discriminated union on `type`: goods movement (sale / return / exchange), a payment against a sale's open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).","operationId":"OperationsController_create","parameters":["5d8be6dc-4582-45f4-8da8-f590bec3f781","80a17bd9-f609-4ec5-bcd4-cba5092b421a"],"requestBody":"7784d27e-cd6a-4f19-a398-b58831f334f4","responses":{"201":"8454a175-1eae-4e53-819a-ea7133cf83af","400":"a347b0a6-149c-414f-840b-c02d0582c3b4","401":"eb93a95e-131c-4295-8b03-70d8d7b95f9a","403":"341d9484-2d38-4bea-8dc4-599852825b8b","409":"3e4faacb-9f9f-4beb-bc73-505f34697221","422":"bf08d15f-ce59-48c4-8999-54379466f5b0","429":"2f05b9b9-e014-4782-9b88-222389a45da5"},"security":["a8ebb288-9df3-4f1f-9c11-6f30f8b554f3"],"summary":"Create operation","tags":["Operations"],"method":"post","type":"path","servers":["4bc04bc8-56cf-45df-be08-ace0ff7a8ceb","8feb6b61-69b6-4a96-a8f8-71566a5f9383"],"path":"/operations","baseUrlOptions":["https://api.openfiskal.com/v1","https://sandbox.api.openfiskal.com/v1"],"title":"Create operation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"5d8be6dc-4582-45f4-8da8-f590bec3f781":{"name":"X-OpenFiskal-Merchant","in":"header","description":"Merchant identifier returned by the merchants resource.","required":true,"schema":{"type":"string","isRequired":true,"description":"Merchant identifier returned by the merchants resource.","uniqueKey":"","typeLabel":"string"}},"80a17bd9-f609-4ec5-bcd4-cba5092b421a":{"name":"Idempotency-Key","required":true,"in":"header","description":"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.","schema":{"type":"string","isRequired":true,"description":"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.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"description":"Discriminated request body. The `type` field selects the variant.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"SaleOperation","required":["source","currency","pretax_amount","tax_amount","tip_amount","total_amount","line_items","type"],"properties":{"source":{"type":"string","enum":["POS","ONLINE"],"example":"POS","isRequired":true,"uniqueKey":"oneOf.0.source","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.0.currency","typeLabel":"string"},"pretax_amount":{"type":"string","example":"9.00","description":"Total before taxes","isRequired":true,"uniqueKey":"oneOf.0.pretax_amount","typeLabel":"string"},"tax_amount":{"type":"string","example":"0.95","description":"Total tax amount","isRequired":true,"uniqueKey":"oneOf.0.tax_amount","typeLabel":"string"},"tip_amount":{"type":"string","example":"0.00","description":"Tip amount","isRequired":true,"uniqueKey":"oneOf.0.tip_amount","typeLabel":"string"},"total_amount":{"type":"string","example":"9.95","description":"Total amount (pretax + tax + tip)","isRequired":true,"uniqueKey":"oneOf.0.total_amount","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","example":"Café Latte","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"example":2,"description":"Positive integer count of units. A return of 2 tshirts also has quantity 2.","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].quantity","typeLabel":"integer"},"unit_price":{"type":"string","example":"4.50","description":"Price per unit","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","example":"9.00","description":"Total amount for this line item (quantity * unit_price)","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","maxLength":50,"description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination. At most 50 characters long.","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"description":"One entry per VAT rate applied to this line. At least one entry required.","type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"State SUT","description":"Tax name, e.g. \"Municipal Tax\" or \"State Tax\"","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","example":"0.105","description":"Tax rate as a decimal string, e.g. \"0.105\" for 10.5%","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","example":"1.58","description":"Computed tax amount for this line item","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["name","rate","tax_amount"],"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Classifies the line item. `gift_card` lines are multi-purpose vouchers (Mehrzweckgutschein) — all taxes must carry rate \"0\" and tax_amount \"0\".","uniqueKey":"oneOf.0.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"gift_card_id":{"type":"string","example":"gc_abc123","description":"Integrator-supplied gift card identifier. Only meaningful when type is \"gift_card\". Flows through to DSFinV-K voucher_id.","uniqueKey":"oneOf.0.line_items.items.[INDEX].gift_card_id","typeLabel":"string"}},"required":["title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.0.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.line_items","typeLabel":"object[]"},"type":{"type":"string","enum":["sale"],"example":"sale","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Required for POS, must be null for ONLINE.","uniqueKey":"oneOf.0.register_id","typeLabel":"string"},"external_id":{"type":"string","example":"order-12345","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.0.external_id","typeLabel":"string"},"note":{"type":"string","example":"Customer requested extra napkins","uniqueKey":"oneOf.0.note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T12:00:00.000Z","description":"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.","uniqueKey":"oneOf.0.occurred_at","typeLabel":"string"},"cart_level_discounts":{"description":"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.","type":"array","items":{"type":"object","properties":{"amount":{"type":"string","example":"5.00","description":"Discount amount applied to the cart, as a positive decimal string.","isRequired":true,"uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].amount","typeLabel":"string"},"description":{"type":"string","example":"WELCOME10","maxLength":255,"description":"Free-text label shown on the receipt and audit trail. Trimmed to 255 characters in DSFinV-K exports.","uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].description","typeLabel":"string"}},"required":["amount"],"uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.cart_level_discounts","typeLabel":"object[]"}},"uniqueKey":"oneOf.0","typeLabel":"SaleOperation · object"},{"type":"object","title":"ReturnOperation","required":["source","currency","pretax_amount","tax_amount","tip_amount","total_amount","line_items","type"],"properties":{"source":{"type":"string","enum":["POS","ONLINE"],"example":"POS","isRequired":true,"uniqueKey":"oneOf.1.source","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.1.currency","typeLabel":"string"},"pretax_amount":{"type":"string","example":"9.00","description":"Total before taxes","isRequired":true,"uniqueKey":"oneOf.1.pretax_amount","typeLabel":"string"},"tax_amount":{"type":"string","example":"0.95","description":"Total tax amount","isRequired":true,"uniqueKey":"oneOf.1.tax_amount","typeLabel":"string"},"tip_amount":{"type":"string","example":"0.00","description":"Tip amount","isRequired":true,"uniqueKey":"oneOf.1.tip_amount","typeLabel":"string"},"total_amount":{"type":"string","example":"9.95","description":"Total amount (pretax + tax + tip)","isRequired":true,"uniqueKey":"oneOf.1.total_amount","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","example":"Café Latte","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"example":2,"description":"Positive integer count of units. A return of 2 tshirts also has quantity 2.","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].quantity","typeLabel":"integer"},"unit_price":{"type":"string","example":"4.50","description":"Price per unit","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","example":"9.00","description":"Total amount for this line item (quantity * unit_price)","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","maxLength":50,"description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination. At most 50 characters long.","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"description":"One entry per VAT rate applied to this line. At least one entry required.","type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"State SUT","description":"Tax name, e.g. \"Municipal Tax\" or \"State Tax\"","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","example":"0.105","description":"Tax rate as a decimal string, e.g. \"0.105\" for 10.5%","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","example":"1.58","description":"Computed tax amount for this line item","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["name","rate","tax_amount"],"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Classifies the line item. `gift_card` lines are multi-purpose vouchers (Mehrzweckgutschein) — all taxes must carry rate \"0\" and tax_amount \"0\".","uniqueKey":"oneOf.1.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"gift_card_id":{"type":"string","example":"gc_abc123","description":"Integrator-supplied gift card identifier. Only meaningful when type is \"gift_card\". Flows through to DSFinV-K voucher_id.","uniqueKey":"oneOf.1.line_items.items.[INDEX].gift_card_id","typeLabel":"string"}},"required":["title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.1.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.line_items","typeLabel":"object[]"},"type":{"type":"string","enum":["return"],"example":"return","isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Required for POS, must be null for ONLINE.","uniqueKey":"oneOf.1.register_id","typeLabel":"string"},"external_id":{"type":"string","example":"order-12345","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.1.external_id","typeLabel":"string"},"note":{"type":"string","example":"Customer requested extra napkins","uniqueKey":"oneOf.1.note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T12:00:00.000Z","description":"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.","uniqueKey":"oneOf.1.occurred_at","typeLabel":"string"},"related_operation_id":{"type":"string","example":"op_abc123","description":"For returns/exchanges: the OpenFiskal operation ID of the original sale. Exactly one of `related_operation_id` or `external_related_operation` must be set.","uniqueKey":"oneOf.1.related_operation_id","typeLabel":"string"},"external_related_operation":{"type":"object","description":"For returns/exchanges of sales that were never ingested into OpenFiskal (typically during platform migration). Exactly one of `related_operation_id` or `external_related_operation` must be set.","required":["description","external_operation_id"],"properties":{"description":{"type":"string","example":"Return against order from external platform.","description":"Free-text description identifying the external sale being returned/exchanged against.","isRequired":true,"uniqueKey":"oneOf.1.external_related_operation.description","typeLabel":"string"},"external_operation_id":{"type":"string","example":"shopify-order-4711","description":"The integrator-side identifier of the original sale in the external system.","isRequired":true,"uniqueKey":"oneOf.1.external_related_operation.external_operation_id","typeLabel":"string"}},"uniqueKey":"oneOf.1.external_related_operation","typeLabel":"object"},"released_outstanding_amount":{"type":"string","example":"1800.00","description":"The part of the related sale's or exchange's `outstanding_amount` this return releases: goods come back that were never paid for, so that part is not paid back in money, the open claim is dropped instead. At most the value of the returned goods (−`total_amount`); with `related_operation_id` also at most what the related operation has open now. With `external_related_operation` (a sale from before OpenFiskal, whose open amount OpenFiskal never recorded) only the first limit applies. At complete, the payments must add up to `total_amount` plus this amount; they may be empty when it releases the whole `total_amount`. Defaults to \"0.00\": without it the payments must cover the total.","uniqueKey":"oneOf.1.released_outstanding_amount","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"ReturnOperation · object"},{"type":"object","title":"ExchangeOperation","required":["source","currency","pretax_amount","tax_amount","tip_amount","total_amount","line_items","type"],"properties":{"source":{"type":"string","enum":["POS","ONLINE"],"example":"POS","isRequired":true,"uniqueKey":"oneOf.2.source","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.2.currency","typeLabel":"string"},"pretax_amount":{"type":"string","example":"9.00","description":"Total before taxes","isRequired":true,"uniqueKey":"oneOf.2.pretax_amount","typeLabel":"string"},"tax_amount":{"type":"string","example":"0.95","description":"Total tax amount","isRequired":true,"uniqueKey":"oneOf.2.tax_amount","typeLabel":"string"},"tip_amount":{"type":"string","example":"0.00","description":"Tip amount","isRequired":true,"uniqueKey":"oneOf.2.tip_amount","typeLabel":"string"},"total_amount":{"type":"string","example":"9.95","description":"Total amount (pretax + tax + tip)","isRequired":true,"uniqueKey":"oneOf.2.total_amount","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","example":"Café Latte","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"example":2,"description":"Positive integer count of units. A return of 2 tshirts also has quantity 2.","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].quantity","typeLabel":"integer"},"unit_price":{"type":"string","example":"4.50","description":"Price per unit","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","example":"9.00","description":"Total amount for this line item (quantity * unit_price)","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","maxLength":50,"description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination. At most 50 characters long.","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"description":"One entry per VAT rate applied to this line. At least one entry required.","type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"State SUT","description":"Tax name, e.g. \"Municipal Tax\" or \"State Tax\"","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","example":"0.105","description":"Tax rate as a decimal string, e.g. \"0.105\" for 10.5%","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","example":"1.58","description":"Computed tax amount for this line item","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["name","rate","tax_amount"],"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Classifies the line item. `gift_card` lines are multi-purpose vouchers (Mehrzweckgutschein) — all taxes must carry rate \"0\" and tax_amount \"0\".","uniqueKey":"oneOf.2.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"gift_card_id":{"type":"string","example":"gc_abc123","description":"Integrator-supplied gift card identifier. Only meaningful when type is \"gift_card\". Flows through to DSFinV-K voucher_id.","uniqueKey":"oneOf.2.line_items.items.[INDEX].gift_card_id","typeLabel":"string"}},"required":["title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.2.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.line_items","typeLabel":"object[]"},"type":{"type":"string","enum":["exchange"],"example":"exchange","isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Required for POS, must be null for ONLINE.","uniqueKey":"oneOf.2.register_id","typeLabel":"string"},"external_id":{"type":"string","example":"order-12345","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.2.external_id","typeLabel":"string"},"note":{"type":"string","example":"Customer requested extra napkins","uniqueKey":"oneOf.2.note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T12:00:00.000Z","description":"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.","uniqueKey":"oneOf.2.occurred_at","typeLabel":"string"},"related_operation_id":{"type":"string","example":"op_abc123","description":"For returns/exchanges: the OpenFiskal operation ID of the original sale. Exactly one of `related_operation_id` or `external_related_operation` must be set.","uniqueKey":"oneOf.2.related_operation_id","typeLabel":"string"},"external_related_operation":{"type":"object","description":"For returns/exchanges of sales that were never ingested into OpenFiskal (typically during platform migration). Exactly one of `related_operation_id` or `external_related_operation` must be set.","required":["description","external_operation_id"],"properties":{"description":{"type":"string","example":"Return against order from external platform.","description":"Free-text description identifying the external sale being returned/exchanged against.","isRequired":true,"uniqueKey":"oneOf.2.external_related_operation.description","typeLabel":"string"},"external_operation_id":{"type":"string","example":"shopify-order-4711","description":"The integrator-side identifier of the original sale in the external system.","isRequired":true,"uniqueKey":"oneOf.2.external_related_operation.external_operation_id","typeLabel":"string"}},"uniqueKey":"oneOf.2.external_related_operation","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"ExchangeOperation · object"},{"type":"object","title":"SessionOpenOperation","required":["type","register_id","currency","opening_balance_amount"],"properties":{"type":{"type":"string","enum":["session_open"],"example":"session_open","isRequired":true,"uniqueKey":"oneOf.3.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Register on which the session is being opened.","isRequired":true,"uniqueKey":"oneOf.3.register_id","typeLabel":"string"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.3.currency","typeLabel":"string"},"opening_balance_amount":{"type":"string","example":"50.00","description":"Opening cash drawer balance as a decimal string. Must be ≥ 0.","isRequired":true,"uniqueKey":"oneOf.3.opening_balance_amount","typeLabel":"string"},"cash_counted":{"type":"boolean","example":true,"default":true,"description":"Whether `opening_balance_amount` was counted in the drawer. Defaults to `true`. Send `false` when the session is opened without a count, e.g. by an integration that opens a session on the merchant's behalf; the amount is then the best known value, recorded as is.","uniqueKey":"oneOf.3.cash_counted","typeLabel":"boolean"},"opening_note":{"type":"string","example":"Float supplied by office manager.","uniqueKey":"oneOf.3.opening_note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T08:00:00.000Z","description":"When the session was opened on the client (ISO 8601). Defaults to the time the platform receives the request. Send it when the operation reaches the platform later than it happened, e.g. a session your POS opened before its first sale was sent. Rejected with `422 validation_error` when more than 5 minutes in the future.","uniqueKey":"oneOf.3.occurred_at","typeLabel":"string"}},"uniqueKey":"oneOf.3","typeLabel":"SessionOpenOperation · object"},{"type":"object","title":"SessionCashAdjustmentOperation","required":["type","register_id","currency","cash_amount"],"properties":{"type":{"type":"string","enum":["session_cash_adjustment"],"example":"session_cash_adjustment","isRequired":true,"uniqueKey":"oneOf.4.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Register that the adjustment applies to.","isRequired":true,"uniqueKey":"oneOf.4.register_id","typeLabel":"string"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.4.currency","typeLabel":"string"},"cash_amount":{"type":"string","example":"-20.00","description":"Signed cash adjustment as a decimal string. Negative = cash out, positive = cash in.","isRequired":true,"uniqueKey":"oneOf.4.cash_amount","typeLabel":"string"},"note":{"type":"string","example":"Cash drop to safe.","uniqueKey":"oneOf.4.note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T08:00:00.000Z","description":"When the cash was added or removed on the client (ISO 8601). Defaults to the time the platform receives the request. Send it when the operation reaches the platform later than it happened. Rejected with `422 validation_error` when more than 5 minutes in the future or before the session opened.","uniqueKey":"oneOf.4.occurred_at","typeLabel":"string"}},"uniqueKey":"oneOf.4","typeLabel":"SessionCashAdjustmentOperation · object"},{"type":"object","title":"SessionCashCountOperation","required":["type","register_id","currency","counted_closing_amount"],"properties":{"type":{"type":"string","enum":["session_cash_count"],"example":"session_cash_count","isRequired":true,"uniqueKey":"oneOf.5.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Register whose drawer is being counted.","isRequired":true,"uniqueKey":"oneOf.5.register_id","typeLabel":"string"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.5.currency","typeLabel":"string"},"counted_closing_amount":{"type":"string","example":"127.50","description":"Merchant-counted closing cash balance as a decimal string. Must be ≥ 0. Captures the drawer state BEFORE any closing pull/add — count first, then move cash. The counted-vs-expected variance is fiscally attested. On write the session is frozen — only `session_close` is accepted from there.","isRequired":true,"uniqueKey":"oneOf.5.counted_closing_amount","typeLabel":"string"},"discrepancy_note":{"type":"string","example":"Two coins from the day before were unaccounted for.","uniqueKey":"oneOf.5.discrepancy_note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T08:00:00.000Z","description":"When the drawer was counted on the client (ISO 8601). Defaults to the time the platform receives the request. Send it when the operation reaches the platform later than it happened. Rejected with `422 validation_error` when more than 5 minutes in the future or before the session opened.","uniqueKey":"oneOf.5.occurred_at","typeLabel":"string"}},"uniqueKey":"oneOf.5","typeLabel":"SessionCashCountOperation · object"},{"type":"object","title":"SessionCloseOperation","required":["type","register_id","currency","business_date"],"properties":{"type":{"type":"string","enum":["session_close"],"example":"session_close","isRequired":true,"uniqueKey":"oneOf.6.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Register whose session is being closed.","isRequired":true,"uniqueKey":"oneOf.6.register_id","typeLabel":"string"},"currency":{"type":"string","example":"EUR","description":"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`.","isRequired":true,"uniqueKey":"oneOf.6.currency","typeLabel":"string"},"business_date":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-05-04T00:00:00.000Z","description":"Date of posting for financial accounting matters, formatted `YYYY-MM-DD`. If your session is opened and closed on the same day, then that date should be the business_date. If your session reaches across multiple calendar days (e.g. a bar that closes after midnight), you need to decide which date to use as business_date. If in doubt, consult your tax advisor.","isRequired":true,"uniqueKey":"oneOf.6.business_date","typeLabel":"string\u003cdate>"},"closing_adjustment_amount":{"type":"string","example":"-50.00","description":"Optional cash pulled (or added) at close. Signed decimal string: negative = cash out (deposit, transport to bank); positive = cash in (e.g., next-shift float top-up). Omit if no cash was moved at close. The counted closing balance and discrepancy note live on the `session_cash_count` before the close, if the drawer was counted; a session can also be closed without a count. `session_close` only carries the optional pull.","uniqueKey":"oneOf.6.closing_adjustment_amount","typeLabel":"string"},"closing_adjustment_note":{"type":"string","example":"Safe deposit at end of shift.","description":"Optional explanation for the closing pull/add.","uniqueKey":"oneOf.6.closing_adjustment_note","typeLabel":"string"},"occurred_at":{"type":"string","example":"2026-02-26T08:00:00.000Z","description":"When the session was closed on the client (ISO 8601). Defaults to the time the platform receives the request. Send it when the operation reaches the platform later than it happened. Rejected with `422 validation_error` when more than 5 minutes in the future or before the session opened.","uniqueKey":"oneOf.6.occurred_at","typeLabel":"string"}},"uniqueKey":"oneOf.6","typeLabel":"SessionCloseOperation · object"},{"type":"object","title":"PaymentOperation","required":["type","register_id","related_operation_id","currency","total_amount"],"properties":{"type":{"type":"string","enum":["payment"],"example":"payment","isRequired":true,"uniqueKey":"oneOf.7.type","typeLabel":"enum\u003cstring>"},"register_id":{"type":"string","example":"reg_abc123","description":"Register on which the payment is taken. Any register of the merchant, at any location; it needs an open session.","isRequired":true,"uniqueKey":"oneOf.7.register_id","typeLabel":"string"},"related_operation_id":{"type":"string","example":"op_abc123","description":"The OpenFiskal operation ID of the completed sale or exchange whose open amount this payment settles, in part or in full. A payment settles only the operation it names: a sale and an exchange of the same order have separate open amounts.","isRequired":true,"uniqueKey":"oneOf.7.related_operation_id","typeLabel":"string"},"currency":{"type":"string","example":"EUR","description":"ISO 4217 currency code; must be the related sale's or exchange's currency. 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`.","isRequired":true,"uniqueKey":"oneOf.7.currency","typeLabel":"string"},"total_amount":{"type":"string","example":"23.80","description":"The money collected now, as a decimal string. Greater than 0 and at most the related sale's or exchange's `outstanding_amount`.","isRequired":true,"uniqueKey":"oneOf.7.total_amount","typeLabel":"string"},"external_id":{"type":"string","example":"payment-2026-10-17-0042-p1","description":"Merchant or POS identifier for this payment.","uniqueKey":"oneOf.7.external_id","typeLabel":"string"},"note":{"type":"string","example":"Remainder paid by card.","uniqueKey":"oneOf.7.note","typeLabel":"string"},"line_items":{"maxItems":0,"description":"A payment carries no goods. Accepted only as an empty array.","type":"array","items":{"type":"object","properties":{"title":{"type":"string","example":"Café Latte","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"example":2,"description":"Positive integer count of units. A return of 2 tshirts also has quantity 2.","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].quantity","typeLabel":"integer"},"unit_price":{"type":"string","example":"4.50","description":"Price per unit","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","example":"9.00","description":"Total amount for this line item (quantity * unit_price)","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","maxLength":50,"description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination. At most 50 characters long.","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"description":"One entry per VAT rate applied to this line. At least one entry required.","type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"State SUT","description":"Tax name, e.g. \"Municipal Tax\" or \"State Tax\"","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","example":"0.105","description":"Tax rate as a decimal string, e.g. \"0.105\" for 10.5%","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","example":"1.58","description":"Computed tax amount for this line item","isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["name","rate","tax_amount"],"uniqueKey":"oneOf.7.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.7.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Classifies the line item. `gift_card` lines are multi-purpose vouchers (Mehrzweckgutschein) — all taxes must carry rate \"0\" and tax_amount \"0\".","uniqueKey":"oneOf.7.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"gift_card_id":{"type":"string","example":"gc_abc123","description":"Integrator-supplied gift card identifier. Only meaningful when type is \"gift_card\". Flows through to DSFinV-K voucher_id.","uniqueKey":"oneOf.7.line_items.items.[INDEX].gift_card_id","typeLabel":"string"}},"required":["title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.7.line_items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.7.line_items","typeLabel":"object[]"},"occurred_at":{"type":"string","example":"2026-02-26T12:00:00.000Z","description":"When the operation started on the client (ISO 8601). 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.","uniqueKey":"oneOf.7.occurred_at","typeLabel":"string"}},"uniqueKey":"oneOf.7","typeLabel":"PaymentOperation · object"}],"uniqueKey":"","typeLabel":"SaleOperation · object | ReturnOperation · object | ExchangeOperation · object | SessionOpenOperation · object | SessionCashAdjustmentOperation · object | SessionCashCountOperation · object | SessionCloseOperation · object | PaymentOperation · object"},"examples":{"Example":{"title":"Example","value":{"source":"POS","currency":"EUR","pretax_amount":"9.00","tax_amount":"0.95","tip_amount":"0.00","total_amount":"9.95","line_items":[{"title":"Café Latte","quantity":2,"unit_price":"4.50","total_amount":"9.00","sku_identifier":"TSHIRT-BLUE-M","taxes":[{"name":"State SUT","rate":"0.105","tax_amount":"1.58"}],"type":"item","gift_card_id":"gc_abc123"}],"type":"sale","register_id":"reg_abc123","external_id":"order-12345","note":"Customer requested extra napkins","occurred_at":"2026-02-26T12:00:00.000Z","cart_level_discounts":[{"amount":"5.00","description":"WELCOME10"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8454a175-1eae-4e53-819a-ea7133cf83af":{"description":"Operation created","headers":{"Idempotent-Replayed":{"description":"`true` when this response replays an earlier request with the same `Idempotency-Key`.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"SaleOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","pretax_amount","tax_amount","tip_amount","total_amount","line_items","payments","type","payment_operations","releasing_returns","cart_level_discounts"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.0.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.0.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.0.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.0.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.0.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.0.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.0.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"pretax_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.pretax_amount","typeLabel":"string"},"tax_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.tax_amount","typeLabel":"string"},"tip_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.tip_amount","typeLabel":"string"},"total_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.total_amount","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Line item classification. `gift_card` = multi-purpose voucher (Mehrzweckgutschein).","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"title":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"number","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination.","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","description":"Tax rate as a decimal string (e.g. \"0.19\").","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","description":"Tax amount as a decimal string.","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["id","name","rate","tax_amount"],"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when type is \"gift_card\".","uniqueKey":"oneOf.0.line_items.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when type is \"gift_card\".","uniqueKey":"oneOf.0.line_items.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.line_items.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","type","title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.0.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.line_items","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].amount","typeLabel":"string"},"rounded_cash_amount":{"oneOf":[{"type":"string","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].rounded_cash_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].currency","typeLabel":"string"},"status":{"type":"string","enum":["captured","refunded"],"description":"Direction of money movement: `captured` for money-in (SALE legs, EXCHANGE legs with amount > 0), `refunded` for money-out (RETURN legs, EXCHANGE legs with amount \u003c 0). Zero-amount EXCHANGE legs accept either.","isRequired":true,"uniqueKey":"oneOf.0.payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payments.items.[INDEX].processed_at","typeLabel":"string\u003cdate-time> | null"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.0.payments.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.0.payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.0.payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.payments","typeLabel":"object[]"},"type":{"type":"string","enum":["sale"],"example":"sale","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"payment_operations":{"description":"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`.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"op_pay_1","description":"The `payment` operation's id.","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].id","typeLabel":"string"},"total_amount":{"type":"string","example":"5.00","description":"The money this payment collected.","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].total_amount","typeLabel":"string"},"payments":{"description":"Its tender legs.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].amount","typeLabel":"string"},"rounded_cash_amount":{"oneOf":[{"type":"string","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].rounded_cash_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].currency","typeLabel":"string"},"status":{"type":"string","enum":["captured","refunded"],"description":"Direction of money movement: `captured` for money-in (SALE legs, EXCHANGE legs with amount > 0), `refunded` for money-out (RETURN legs, EXCHANGE legs with amount \u003c 0). Zero-amount EXCHANGE legs accept either.","isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].processed_at","typeLabel":"string\u003cdate-time> | null"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].payments","typeLabel":"object[]"},"register_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].register_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].register_id","typeLabel":"string | null"},"location_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].location_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].location_id","typeLabel":"string | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.payment_operations.items.[INDEX].completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","total_amount","payments"],"uniqueKey":"oneOf.0.payment_operations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.payment_operations","typeLabel":"object[]"},"releasing_returns":{"description":"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`.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"op_ret_1","description":"The `return` operation's id.","isRequired":true,"uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].id","typeLabel":"string"},"released_outstanding_amount":{"type":"string","example":"1800.00","description":"The part of the open amount this return released.","isRequired":true,"uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].released_outstanding_amount","typeLabel":"string"},"register_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].register_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].register_id","typeLabel":"string | null"},"location_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].location_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].location_id","typeLabel":"string | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.releasing_returns.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","released_outstanding_amount"],"uniqueKey":"oneOf.0.releasing_returns.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.releasing_returns","typeLabel":"object[]"},"cart_level_discounts":{"description":"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.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].id","typeLabel":"string"},"amount":{"type":"string","description":"Discount amount as a positive decimal string.","isRequired":true,"uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].amount","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Free-text label for the discount (e.g. promo code, campaign name).","uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text label for the discount (e.g. promo code, campaign name).","uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX].description","typeLabel":"string | null"}},"required":["id","amount"],"uniqueKey":"oneOf.0.cart_level_discounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.cart_level_discounts","typeLabel":"object[]"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.0.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.0.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.0.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.0.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.0.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.0.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.0.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.0.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.0.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.0.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.0.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.0.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.0.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.0.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.0.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.0.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.0.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.0.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.0.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.0.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.0.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.0.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.0.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.0.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.0.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.void_reason","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","description":"Merchant free-text note for the goods-movement event.","uniqueKey":"oneOf.0.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant free-text note for the goods-movement event.","uniqueKey":"oneOf.0.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.note","typeLabel":"string | null"}},"uniqueKey":"oneOf.0","typeLabel":"SaleOperation · object"},{"type":"object","title":"ReturnOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","pretax_amount","tax_amount","tip_amount","total_amount","line_items","payments","type","released_outstanding_amount"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.1.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.1.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.1.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.1.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.1.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.1.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.1.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"},"pretax_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.pretax_amount","typeLabel":"string"},"tax_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.tax_amount","typeLabel":"string"},"tip_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.tip_amount","typeLabel":"string"},"total_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.total_amount","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Line item classification. `gift_card` = multi-purpose voucher (Mehrzweckgutschein).","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"title":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"number","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination.","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","description":"Tax rate as a decimal string (e.g. \"0.19\").","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","description":"Tax amount as a decimal string.","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["id","name","rate","tax_amount"],"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when type is \"gift_card\".","uniqueKey":"oneOf.1.line_items.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when type is \"gift_card\".","uniqueKey":"oneOf.1.line_items.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.line_items.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","type","title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.1.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.line_items","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].amount","typeLabel":"string"},"rounded_cash_amount":{"oneOf":[{"type":"string","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].rounded_cash_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].currency","typeLabel":"string"},"status":{"type":"string","enum":["captured","refunded"],"description":"Direction of money movement: `captured` for money-in (SALE legs, EXCHANGE legs with amount > 0), `refunded` for money-out (RETURN legs, EXCHANGE legs with amount \u003c 0). Zero-amount EXCHANGE legs accept either.","isRequired":true,"uniqueKey":"oneOf.1.payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.1.payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.1.payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.payments.items.[INDEX].processed_at","typeLabel":"string\u003cdate-time> | null"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.1.payments.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.1.payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.1.payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.payments","typeLabel":"object[]"},"type":{"type":"string","enum":["return"],"example":"return","isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"released_outstanding_amount":{"type":"string","example":"0.00","description":"The part of the related operation's open amount this return released instead of paying money back. \"0.00\" when it released nothing. The payments add up to `total_amount` plus this amount.","isRequired":true,"uniqueKey":"oneOf.1.released_outstanding_amount","typeLabel":"string"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.1.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.1.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.1.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.1.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.1.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.1.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.1.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.1.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.1.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.1.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.1.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.1.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.1.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.1.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.1.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.1.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.1.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.1.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.1.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.1.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.1.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.1.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.1.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.1.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.1.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.1.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.1.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.1.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.1.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.void_reason","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","description":"Merchant free-text note for the goods-movement event.","uniqueKey":"oneOf.1.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant free-text note for the goods-movement event.","uniqueKey":"oneOf.1.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.note","typeLabel":"string | null"},"related_operation_id":{"oneOf":[{"type":"string","description":"Set when the return references an OpenFiskal operation.","uniqueKey":"oneOf.1.related_operation_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set when the return references an OpenFiskal operation.","uniqueKey":"oneOf.1.related_operation_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.related_operation_id","typeLabel":"string | null"},"external_related_operation":{"oneOf":[{"type":"object","description":"Set when the return references a sale that lives outside OpenFiskal (e.g. legacy platform).","required":["description","external_operation_id"],"properties":{"description":{"type":"string","description":"Free-text description identifying the external sale being returned/exchanged against.","isRequired":true,"uniqueKey":"oneOf.1.external_related_operation.oneOf.0.description","typeLabel":"string"},"external_operation_id":{"type":"string","description":"The integrator-side identifier of the original sale in the external system.","isRequired":true,"uniqueKey":"oneOf.1.external_related_operation.oneOf.0.external_operation_id","typeLabel":"string"}},"uniqueKey":"oneOf.1.external_related_operation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.1.external_related_operation.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.external_related_operation","typeLabel":"object | null"}},"uniqueKey":"oneOf.1","typeLabel":"ReturnOperation · object"},{"type":"object","title":"ExchangeOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","pretax_amount","tax_amount","tip_amount","total_amount","line_items","payments","type","payment_operations","releasing_returns"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.2.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.2.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.2.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.2.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.2.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.2.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.2.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.2.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.2.updated_at","typeLabel":"string\u003cdate-time>"},"pretax_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.pretax_amount","typeLabel":"string"},"tax_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.tax_amount","typeLabel":"string"},"tip_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.tip_amount","typeLabel":"string"},"total_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.total_amount","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["item","gift_card"],"default":"item","description":"Line item classification. `gift_card` = multi-purpose voucher (Mehrzweckgutschein).","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"title":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"number","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].unit_price","typeLabel":"string"},"total_amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].total_amount","typeLabel":"string"},"sku_identifier":{"type":"string","example":"TSHIRT-BLUE-M","description":"Identifies a unique number used to maintain and manage the item, product, or merchandise category in the company's systems. Example: A Tshirt has one sku for each size + color combination.","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].sku_identifier","typeLabel":"string"},"taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"rate":{"type":"string","description":"Tax rate as a decimal string (e.g. \"0.19\").","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"string"},"tax_amount":{"type":"string","description":"Tax amount as a decimal string.","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"}},"required":["id","name","rate","tax_amount"],"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].taxes","typeLabel":"object[]"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when type is \"gift_card\".","uniqueKey":"oneOf.2.line_items.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when type is \"gift_card\".","uniqueKey":"oneOf.2.line_items.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.line_items.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","type","title","quantity","unit_price","total_amount","sku_identifier","taxes"],"uniqueKey":"oneOf.2.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.line_items","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].amount","typeLabel":"string"},"rounded_cash_amount":{"oneOf":[{"type":"string","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].rounded_cash_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].currency","typeLabel":"string"},"status":{"type":"string","enum":["captured","refunded"],"description":"Direction of money movement: `captured` for money-in (SALE legs, EXCHANGE legs with amount > 0), `refunded` for money-out (RETURN legs, EXCHANGE legs with amount \u003c 0). Zero-amount EXCHANGE legs accept either.","isRequired":true,"uniqueKey":"oneOf.2.payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payments.items.[INDEX].processed_at","typeLabel":"string\u003cdate-time> | null"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.2.payments.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.2.payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.2.payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.payments","typeLabel":"object[]"},"type":{"type":"string","enum":["exchange"],"example":"exchange","isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"enum\u003cstring>"},"payment_operations":{"description":"The completed `payment` operations against this exchange, oldest first, each with its tender legs, so the caller can follow and recompute `outstanding_amount`. Empty when the exchange left nothing open or nothing has been paid on it yet. Payments against the original sale are listed on the sale, not here. Derived: it grows without changing the exchange's `resource_version`.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"op_pay_1","description":"The `payment` operation's id.","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].id","typeLabel":"string"},"total_amount":{"type":"string","example":"5.00","description":"The money this payment collected.","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].total_amount","typeLabel":"string"},"payments":{"description":"Its tender legs.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].amount","typeLabel":"string"},"rounded_cash_amount":{"oneOf":[{"type":"string","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].rounded_cash_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].currency","typeLabel":"string"},"status":{"type":"string","enum":["captured","refunded"],"description":"Direction of money movement: `captured` for money-in (SALE legs, EXCHANGE legs with amount > 0), `refunded` for money-out (RETURN legs, EXCHANGE legs with amount \u003c 0). Zero-amount EXCHANGE legs accept either.","isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].processed_at","typeLabel":"string\u003cdate-time> | null"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].payments","typeLabel":"object[]"},"register_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].register_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].register_id","typeLabel":"string | null"},"location_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].location_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].location_id","typeLabel":"string | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.payment_operations.items.[INDEX].completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","total_amount","payments"],"uniqueKey":"oneOf.2.payment_operations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.payment_operations","typeLabel":"object[]"},"releasing_returns":{"description":"The completed `return` operations that released part of this exchange's open amount (`released_outstanding_amount`), oldest first. Derived: it grows without changing the exchange's `resource_version`.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"op_ret_1","description":"The `return` operation's id.","isRequired":true,"uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].id","typeLabel":"string"},"released_outstanding_amount":{"type":"string","example":"1800.00","description":"The part of the open amount this return released.","isRequired":true,"uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].released_outstanding_amount","typeLabel":"string"},"register_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].register_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].register_id","typeLabel":"string | null"},"location_id":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].location_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].location_id","typeLabel":"string | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.releasing_returns.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","released_outstanding_amount"],"uniqueKey":"oneOf.2.releasing_returns.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.releasing_returns","typeLabel":"object[]"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.2.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.2.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.2.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.2.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.2.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.2.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.2.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.2.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.2.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.2.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.2.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.2.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.2.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.2.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.2.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.2.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.2.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.2.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.2.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.2.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.2.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.2.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.2.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.2.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.2.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.2.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.2.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.2.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.void_reason","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","description":"Merchant free-text note for the goods-movement event.","uniqueKey":"oneOf.2.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant free-text note for the goods-movement event.","uniqueKey":"oneOf.2.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.note","typeLabel":"string | null"},"related_operation_id":{"oneOf":[{"type":"string","description":"Set when the exchange references an OpenFiskal operation.","uniqueKey":"oneOf.2.related_operation_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set when the exchange references an OpenFiskal operation.","uniqueKey":"oneOf.2.related_operation_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.related_operation_id","typeLabel":"string | null"},"external_related_operation":{"oneOf":[{"type":"object","description":"Set when the exchange references a sale that lives outside OpenFiskal (e.g. legacy platform).","required":["description","external_operation_id"],"properties":{"description":{"type":"string","description":"Free-text description identifying the external sale being returned/exchanged against.","isRequired":true,"uniqueKey":"oneOf.2.external_related_operation.oneOf.0.description","typeLabel":"string"},"external_operation_id":{"type":"string","description":"The integrator-side identifier of the original sale in the external system.","isRequired":true,"uniqueKey":"oneOf.2.external_related_operation.oneOf.0.external_operation_id","typeLabel":"string"}},"uniqueKey":"oneOf.2.external_related_operation.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.2.external_related_operation.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.external_related_operation","typeLabel":"object | null"}},"uniqueKey":"oneOf.2","typeLabel":"ExchangeOperation · object"},{"type":"object","title":"SessionOpenOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","type","opening_balance_amount","cash_counted"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.3.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.3.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.3.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.3.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.3.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.3.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.3.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.3.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.3.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.3.updated_at","typeLabel":"string\u003cdate-time>"},"type":{"type":"string","enum":["session_open"],"example":"session_open","isRequired":true,"uniqueKey":"oneOf.3.type","typeLabel":"enum\u003cstring>"},"opening_balance_amount":{"type":"string","description":"Opening cash balance as a decimal string.","isRequired":true,"uniqueKey":"oneOf.3.opening_balance_amount","typeLabel":"string"},"cash_counted":{"type":"boolean","description":"Whether the opening balance was counted in the drawer.","example":true,"isRequired":true,"uniqueKey":"oneOf.3.cash_counted","typeLabel":"boolean"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.3.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.3.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.3.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.3.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.3.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.3.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.3.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.3.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.3.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.3.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.3.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.3.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.3.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.3.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.3.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.3.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.3.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.3.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.3.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.3.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.3.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.3.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.3.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.3.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.3.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.3.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.3.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.3.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.3.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.3.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.3.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.3.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.void_reason","typeLabel":"string | null"},"opening_note":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.opening_note.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.opening_note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.opening_note","typeLabel":"string | null"}},"uniqueKey":"oneOf.3","typeLabel":"SessionOpenOperation · object"},{"type":"object","title":"SessionCashAdjustmentOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","type","cash_amount"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.4.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.4.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.4.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.4.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.4.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.4.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.4.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.4.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.4.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.4.updated_at","typeLabel":"string\u003cdate-time>"},"type":{"type":"string","enum":["session_cash_adjustment"],"example":"session_cash_adjustment","isRequired":true,"uniqueKey":"oneOf.4.type","typeLabel":"enum\u003cstring>"},"cash_amount":{"type":"string","description":"Signed cash adjustment as a decimal string. Negative = cash out.","isRequired":true,"uniqueKey":"oneOf.4.cash_amount","typeLabel":"string"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.4.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.4.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.4.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.4.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.4.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.4.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.4.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.4.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.4.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.4.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.4.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.4.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.4.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.4.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.4.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.4.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.4.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.4.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.4.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.4.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.4.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.4.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.4.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.4.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.4.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.4.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.4.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.4.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.4.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.4.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.4.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.4.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.4.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.4.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.4.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.4.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.4.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.void_reason","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","description":"Merchant free-text note for the cash adjustment.","uniqueKey":"oneOf.4.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant free-text note for the cash adjustment.","uniqueKey":"oneOf.4.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.note","typeLabel":"string | null"}},"uniqueKey":"oneOf.4","typeLabel":"SessionCashAdjustmentOperation · object"},{"type":"object","title":"SessionCashCountOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","type","counted_closing_amount","expected_closing_amount","closing_cashcount_diff"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.5.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.5.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.5.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.5.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.5.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.5.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.5.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.5.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.5.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.5.updated_at","typeLabel":"string\u003cdate-time>"},"type":{"type":"string","enum":["session_cash_count"],"example":"session_cash_count","isRequired":true,"uniqueKey":"oneOf.5.type","typeLabel":"enum\u003cstring>"},"counted_closing_amount":{"type":"string","description":"Merchant-counted closing cash balance as a decimal string. Captured BEFORE any closing pull/add.","isRequired":true,"uniqueKey":"oneOf.5.counted_closing_amount","typeLabel":"string"},"expected_closing_amount":{"type":"string","description":"System-calculated expected drawer balance at count time, derived from the session opening balance plus cash payments and adjustments. Decimal string.","isRequired":true,"uniqueKey":"oneOf.5.expected_closing_amount","typeLabel":"string"},"closing_cashcount_diff":{"type":"string","description":"Signed difference between counted and expected (`counted - expected`). Positive = drawer over, negative = drawer short, zero = on the dot. Decimal string. Fiscally attested.","isRequired":true,"uniqueKey":"oneOf.5.closing_cashcount_diff","typeLabel":"string"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.5.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.5.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.5.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.5.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.5.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.5.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.5.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.5.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.5.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.5.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.5.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.5.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.5.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.5.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.5.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.5.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.5.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.5.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.5.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.5.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.5.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.5.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.5.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.5.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.5.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.5.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.5.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.5.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.5.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.5.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.5.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.5.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.5.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.5.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.5.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.5.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.5.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.void_reason","typeLabel":"string | null"},"discrepancy_note":{"oneOf":[{"type":"string","uniqueKey":"oneOf.5.discrepancy_note.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.5.discrepancy_note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.discrepancy_note","typeLabel":"string | null"}},"uniqueKey":"oneOf.5","typeLabel":"SessionCashCountOperation · object"},{"type":"object","title":"SessionCloseOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.6.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.6.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.6.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.6.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.6.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.6.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.6.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.6.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.6.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.6.updated_at","typeLabel":"string\u003cdate-time>"},"type":{"type":"string","enum":["session_close"],"example":"session_close","isRequired":true,"uniqueKey":"oneOf.6.type","typeLabel":"enum\u003cstring>"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.6.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.6.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.6.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.6.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.6.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.6.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.6.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.6.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.6.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.6.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.6.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.6.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.6.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.6.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.6.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.6.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.6.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.6.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.6.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.6.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.6.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.6.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.6.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.6.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.6.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.6.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.6.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.6.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.6.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.6.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.6.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.6.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.6.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.6.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.6.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.6.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.6.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.void_reason","typeLabel":"string | null"},"closing_adjustment_amount":{"oneOf":[{"type":"string","description":"Optional signed cash adjustment performed at close (negative = pull, positive = add). Null if no cash was moved at close. The counted closing balance and discrepancy note live on the preceding SESSION_CASH_COUNT response — SESSION_CLOSE only carries the optional pull.","example":"-50.00","uniqueKey":"oneOf.6.closing_adjustment_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional signed cash adjustment performed at close (negative = pull, positive = add). Null if no cash was moved at close. The counted closing balance and discrepancy note live on the preceding SESSION_CASH_COUNT response — SESSION_CLOSE only carries the optional pull.","example":"-50.00","uniqueKey":"oneOf.6.closing_adjustment_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.closing_adjustment_amount","typeLabel":"string | null"},"closing_adjustment_note":{"oneOf":[{"type":"string","description":"Optional explanation for the closing pull/add.","uniqueKey":"oneOf.6.closing_adjustment_note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional explanation for the closing pull/add.","uniqueKey":"oneOf.6.closing_adjustment_note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.6.closing_adjustment_note","typeLabel":"string | null"}},"uniqueKey":"oneOf.6","typeLabel":"SessionCloseOperation · object"},{"type":"object","title":"PaymentOperation","required":["id","merchant_id","source","status","currency","resource_version","outstanding_amount","fiscal_warnings","created_at","updated_at","type","related_operation_id","total_amount","payments"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.id","typeLabel":"string"},"merchant_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.merchant_id","typeLabel":"string"},"source":{"type":"string","enum":["POS","ONLINE"],"isRequired":true,"uniqueKey":"oneOf.7.source","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["open","completed","voided"],"isRequired":true,"uniqueKey":"oneOf.7.status","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"EUR","isRequired":true,"uniqueKey":"oneOf.7.currency","typeLabel":"string"},"resource_version":{"type":"number","description":"Current server-issued version for the operation, starting at 1. Returned as `ETag` header.","isRequired":true,"uniqueKey":"oneOf.7.resource_version","typeLabel":"number"},"outstanding_amount":{"type":"string","example":"18.80","description":"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\".","isRequired":true,"uniqueKey":"oneOf.7.outstanding_amount","typeLabel":"string"},"fiscal_warnings":{"description":"Warnings that came with an accepted signature or report, e.g. from the Financial Administration. Empty when there were none.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Stable code of the warning, e.g. `cz_taxpayer_differs_from_certificate`.","example":"cz_taxpayer_differs_from_certificate","isRequired":true,"uniqueKey":"oneOf.7.fiscal_warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"The warning's text, as the authority sent it.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"oneOf.7.fiscal_warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.7.fiscal_warnings","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.7.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.7.updated_at","typeLabel":"string\u003cdate-time>"},"type":{"type":"string","enum":["payment"],"example":"payment","isRequired":true,"uniqueKey":"oneOf.7.type","typeLabel":"enum\u003cstring>"},"related_operation_id":{"type":"string","description":"The completed sale whose open amount this payment settles.","isRequired":true,"uniqueKey":"oneOf.7.related_operation_id","typeLabel":"string"},"total_amount":{"type":"string","example":"5.00","description":"The money collected.","isRequired":true,"uniqueKey":"oneOf.7.total_amount","typeLabel":"string"},"payments":{"description":"Its tender legs; empty until completed.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].amount","typeLabel":"string"},"rounded_cash_amount":{"oneOf":[{"type":"string","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].rounded_cash_amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cash payments only: the cash that actually changed hands, as sent at complete. `null` when none was sent: the cash moved equals `amount`.","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].currency","typeLabel":"string"},"status":{"type":"string","enum":["captured","refunded"],"description":"Direction of money movement: `captured` for money-in (SALE legs, EXCHANGE legs with amount > 0), `refunded` for money-out (RETURN legs, EXCHANGE legs with amount \u003c 0). Zero-amount EXCHANGE legs accept either.","isRequired":true,"uniqueKey":"oneOf.7.payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.7.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.7.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.7.payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.7.payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.7.payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.7.payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.7.payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.7.payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.payments.items.[INDEX].processed_at","typeLabel":"string\u003cdate-time> | null"},"gift_card_id":{"oneOf":[{"type":"string","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.7.payments.items.[INDEX].gift_card_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gift card identifier. Only present when method is \"gift_card\".","uniqueKey":"oneOf.7.payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.7.payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.7.payments","typeLabel":"object[]"},"location_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.7.location_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.7.location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.location_id","typeLabel":"string | null"},"register_id":{"oneOf":[{"type":"string","description":"Only set for source: POS.","uniqueKey":"oneOf.7.register_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Only set for source: POS.","uniqueKey":"oneOf.7.register_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.register_id","typeLabel":"string | null"},"session_id":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.7.session_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.7.session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.session_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.7.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant or POS identifier for the upstream order.","uniqueKey":"oneOf.7.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.external_id","typeLabel":"string | null"},"fiscal_information":{"oneOf":[{"type":"object","title":"FiscalInformationKassenSichV","description":"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.","required":["regime","document_number","document_type","tss_serial_number","pos_client_serial_number","signature_algorithm","time_format","start_event","end_event","verification"],"properties":{"regime":{"type":"string","enum":["KassenSichV"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.document_type","typeLabel":"string"},"tss_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.tss_serial_number","typeLabel":"string"},"pos_client_serial_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.pos_client_serial_number","typeLabel":"string"},"signature_algorithm":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.signature_algorithm","typeLabel":"string"},"time_format":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.time_format","typeLabel":"string"},"start_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.start_event.signed_at","typeLabel":"string\u003cdate-time>"}},"required":["signed_at"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.start_event","typeLabel":"object"},"end_event":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event.transaction_counter","typeLabel":"number"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event.signature","typeLabel":"string"},"public_key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event.public_key","typeLabel":"string"},"process_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event.process_type","typeLabel":"string"},"process_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event.process_data","typeLabel":"string"}},"required":["signed_at","transaction_counter","signature","public_key","process_type","process_data"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.end_event","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.0.verification","typeLabel":"object"}},"uniqueKey":"oneOf.7.fiscal_information.oneOf.0","typeLabel":"FiscalInformationKassenSichV · object"},{"type":"object","title":"FiscalInformationRKSV","description":"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.","required":["regime","document_number","document_type","cashbox_id","signature","verification"],"properties":{"regime":{"type":"string","enum":["RKSV"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.document_type","typeLabel":"string"},"cashbox_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.cashbox_id","typeLabel":"string"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.signature.signed_at","typeLabel":"string\u003cdate-time>"},"transaction_counter":{"type":"number","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.signature.transaction_counter","typeLabel":"number"},"turnover_counter":{"type":"string","description":"Running turnover counter as a decimal string.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.signature.turnover_counter","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.signature.signature","typeLabel":"string"},"certificate_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.signature.certificate_serial","typeLabel":"string"}},"required":["signed_at","transaction_counter","turnover_counter","signature","certificate_serial"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.signature","typeLabel":"object"},"verification":{"type":"object","properties":{"qr_data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.verification.qr_data","typeLabel":"string"}},"required":["qr_data"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.verification","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.7.fiscal_information.oneOf.1.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.7.fiscal_information.oneOf.1.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_information.oneOf.1.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"certificate_serial":{"type":"string","uniqueKey":"oneOf.7.fiscal_information.oneOf.1.certificate_serial","typeLabel":"string"}},"uniqueKey":"oneOf.7.fiscal_information.oneOf.1","typeLabel":"FiscalInformationRKSV · object"},{"type":"object","title":"FiscalInformationRT","description":"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.","required":["regime","document_number","document_type","rt_serial","rt_firmware","progressive_number","daily_closing_number","signature"],"properties":{"regime":{"type":"string","enum":["RT"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.regime","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.document_number","typeLabel":"string"},"document_type":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.document_type","typeLabel":"string"},"rt_serial":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.rt_serial","typeLabel":"string"},"rt_firmware":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.rt_firmware","typeLabel":"string"},"progressive_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.progressive_number","typeLabel":"number"},"daily_closing_number":{"type":"number","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.daily_closing_number","typeLabel":"number"},"signature":{"type":"object","properties":{"signed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.signature.signed_at","typeLabel":"string\u003cdate-time>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.signature.signature","typeLabel":"string"}},"required":["signed_at","signature"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.signature","typeLabel":"object"},"transmitted_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.7.fiscal_information.oneOf.2.transmitted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.7.fiscal_information.oneOf.2.transmitted_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.transmitted_at","typeLabel":"string\u003cdate-time> | null"},"lottery_code":{"oneOf":[{"type":"string","uniqueKey":"oneOf.7.fiscal_information.oneOf.2.lottery_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.7.fiscal_information.oneOf.2.lottery_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_information.oneOf.2.lottery_code","typeLabel":"string | null"}},"uniqueKey":"oneOf.7.fiscal_information.oneOf.2","typeLabel":"FiscalInformationRT · object"},{"type":"object","title":"FiscalInformationEET2","description":"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.","required":["regime","status","pok","environment","eet2_business_unit_id","eet2_register_id","sale_number","reported_amount","confirmed_at","warnings","error"],"properties":{"regime":{"type":"string","enum":["EET2"],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.regime","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["confirmed","retry","rejected","nothing_to_report"],"description":"`confirmed`: recorded by the Financial Administration, `pok` is set. `retry`: not recorded yet (no or a temporary answer). `rejected`: refused for good. `nothing_to_report`: no reportable money moved (only a voucher or store credit).","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.status","typeLabel":"enum\u003cstring>"},"pok":{"oneOf":[{"type":"string","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.pok.oneOf.0","typeLabel":"string"},{"type":"null","example":"bb411925-c67b-43d2-a5b8-986a62bc0cd0-ff","description":"The confirmation code (POK) the Financial Administration returned. Proof that the sale was recorded; it does not have to be printed on a receipt.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.pok.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.pok","typeLabel":"string | null"},"environment":{"type":"string","enum":["playground","production"],"description":"Where it was reported. The sandbox reports to the authority's test service (playground).","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.environment","typeLabel":"enum\u003cstring>"},"eet2_business_unit_id":{"type":"integer","example":141,"description":"The business unit (`id_jednotky`) the sale was reported under: the location's `eet2_business_unit_id` at the first report.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.eet2_business_unit_id","typeLabel":"integer"},"eet2_register_id":{"type":"string","example":"455300063gquex06hxuh","description":"The register id (`id_pokl`) the sale was reported under: the register's `eet2_register_id`.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.eet2_register_id","typeLabel":"string"},"sale_number":{"type":"string","example":"8","description":"The sale's number on its register (`porad_cis`). With the business unit and register id, what the Financial Administration files the sale under.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.sale_number","typeLabel":"string"},"reported_amount":{"oneOf":[{"type":"string","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.reported_amount.oneOf.0","typeLabel":"string"},{"type":"null","example":"250.00","description":"The money reported (`celk_trzba`), cash as rounded.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.reported_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.reported_amount","typeLabel":"string | null"},"confirmed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.confirmed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the Financial Administration accepted it, by its own clock.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.confirmed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.confirmed_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1,"description":"The authority's warning code (kod_varov).","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.warnings.items.[INDEX].code","typeLabel":"number"},"message":{"type":"string","example":"The taxpayer's DIČ differs from the DIČ in the certificate the sale was signed with. The sale is recorded under the taxpayer's DIČ.","description":"What the warning means, in English. The sale was recorded all the same.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.warnings.items.[INDEX].message","typeLabel":"string"},"authority_message":{"type":"string","example":"EIC poplatnika v datove zprave se neshoduje s EIC v certifikatu","description":"The authority's own text (Czech, without diacritics), as its support quotes it.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.warnings.items.[INDEX].authority_message","typeLabel":"string"}},"required":["code","message","authority_message"],"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.warnings","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","authority_message"],"properties":{"code":{"oneOf":[{"type":"number","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.0","typeLabel":"number"},{"type":"null","example":6,"description":"The authority's error code (kod). Null when no answer came (timeout, network).","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.code","typeLabel":"number | null"},"message":{"type":"string","example":"The taxpayer's DIČ is not valid: it fails the Financial Administration's check digit or birth-number rule.","description":"What went wrong, in English.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.message","typeLabel":"string"},"authority_message":{"oneOf":[{"type":"string","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.0","typeLabel":"string"},{"type":"null","example":"EIC poplatnika ma chybnou strukturu","description":"The authority's own text (Czech, without diacritics). Null when no answer came.","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.authority_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0.authority_message","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.7.fiscal_information.oneOf.3.error","typeLabel":"object | null"}},"uniqueKey":"oneOf.7.fiscal_information.oneOf.3","typeLabel":"FiscalInformationEET2 · object"},{"type":"null","uniqueKey":"oneOf.7.fiscal_information.oneOf.4","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_information","typeLabel":"FiscalInformationKassenSichV · object | FiscalInformationRKSV · object | FiscalInformationRT · object | FiscalInformationEET2 · object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"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`.","uniqueKey":"oneOf.7.started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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`.","uniqueKey":"oneOf.7.started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"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.","uniqueKey":"oneOf.7.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"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.","uniqueKey":"oneOf.7.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.completed_at","typeLabel":"string\u003cdate-time> | null"},"fiscal_status":{"oneOf":[{"type":"string","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.7.fiscal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["successfully_recorded","not_required","pending","blocked","failed"],"description":"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.","example":"not_required","uniqueKey":"oneOf.7.fiscal_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_status","typeLabel":"enum\u003cstring> | null"},"fiscal_status_reason":{"oneOf":[{"type":"string","description":"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","uniqueKey":"oneOf.7.fiscal_status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"oneOf.7.fiscal_status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_status_reason","typeLabel":"string | null"},"fiscal_status_action_by":{"oneOf":[{"type":"string","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.7.fiscal_status_action_by.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","merchant","openfiskal"],"description":"Who has to act: `none`, the `merchant` (e.g. upload a certificate), or `openfiskal`. Null when `fiscal_status` is null.","example":"none","uniqueKey":"oneOf.7.fiscal_status_action_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_status_action_by","typeLabel":"enum\u003cstring> | null"},"fiscal_status_message":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"oneOf.7.fiscal_status_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"oneOf.7.fiscal_status_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.fiscal_status_message","typeLabel":"string | null"},"voided_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.7.voided_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.7.voided_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.voided_at","typeLabel":"string\u003cdate-time> | null"},"void_reason":{"oneOf":[{"type":"string","uniqueKey":"oneOf.7.void_reason.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.7.void_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.void_reason","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","uniqueKey":"oneOf.7.note.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.7.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.7.note","typeLabel":"string | null"}},"uniqueKey":"oneOf.7","typeLabel":"PaymentOperation · object"}],"uniqueKey":"","typeLabel":"SaleOperation · object | ReturnOperation · object | ExchangeOperation · object | SessionOpenOperation · object | SessionCashAdjustmentOperation · object | SessionCashCountOperation · object | SessionCloseOperation · object | PaymentOperation · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","merchant_id":"\u003cstring>","source":"POS","status":"open","currency":"EUR","resource_version":123,"outstanding_amount":"18.80","fiscal_warnings":[{"code":"cz_taxpayer_differs_from_certificate","message":"\u003cstring>"}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","pretax_amount":"\u003cstring>","tax_amount":"\u003cstring>","tip_amount":"\u003cstring>","total_amount":"\u003cstring>","line_items":[{"id":"\u003cstring>","type":"item","title":"\u003cstring>","quantity":123,"unit_price":"\u003cstring>","total_amount":"\u003cstring>","sku_identifier":"TSHIRT-BLUE-M","taxes":[{"id":"\u003cstring>","name":"\u003cstring>","rate":"\u003cstring>","tax_amount":"\u003cstring>"}],"gift_card_id":"\u003cstring>"}],"payments":[{"id":"\u003cstring>","payment_id":"\u003cstring>","method":"\u003cstring>","amount":"\u003cstring>","rounded_cash_amount":"\u003cstring>","currency":"\u003cstring>","status":"captured","processor":"\u003cstring>","card_brand":"\u003cstring>","processor_reference":"\u003cstring>","processed_at":"2023-11-07T05:31:56Z","gift_card_id":"\u003cstring>"}],"type":"sale","payment_operations":[{"id":"op_pay_1","total_amount":"5.00","payments":[{"id":"\u003cstring>","payment_id":"\u003cstring>","method":"\u003cstring>","amount":"\u003cstring>","rounded_cash_amount":"\u003cstring>","currency":"\u003cstring>","status":"captured","processor":"\u003cstring>","card_brand":"\u003cstring>","processor_reference":"\u003cstring>","processed_at":"2023-11-07T05:31:56Z","gift_card_id":"\u003cstring>"}],"register_id":"\u003cstring>","location_id":"\u003cstring>","completed_at":"2023-11-07T05:31:56Z"}],"releasing_returns":[{"id":"op_ret_1","released_outstanding_amount":"1800.00","register_id":"\u003cstring>","location_id":"\u003cstring>","completed_at":"2023-11-07T05:31:56Z"}],"cart_level_discounts":[{"id":"\u003cstring>","amount":"\u003cstring>","description":"\u003cstring>"}],"location_id":"\u003cstring>","register_id":"\u003cstring>","session_id":"\u003cstring>","external_id":"\u003cstring>","fiscal_information":{"regime":"KassenSichV","document_number":"\u003cstring>","document_type":"\u003cstring>","tss_serial_number":"\u003cstring>","pos_client_serial_number":"\u003cstring>","signature_algorithm":"\u003cstring>","time_format":"\u003cstring>","start_event":{"signed_at":"2023-11-07T05:31:56Z"},"end_event":{"signed_at":"2023-11-07T05:31:56Z","transaction_counter":123,"signature":"\u003cstring>","public_key":"\u003cstring>","process_type":"\u003cstring>","process_data":"\u003cstring>"},"verification":{"qr_data":"\u003cstring>"}},"started_at":"2023-11-07T05:31:56Z","completed_at":"2023-11-07T05:31:56Z","fiscal_status":"not_required","fiscal_status_reason":"cz_no_money_received","fiscal_status_action_by":"none","fiscal_status_message":"No money received. Each payment is reported to EET2 when it is received.","voided_at":"2023-11-07T05:31:56Z","void_reason":"\u003cstring>","note":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"a347b0a6-149c-414f-840b-c02d0582c3b4":{"description":"Invalid request, or `Idempotency-Key` missing","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether retrying the request is safe.","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"details":{"type":"object","description":"Additional structured context for the error.","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","retryable"],"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_request":{"title":"invalid_request","summary":"invalid_request","value":{"code":"invalid_request","message":"The request body is malformed.","retryable":false}},"idempotency_key_required":{"title":"idempotency_key_required","summary":"idempotency_key_required","value":{"code":"idempotency_key_required","message":"Idempotency-Key header is required on this endpoint.","retryable":false}}},"exampleType":"examples"}},"exampleType":"examples"},"eb93a95e-131c-4295-8b03-70d8d7b95f9a":{"description":"Authentication failed","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether retrying the request is safe.","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"details":{"type":"object","description":"Additional structured context for the error.","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","retryable"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"unauthorized","value":{"code":"unauthorized","message":"Authentication failed.","retryable":false}}},"exampleType":"examples"}},"exampleType":"examples"},"341d9484-2d38-4bea-8dc4-599852825b8b":{"description":"Authenticated caller is not allowed to access the requested tenant, country, or merchant.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether retrying the request is safe.","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"details":{"type":"object","description":"Additional structured context for the error.","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","retryable"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"forbidden","value":{"code":"forbidden","message":"The authenticated caller cannot access this resource.","retryable":false}}},"exampleType":"examples"}},"exampleType":"examples"},"3e4faacb-9f9f-4beb-bc73-505f34697221":{"description":"Conflict. `idempotency_key_in_progress`, `register_busy`, `operation_in_progress` and `tse_busy` are retryable with the same key after `Retry-After`; the others are not.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether retrying the request is safe.","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"details":{"type":"object","description":"Additional structured context for the error.","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","retryable"],"uniqueKey":"","typeLabel":"object"},"examples":{"register_no_open_session":{"title":"register_no_open_session","summary":"register_no_open_session","value":{"code":"register_no_open_session","message":"The register has no OPEN session. Open a session before posting POS operations.","retryable":false}},"register_busy":{"title":"register_busy","summary":"register_busy","value":{"code":"register_busy","message":"Register reg_123 is busy ingesting another operation. Retry shortly.","retryable":true}},"tse_busy":{"title":"tse_busy","summary":"tse_busy","value":{"code":"tse_busy","message":"The TSE is busy signing other receipts. Retry shortly with the same Idempotency-Key.","retryable":true}},"idempotency_key_conflict":{"title":"idempotency_key_conflict","summary":"idempotency_key_conflict","value":{"code":"idempotency_key_conflict","message":"This Idempotency-Key was already used with a different request. To retry, resend the original request unchanged; for a new request, use a new key.","retryable":false,"details":{"operation_id":"cmoqk8x1z0001abcd2efgh3ij"}}},"idempotency_key_in_progress":{"title":"idempotency_key_in_progress","summary":"idempotency_key_in_progress","value":{"code":"idempotency_key_in_progress","message":"A request with this Idempotency-Key is still being processed. Retry with the same key after Retry-After.","retryable":true}}},"exampleType":"examples"}},"exampleType":"examples"},"bf08d15f-ce59-48c4-8999-54379466f5b0":{"description":"Domain validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether retrying the request is safe.","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"details":{"type":"object","description":"Additional structured context for the error.","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","retryable"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"regime_validation_failed","value":{"code":"regime_validation_failed","message":"The payload violates regime-specific validation rules.","retryable":false}}},"exampleType":"examples"}},"exampleType":"examples"},"2f05b9b9-e014-4782-9b88-222389a45da5":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether retrying the request is safe.","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"details":{"type":"object","description":"Additional structured context for the error.","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["code","message","retryable"],"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","summary":"rate_limit_exceeded","value":{"code":"rate_limit_exceeded","message":"Too many requests.","retryable":true}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a8ebb288-9df3-4f1f-9c11-6f30f8b554f3":{"BearerAuth":{"scheme":"bearer","bearerFormat":"API key","type":"http","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"4bc04bc8-56cf-45df-be08-ace0ff7a8ceb":{"url":"https://api.openfiskal.com/v1","description":"Production"},"8feb6b61-69b6-4a96-a8f8-71566a5f9383":{"url":"https://sandbox.api.openfiskal.com/v1","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"API key","type":"http","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"openfiskal","siteName":"OpenFiskal Platform API","title":"Create operation - OpenFiskal Platform API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-28T22:21:57.162Z","originalFileLocation":"api-reference/operations/create-operation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Starts a new operation. The body is a discriminated union on type: goods movement (sale / return / exchange), a payment against a sale\u0026#x27;s open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpenFiskal Platform API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create operation - OpenFiskal Platform API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts a new operation. The body is a discriminated union on type: goods movement (sale / return / exchange), a payment against a sale\u0026#x27;s open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpenFiskal Platform API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.openfiskal.com/api-reference/operations/create-operation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://openfiskal.mintlify.site/_mintlify/api/og/v2?division=Operations\u0026amp;title=Create+operation\u0026amp;description=Starts+a+new+operation.+The+body+is+a+discriminated+union+on+%60type%60%3A+goods+movement+%28sale+%2F+return+%2F+exchange%29%2C+a+payment+against+a+sale%27s+open+amount+%28payment%29\u0026amp;theme=96a525572cd4d2df0d081565\u0026amp;signature=527e25ec7c020de8234ab6147b48bfae1bb01ff8498744acbaa7ba8979ac2ea2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create operation - OpenFiskal Platform API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts a new operation. The body is a discriminated union on type: goods movement (sale / return / exchange), a payment against a sale\u0026#x27;s open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://openfiskal.mintlify.site/_mintlify/api/og/v2?division=Operations\u0026amp;title=Create+operation\u0026amp;description=Starts+a+new+operation.+The+body+is+a+discriminated+union+on+%60type%60%3A+goods+movement+%28sale+%2F+return+%2F+exchange%29%2C+a+payment+against+a+sale%27s+open+amount+%28payment%29\u0026amp;theme=96a525572cd4d2df0d081565\u0026amp;signature=527e25ec7c020de8234ab6147b48bfae1bb01ff8498744acbaa7ba8979ac2ea2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/openfiskal/Wk-M2w58j3BibvuN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpenFiskal Platform API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#001A72\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.openfiskal.com/api-reference/operations/create-operation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/operations/create-operation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.openfiskal.com/#organization\",\"name\":\"OpenFiskal Platform API\",\"url\":\"https://docs.openfiskal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/openfiskal/qxovsukyJl4o5re7/images/OpenFiskal_Logo_Main_Hori_Blue.svg?fit=max\u0026auto=format\u0026n=qxovsukyJl4o5re7\u0026q=85\u0026s=615e680b036ab06bf14aeedd2d72b6f7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.openfiskal.com#website\",\"name\":\"OpenFiskal Platform API\",\"url\":\"https://docs.openfiskal.com\",\"publisher\":{\"@id\":\"https://docs.openfiskal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.openfiskal.com/api-reference/operations/create-operation#webpage\",\"url\":\"https://docs.openfiskal.com/api-reference/operations/create-operation\",\"name\":\"Create operation\",\"description\":\"Starts a new operation. The body is a discriminated union on type: goods movement (sale / return / exchange), a payment against a sale's open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).\",\"dateModified\":\"2026-11-28T22:21:57.162Z\",\"isPartOf\":{\"@id\":\"https://docs.openfiskal.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.openfiskal.com/api-reference/operations/create-operation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.openfiskal.com/api-reference/operations/create-operation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Fiscalization API\",\"item\":\"https://docs.openfiskal.com/api-reference/merchants/list-merchants\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operations\",\"item\":\"https://docs.openfiskal.com/api-reference/operations/get-operation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create operation\",\"item\":\"https://docs.openfiskal.com/api-reference/operations/create-operation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.openfiskal.com/api-reference/operations/create-operation#apireference\",\"headline\":\"Create operation\",\"name\":\"Create operation\",\"description\":\"Starts a new operation. The body is a discriminated union on type: goods movement (sale / return / exchange), a payment against a sale's open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_cash_count / session_close).\",\"url\":\"https://docs.openfiskal.com/api-reference/operations/create-operation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.openfiskal.com/api-reference/operations/create-operation#webpage\"},\"dateModified\":\"2026-11-28T22:21:57.162Z\",\"publisher\":{\"@id\":\"https://docs.openfiskal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.openfiskal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OpenFiskal Platform API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OpenFiskal Platform API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/operations/create-operation.md","siteName":"OpenFiskal Platform API","nav":{"global":null,"tabs":[{"tab":"Fiscalization API","pages":[{"group":"Overview","pages":[{"group":"Getting started","pages":[{"title":"Getting started","href":"/getting-started"},{"title":"Getting started · 🇩🇪 Germany","href":"/getting-started/de"},{"title":"Getting started · 🇦🇹 Austria","href":"/getting-started/at"},{"title":"Getting started · 🇮🇹 Italy","href":"/getting-started/it"}]},{"title":"Integration topology","href":"/integration-topology"},{"title":"Authentication","href":"/auth"}]},{"group":"Transaction processing","pages":[{"title":"Register lifecycle","href":"/register-lifecycle"},{"title":"Sessions","href":"/sessions"},{"title":"Transaction lifecycle","href":"/pos-operation-ingestion"},{"title":"Payment lifecycle","href":"/payment-lifecycle"},{"title":"Decimal precision","href":"/decimal-precision"},{"title":"Offline and recovery","href":"/offline-guidance"}]},{"group":"Operations and delivery","pages":[{"title":"Errors","href":"/errors"},{"title":"Limits and platform guarantees","href":"/errors-and-limits"},{"title":"Sandbox and go-live","href":"/sandbox-and-go-live"}]},{"group":"Fiscalization API","pages":[{"group":"Merchants","pages":[{"title":"List merchants","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /merchants","href":"/api-reference/merchants/list-merchants"},{"title":"Create merchant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /merchants","href":"/api-reference/merchants/create-merchant"},{"title":"Get merchant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /merchants/{merchantId}","href":"/api-reference/merchants/get-merchant"},{"title":"Update merchant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /merchants/{merchantId}","href":"/api-reference/merchants/update-merchant"}]},{"group":"Registers","pages":[{"title":"List registers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /registers","href":"/api-reference/registers/list-registers"},{"title":"Create register","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /registers","href":"/api-reference/registers/create-register"},{"title":"Get register","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /registers/{registerId}","href":"/api-reference/registers/get-register"},{"title":"Delete register","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /registers/{registerId}","href":"/api-reference/registers/delete-register"},{"title":"Update register","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /registers/{registerId}","href":"/api-reference/registers/update-register"},{"title":"Fiscalize register","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /registers/{registerId}/fiscalize","href":"/api-reference/registers/fiscalize-register"},{"title":"Decommission register","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /registers/{registerId}/decommission","href":"/api-reference/registers/decommission-register"}]},{"group":"Locations","pages":[{"title":"List locations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /locations","href":"/api-reference/locations/list-locations"},{"title":"Create location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /locations","href":"/api-reference/locations/create-location"},{"title":"Get location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /locations/{locationId}","href":"/api-reference/locations/get-location"},{"title":"Delete location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /locations/{locationId}","href":"/api-reference/locations/delete-location"},{"title":"Update location","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /locations/{locationId}","href":"/api-reference/locations/update-location"}]},{"group":"Czechia (EET 2.0)","pages":[{"title":"List cash certificates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /regimes/czechia_eet2/cash-certificates","href":"/api-reference/czechia-eet-20/list-cash-certificates"},{"title":"Upload a cash certificate","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /regimes/czechia_eet2/cash-certificates","href":"/api-reference/czechia-eet-20/upload-a-cash-certificate"},{"title":"Get a cash certificate","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /regimes/czechia_eet2/cash-certificates/{certificateId}","href":"/api-reference/czechia-eet-20/get-a-cash-certificate"},{"title":"Delete a cash certificate","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /regimes/czechia_eet2/cash-certificates/{certificateId}","href":"/api-reference/czechia-eet-20/delete-a-cash-certificate"}]},{"group":"Operations","pages":[{"title":"Get operation","description":"Returns a single operation. The response is a discriminated union on `type`: goods movement (sale / return / exchange), a payment against a sale's open amount (payment), or session lifecycle (session_open / session_cash_adjustment / session_close).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /operations/{operationId}","href":"/api-reference/operations/get-operation"},{"title":"Create operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations","href":"/api-reference/operations/create-operation"},{"title":"Complete operation","description":"Finalizes a goods-movement operation (`sale` / `return` / `exchange`) and attaches the typed payment contract used for fiscalization and reconciliation. Session-lifecycle operations (`session_open`, `session_cash_adjustment`, `session_cash_count`, `session_close`) auto-complete on `POST /operations` and must not be sent here — they will return `409 operation_invalid_state` because they are never in OPEN status.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations/{operationId}/complete","href":"/api-reference/operations/complete-operation"},{"title":"Void operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations/{operationId}/void","href":"/api-reference/operations/void-operation"}]}]},{"group":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"tab":"Reporting API","pages":[{"title":"Reporting API","href":"/reporting-api-getting-started"}]},{"tab":"Hosted Receipts API","pages":[{"title":"Hosted Receipts API","href":"/hosted-receipts-api"}]}]},"basePath":"","title":"Create operation - OpenFiskal Platform API","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}