Voids an open goods-movement operation (sale / return / exchange) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return 409 operation_invalid_state. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in fiscal_information. If signing fails, the operation stays open: retry with the same Idempotency-Key.
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.
If-Match
string
required
Latest operation ETag returned by OpenFiskal. Replace it after every successful mutation.
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.
Path Parameters
operationId
string
required
Body
application/json
reason
enum<string>
required
Reason for voiding the operation
Available options:
void_before_completion,
customer_abandoned_checkout,
operator_cancelled,
payment_failed
Example:
"customer_abandoned_checkout"
Response
Operation voided
SaleOperation
ReturnOperation
ExchangeOperation
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/void-operation","slug":"/api-reference/operations/void-operation","pageMetadata":{"title":"Void operation","description":"Voids an open goods-movement operation (`sale` / `return` / `exchange`) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return `409 operation_invalid_state`. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in `fiscal_information`. If signing fails, the operation stays open: retry with the same `Idempotency-Key`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations/{operationId}/void","href":"/api-reference/operations/void-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: [\"Voids an open goods-movement operation (\", _jsx(_components.code, {\n children: \"sale\"\n }), \" / \", _jsx(_components.code, {\n children: \"return\"\n }), \" / \", _jsx(_components.code, {\n children: \"exchange\"\n }), \") before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return \", _jsx(_components.code, {\n children: \"409 operation_invalid_state\"\n }), \". On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in \", _jsx(_components.code, {\n children: \"fiscal_information\"\n }), \". If signing fails, the operation stays open: retry with the same \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \".\"]\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":"Void operation","description":"Voids an open goods-movement operation (`sale` / `return` / `exchange`) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return `409 operation_invalid_state`. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in `fiscal_information`. If signing fails, the operation stays open: retry with the same `Idempotency-Key`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /operations/{operationId}/void","href":"/api-reference/operations/void-operation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Voids an open goods-movement operation (`sale` / `return` / `exchange`) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return `409 operation_invalid_state`. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in `fiscal_information`. If signing fails, the operation stays open: retry with the same `Idempotency-Key`.","operationId":"OperationsController_voidOperation","parameters":["85d58595-ca28-4d10-8254-88c873900000","a53834c7-5e79-42b3-8a43-33bb2d2b0ab1","48a194be-356d-41f4-bf6d-99d00a29a949","37789bc7-4939-469e-b93e-70bf646337ac"],"requestBody":"06065469-5f50-4033-8139-2cb5e6fa91d5","responses":{"200":"fe9290a4-ceed-458b-8633-78d02fd913bc","400":"e705d038-3a4b-4c41-8045-e26b0bd0c951","401":"ee89ddd4-e0fc-4815-80c4-9e8cd82b716c","403":"e3f81a59-e435-4e37-9bfc-29e031ab13e8","404":"8cdfd8f6-c072-4b14-b532-1752a83cdeb0","409":"b7e6f9cd-072f-4da4-8dae-345d9097e5b7","412":"6123e5e6-9a83-4559-b904-f6182fbdde08","422":"274eddcb-a4f5-462d-9e45-e4468ec5b801","428":"c76fd72d-7bf3-4464-bc7d-3b85deda210d"},"security":["6da05f08-f8c2-4a51-9cdf-ca06b6ef1921"],"summary":"Void operation","tags":["Operations"],"method":"post","type":"path","servers":["4bc04bc8-56cf-45df-be08-ace0ff7a8ceb","8feb6b61-69b6-4a96-a8f8-71566a5f9383"],"path":"/operations/{operationId}/void","baseUrlOptions":["https://api.openfiskal.com/v1","https://sandbox.api.openfiskal.com/v1"],"title":"Void operation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"85d58595-ca28-4d10-8254-88c873900000":{"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"}},"a53834c7-5e79-42b3-8a43-33bb2d2b0ab1":{"name":"operationId","required":true,"in":"path","schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"48a194be-356d-41f4-bf6d-99d00a29a949":{"name":"If-Match","required":true,"in":"header","description":"Latest operation `ETag` returned by OpenFiskal. Replace it after every successful mutation.","schema":{"type":"string","isRequired":true,"description":"Latest operation `ETag` returned by OpenFiskal. Replace it after every successful mutation.","uniqueKey":"","typeLabel":"string"}},"37789bc7-4939-469e-b93e-70bf646337ac":{"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,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["void_before_completion","customer_abandoned_checkout","operator_cancelled","payment_failed"],"example":"customer_abandoned_checkout","description":"Reason for voiding the operation","isRequired":true,"uniqueKey":"reason","typeLabel":"enum\u003cstring>"}},"required":["reason"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"reason":"customer_abandoned_checkout"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"fe9290a4-ceed-458b-8633-78d02fd913bc":{"description":"Operation voided","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":"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.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":["payment"],"example":"payment","isRequired":true,"uniqueKey":"oneOf.3.type","typeLabel":"enum\u003cstring>"},"related_operation_id":{"type":"string","description":"The completed sale whose open amount this payment settles.","isRequired":true,"uniqueKey":"oneOf.3.related_operation_id","typeLabel":"string"},"total_amount":{"type":"string","example":"5.00","description":"The money collected.","isRequired":true,"uniqueKey":"oneOf.3.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.3.payments.items.[INDEX].id","typeLabel":"string"},"payment_id":{"type":"string","description":"Merchant or PSP identifier for the payment.","isRequired":true,"uniqueKey":"oneOf.3.payments.items.[INDEX].payment_id","typeLabel":"string"},"method":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.payments.items.[INDEX].method","typeLabel":"string"},"amount":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.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.3.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.3.payments.items.[INDEX].rounded_cash_amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.3.payments.items.[INDEX].rounded_cash_amount","typeLabel":"string | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.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.3.payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.payments.items.[INDEX].processor","typeLabel":"string | null"},"card_brand":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.payments.items.[INDEX].card_brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.payments.items.[INDEX].card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.payments.items.[INDEX].card_brand","typeLabel":"string | null"},"processor_reference":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.payments.items.[INDEX].processor_reference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.payments.items.[INDEX].processor_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.payments.items.[INDEX].processor_reference","typeLabel":"string | null"},"processed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.3.payments.items.[INDEX].processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.3.payments.items.[INDEX].processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.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.3.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.3.payments.items.[INDEX].gift_card_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.payments.items.[INDEX].gift_card_id","typeLabel":"string | null"}},"required":["id","payment_id","method","amount","rounded_cash_amount","currency","status"],"uniqueKey":"oneOf.3.payments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.3.payments","typeLabel":"object[]"},"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"},"note":{"oneOf":[{"type":"string","uniqueKey":"oneOf.3.note.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.3.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.note","typeLabel":"string | null"}},"uniqueKey":"oneOf.3","typeLabel":"PaymentOperation · object"}],"uniqueKey":"","typeLabel":"SaleOperation · object | ReturnOperation · object | ExchangeOperation · 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"},"e705d038-3a4b-4c41-8045-e26b0bd0c951":{"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"},"ee89ddd4-e0fc-4815-80c4-9e8cd82b716c":{"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"},"e3f81a59-e435-4e37-9bfc-29e031ab13e8":{"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"},"8cdfd8f6-c072-4b14-b532-1752a83cdeb0":{"description":"Operation not found","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":"not_found","value":{"code":"not_found","message":"The requested resource does not exist.","retryable":false}}},"exampleType":"examples"}},"exampleType":"examples"},"b7e6f9cd-072f-4da4-8dae-345d9097e5b7":{"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":{"operation_invalid_state":{"title":"operation_invalid_state","summary":"operation_invalid_state","value":{"code":"operation_invalid_state","message":"Only OPEN operations can be voided.","retryable":false}},"operation_in_progress":{"title":"operation_in_progress","summary":"operation_in_progress","value":{"code":"operation_in_progress","message":"Operation is being completed or voided by another request. 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"},"6123e5e6-9a83-4559-b904-f6182fbdde08":{"description":"Stale `If-Match` header","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":"precondition_failed","value":{"code":"precondition_failed","message":"Resource version mismatch.","retryable":true,"details":{"expected_resource_version":1,"current_resource_version":2}}}},"exampleType":"examples"}},"exampleType":"examples"},"274eddcb-a4f5-462d-9e45-e4468ec5b801":{"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"},"c76fd72d-7bf3-4464-bc7d-3b85deda210d":{"description":"Missing `If-Match` header","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":"precondition_required","value":{"code":"precondition_required","message":"This operation requires an If-Match header.","retryable":false}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6da05f08-f8c2-4a51-9cdf-ca06b6ef1921":{"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":"Void operation - OpenFiskal Platform API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-28T22:21:57.196Z","originalFileLocation":"api-reference/operations/void-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=\"Voids an open goods-movement operation (sale / return / exchange) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return 409 operation_invalid_state. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in fiscal_information. If signing fails, the operation stays open: retry with the same Idempotency-Key.\">\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=\"Void operation - OpenFiskal Platform API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Voids an open goods-movement operation (sale / return / exchange) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return 409 operation_invalid_state. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in fiscal_information. If signing fails, the operation stays open: retry with the same Idempotency-Key.\">\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/void-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=Void+operation\u0026amp;description=Voids+an+open+goods-movement+operation+%28%60sale%60+%2F+%60return%60+%2F+%60exchange%60%29+before+completion.+Use+a+return+operation+after+completion.+Session-lifecycle+operations\u0026amp;theme=96a525572cd4d2df0d081565\u0026amp;signature=b5871865be87280294d66faae243702ea467446f3170dbc37c08f515bcd42377\">\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=\"Void operation - OpenFiskal Platform API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Voids an open goods-movement operation (sale / return / exchange) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return 409 operation_invalid_state. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in fiscal_information. If signing fails, the operation stays open: retry with the same Idempotency-Key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://openfiskal.mintlify.site/_mintlify/api/og/v2?division=Operations\u0026amp;title=Void+operation\u0026amp;description=Voids+an+open+goods-movement+operation+%28%60sale%60+%2F+%60return%60+%2F+%60exchange%60%29+before+completion.+Use+a+return+operation+after+completion.+Session-lifecycle+operations\u0026amp;theme=96a525572cd4d2df0d081565\u0026amp;signature=b5871865be87280294d66faae243702ea467446f3170dbc37c08f515bcd42377\">\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/void-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/void-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/void-operation#webpage\",\"url\":\"https://docs.openfiskal.com/api-reference/operations/void-operation\",\"name\":\"Void operation\",\"description\":\"Voids an open goods-movement operation (sale / return / exchange) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return 409 operation_invalid_state. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in fiscal_information. If signing fails, the operation stays open: retry with the same Idempotency-Key.\",\"dateModified\":\"2026-11-28T22:21:57.196Z\",\"isPartOf\":{\"@id\":\"https://docs.openfiskal.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.openfiskal.com/api-reference/operations/void-operation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.openfiskal.com/api-reference/operations/void-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\":\"Void operation\",\"item\":\"https://docs.openfiskal.com/api-reference/operations/void-operation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.openfiskal.com/api-reference/operations/void-operation#apireference\",\"headline\":\"Void operation\",\"name\":\"Void operation\",\"description\":\"Voids an open goods-movement operation (sale / return / exchange) before completion. Use a return operation after completion. Session-lifecycle operations auto-complete on create and cannot be voided: they return 409 operation_invalid_state. On a fiscalized German register the void is signed on the TSE as an aborted receipt with an amount of 0 and no payment, and the voided operation returns it in fiscal_information. If signing fails, the operation stays open: retry with the same Idempotency-Key.\",\"url\":\"https://docs.openfiskal.com/api-reference/operations/void-operation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.openfiskal.com/api-reference/operations/void-operation#webpage\"},\"dateModified\":\"2026-11-28T22:21:57.196Z\",\"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/void-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","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","description":"API contract updates to the OpenFiskal Fiscalization API.","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":"Void 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"]}