{
  "openapi": "3.0.0",
  "paths": {
    "/v1/me": {
      "get": {
        "description": "Zum Testen der Verbindung.",
        "operationId": "PublicApiController_me",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "api_key": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "prefix": {
                          "type": "string"
                        },
                        "scopes": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "catalog:read",
                              "catalog:write",
                              "orders:read",
                              "customers:read",
                              "customers:write",
                              "invoices:read",
                              "reports:read",
                              "bookings:read",
                              "inventory:read",
                              "cashbook:read"
                            ]
                          }
                        },
                        "location": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "name"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rate_limit_per_min": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "prefix",
                        "scopes",
                        "location",
                        "rate_limit_per_min"
                      ],
                      "additionalProperties": false
                    },
                    "tenant": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        }
                      },
                      "required": ["name", "slug"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["api_key", "tenant"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Eigener API-Schlüssel und Betrieb",
        "tags": ["Allgemein"],
        "x-kassaone-scope": null
      }
    },
    "/v1/products": {
      "get": {
        "operationId": "PublicApiController_products",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": ["string", "null"]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "category": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": ["id", "name"],
                            "additionalProperties": false
                          },
                          "tax_class_id": {
                            "type": "string"
                          },
                          "is_voucher": {
                            "type": "boolean"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "variants": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "price_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "sold_by_weight": {
                                  "type": "boolean",
                                  "description": "true: price_cents ist der Kilopreis"
                                },
                                "sku": {
                                  "type": ["string", "null"]
                                },
                                "barcode": {
                                  "type": ["string", "null"]
                                },
                                "active": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "price_cents",
                                "sold_by_weight",
                                "sku",
                                "barcode",
                                "active"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "image_urls": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "created_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "active",
                          "category",
                          "tax_class_id",
                          "is_voucher",
                          "currency",
                          "variants",
                          "image_urls",
                          "created_at",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Artikel mit Varianten und Preisen",
        "tags": ["Katalog"],
        "x-kassaone-scope": "catalog:read"
      }
    },
    "/v1/products/{id}": {
      "get": {
        "operationId": "PublicApiController_product",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": ["string", "null"]
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "category": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "name"],
                      "additionalProperties": false
                    },
                    "tax_class_id": {
                      "type": "string"
                    },
                    "is_voucher": {
                      "type": "boolean"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "variants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "price_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "sold_by_weight": {
                            "type": "boolean",
                            "description": "true: price_cents ist der Kilopreis"
                          },
                          "sku": {
                            "type": ["string", "null"]
                          },
                          "barcode": {
                            "type": ["string", "null"]
                          },
                          "active": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "price_cents",
                          "sold_by_weight",
                          "sku",
                          "barcode",
                          "active"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "image_urls": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "active",
                    "category",
                    "tax_class_id",
                    "is_voucher",
                    "currency",
                    "variants",
                    "image_urls",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Ein Artikel",
        "tags": ["Katalog"],
        "x-kassaone-scope": "catalog:read"
      },
      "patch": {
        "description": "Nur `active` und je Variante `price_cents`/`active`. Wirkt sofort an allen Kassen (Offline-Kassen nach dem nächsten Abgleich).",
        "operationId": "PublicApiController_patchProduct",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean"
                  },
                  "variants": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "price_cents": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000
                        },
                        "active": {
                          "type": "boolean"
                        }
                      },
                      "required": ["id"]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": ["string", "null"]
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "category": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "name"],
                      "additionalProperties": false
                    },
                    "tax_class_id": {
                      "type": "string"
                    },
                    "is_voucher": {
                      "type": "boolean"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "variants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "price_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "sold_by_weight": {
                            "type": "boolean",
                            "description": "true: price_cents ist der Kilopreis"
                          },
                          "sku": {
                            "type": ["string", "null"]
                          },
                          "barcode": {
                            "type": ["string", "null"]
                          },
                          "active": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "price_cents",
                          "sold_by_weight",
                          "sku",
                          "barcode",
                          "active"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "image_urls": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "active",
                    "category",
                    "tax_class_id",
                    "is_voucher",
                    "currency",
                    "variants",
                    "image_urls",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Artikel aktivieren/deaktivieren, Variantenpreise ändern",
        "tags": ["Katalog"],
        "x-kassaone-scope": "catalog:write"
      }
    },
    "/v1/orders": {
      "get": {
        "description": "Unveränderlich; ein Storno ist ein eigener Beleg (`kind = reversal`). Sortiert nach `created_at`; `updated_since`, `from`, `to` beziehen sich auf `created_at`.",
        "operationId": "PublicApiController_orders",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          },
          {
            "name": "location_id",
            "required": false,
            "in": "query",
            "description": "nur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)",
            "schema": {}
          },
          {
            "name": "from",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive), created_at",
            "schema": {}
          },
          {
            "name": "to",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (exklusive), created_at",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "receipt_number": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "kind": {
                            "type": "string",
                            "enum": ["sale", "reversal"]
                          },
                          "status": {
                            "type": "string",
                            "enum": ["paid"]
                          },
                          "voided": {
                            "type": "boolean"
                          },
                          "reverses_order_id": {
                            "type": ["string", "null"]
                          },
                          "reversed_by_order_id": {
                            "type": ["string", "null"]
                          },
                          "reversal_reason": {
                            "type": ["string", "null"]
                          },
                          "location_id": {
                            "type": "string"
                          },
                          "device_id": {
                            "type": "string"
                          },
                          "cashier_id": {
                            "type": "string"
                          },
                          "customer_id": {
                            "type": ["string", "null"]
                          },
                          "order_type": {
                            "type": "string",
                            "enum": ["dine_in", "takeaway", "delivery"]
                          },
                          "source": {
                            "type": "string",
                            "enum": ["pos", "kiosk", "online", "qr"]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "total_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tip_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "offline": {
                            "type": "boolean"
                          },
                          "late_synced": {
                            "type": "boolean",
                            "description": "Offline-Verkauf, der erst nach dem Abschluss seiner Schicht ankam"
                          },
                          "tse_status": {
                            "type": "string",
                            "enum": ["signed", "failed"]
                          },
                          "occurred_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "created_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "lines": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "product_id": {
                                  "type": "string"
                                },
                                "variant_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "variant_name": {
                                  "type": ["string", "null"]
                                },
                                "quantity": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "weight_grams": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unit_price_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "discount_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "total_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "tax_rate_code": {
                                  "type": "string"
                                },
                                "staff_user_id": {
                                  "type": ["string", "null"]
                                },
                                "modifiers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "modifier_id": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "quantity": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      },
                                      "price_delta_cents": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991,
                                        "description": "ganze Cent"
                                      }
                                    },
                                    "required": [
                                      "modifier_id",
                                      "name",
                                      "quantity",
                                      "price_delta_cents"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "product_id",
                                "variant_id",
                                "name",
                                "variant_name",
                                "quantity",
                                "weight_grams",
                                "unit_price_cents",
                                "discount_cents",
                                "total_cents",
                                "tax_rate_code",
                                "staff_user_id",
                                "modifiers"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "taxes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "rate_code": {
                                  "type": "string"
                                },
                                "rate_bp": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "Basispunkte, 19 % = 1900"
                                },
                                "gross_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "net_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "tax_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": [
                                "rate_code",
                                "rate_bp",
                                "gross_cents",
                                "net_cents",
                                "tax_cents"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "payments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "method": {
                                  "type": "string"
                                },
                                "amount_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "tip_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": ["method", "amount_cents", "tip_cents"],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "receipt_number",
                          "kind",
                          "status",
                          "voided",
                          "reverses_order_id",
                          "reversed_by_order_id",
                          "reversal_reason",
                          "location_id",
                          "device_id",
                          "cashier_id",
                          "customer_id",
                          "order_type",
                          "source",
                          "currency",
                          "total_cents",
                          "tip_cents",
                          "offline",
                          "late_synced",
                          "tse_status",
                          "occurred_at",
                          "created_at",
                          "lines",
                          "taxes",
                          "payments"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Belege (Verkäufe und Stornos)",
        "tags": ["Belege"],
        "x-kassaone-scope": "orders:read"
      }
    },
    "/v1/orders/{id}": {
      "get": {
        "operationId": "PublicApiController_order",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "receipt_number": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "kind": {
                      "type": "string",
                      "enum": ["sale", "reversal"]
                    },
                    "status": {
                      "type": "string",
                      "enum": ["paid"]
                    },
                    "voided": {
                      "type": "boolean"
                    },
                    "reverses_order_id": {
                      "type": ["string", "null"]
                    },
                    "reversed_by_order_id": {
                      "type": ["string", "null"]
                    },
                    "reversal_reason": {
                      "type": ["string", "null"]
                    },
                    "location_id": {
                      "type": "string"
                    },
                    "device_id": {
                      "type": "string"
                    },
                    "cashier_id": {
                      "type": "string"
                    },
                    "customer_id": {
                      "type": ["string", "null"]
                    },
                    "order_type": {
                      "type": "string",
                      "enum": ["dine_in", "takeaway", "delivery"]
                    },
                    "source": {
                      "type": "string",
                      "enum": ["pos", "kiosk", "online", "qr"]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "total_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "tip_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "offline": {
                      "type": "boolean"
                    },
                    "late_synced": {
                      "type": "boolean",
                      "description": "Offline-Verkauf, der erst nach dem Abschluss seiner Schicht ankam"
                    },
                    "tse_status": {
                      "type": "string",
                      "enum": ["signed", "failed"]
                    },
                    "occurred_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "product_id": {
                            "type": "string"
                          },
                          "variant_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "variant_name": {
                            "type": ["string", "null"]
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "weight_grams": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unit_price_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "discount_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "total_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tax_rate_code": {
                            "type": "string"
                          },
                          "staff_user_id": {
                            "type": ["string", "null"]
                          },
                          "modifiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "modifier_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "quantity": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "price_delta_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": ["modifier_id", "name", "quantity", "price_delta_cents"],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "product_id",
                          "variant_id",
                          "name",
                          "variant_name",
                          "quantity",
                          "weight_grams",
                          "unit_price_cents",
                          "discount_cents",
                          "total_cents",
                          "tax_rate_code",
                          "staff_user_id",
                          "modifiers"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "taxes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rate_code": {
                            "type": "string"
                          },
                          "rate_bp": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "Basispunkte, 19 % = 1900"
                          },
                          "gross_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "net_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tax_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          }
                        },
                        "required": [
                          "rate_code",
                          "rate_bp",
                          "gross_cents",
                          "net_cents",
                          "tax_cents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "payments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "method": {
                            "type": "string"
                          },
                          "amount_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tip_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          }
                        },
                        "required": ["method", "amount_cents", "tip_cents"],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "receipt_number",
                    "kind",
                    "status",
                    "voided",
                    "reverses_order_id",
                    "reversed_by_order_id",
                    "reversal_reason",
                    "location_id",
                    "device_id",
                    "cashier_id",
                    "customer_id",
                    "order_type",
                    "source",
                    "currency",
                    "total_cents",
                    "tip_cents",
                    "offline",
                    "late_synced",
                    "tse_status",
                    "occurred_at",
                    "created_at",
                    "lines",
                    "taxes",
                    "payments"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Ein Beleg mit Positionen, Steuern und Zahlungen",
        "tags": ["Belege"],
        "x-kassaone-scope": "orders:read"
      }
    },
    "/v1/customers": {
      "get": {
        "description": "Ohne interne Notiz.",
        "operationId": "PublicApiController_customers",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": ["string", "null"]
                          },
                          "company_name": {
                            "type": ["string", "null"]
                          },
                          "email": {
                            "type": ["string", "null"]
                          },
                          "phone": {
                            "type": ["string", "null"]
                          },
                          "birthday": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "address": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "street": {
                                    "type": ["string", "null"]
                                  },
                                  "postal_code": {
                                    "type": ["string", "null"]
                                  },
                                  "city": {
                                    "type": ["string", "null"]
                                  },
                                  "country_code": {
                                    "type": ["string", "null"]
                                  }
                                },
                                "required": ["street", "postal_code", "city", "country_code"],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "vat_id": {
                            "type": ["string", "null"]
                          },
                          "anonymized": {
                            "type": "boolean"
                          },
                          "consents": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "boolean"
                            }
                          },
                          "created_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          }
                        },
                        "required": [
                          "id",
                          "first_name",
                          "last_name",
                          "company_name",
                          "email",
                          "phone",
                          "birthday",
                          "address",
                          "vat_id",
                          "anonymized",
                          "consents",
                          "created_at",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Kunden",
        "tags": ["Kunden"],
        "x-kassaone-scope": "customers:read"
      },
      "post": {
        "description": "Ohne Einwilligungen (Werbung/Erinnerungen) – die erteilt der Kunde selbst.",
        "operationId": "PublicApiController_createCustomer",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "first_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "last_name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 80
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 254,
                        "format": "email",
                        "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 40
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "birthday": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["first_name"]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": ["string", "null"]
                    },
                    "company_name": {
                      "type": ["string", "null"]
                    },
                    "email": {
                      "type": ["string", "null"]
                    },
                    "phone": {
                      "type": ["string", "null"]
                    },
                    "birthday": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "address": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": ["string", "null"]
                            },
                            "postal_code": {
                              "type": ["string", "null"]
                            },
                            "city": {
                              "type": ["string", "null"]
                            },
                            "country_code": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["street", "postal_code", "city", "country_code"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "vat_id": {
                      "type": ["string", "null"]
                    },
                    "anonymized": {
                      "type": "boolean"
                    },
                    "consents": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "boolean"
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    }
                  },
                  "required": [
                    "id",
                    "first_name",
                    "last_name",
                    "company_name",
                    "email",
                    "phone",
                    "birthday",
                    "address",
                    "vat_id",
                    "anonymized",
                    "consents",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Kunden anlegen",
        "tags": ["Kunden"],
        "x-kassaone-scope": "customers:write"
      }
    },
    "/v1/customers/{id}": {
      "get": {
        "operationId": "PublicApiController_customer",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": ["string", "null"]
                    },
                    "company_name": {
                      "type": ["string", "null"]
                    },
                    "email": {
                      "type": ["string", "null"]
                    },
                    "phone": {
                      "type": ["string", "null"]
                    },
                    "birthday": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "address": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": ["string", "null"]
                            },
                            "postal_code": {
                              "type": ["string", "null"]
                            },
                            "city": {
                              "type": ["string", "null"]
                            },
                            "country_code": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["street", "postal_code", "city", "country_code"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "vat_id": {
                      "type": ["string", "null"]
                    },
                    "anonymized": {
                      "type": "boolean"
                    },
                    "consents": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "boolean"
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    }
                  },
                  "required": [
                    "id",
                    "first_name",
                    "last_name",
                    "company_name",
                    "email",
                    "phone",
                    "birthday",
                    "address",
                    "vat_id",
                    "anonymized",
                    "consents",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Ein Kunde",
        "tags": ["Kunden"],
        "x-kassaone-scope": "customers:read"
      },
      "patch": {
        "operationId": "PublicApiController_patchCustomer",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "first_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "last_name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 80
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 254,
                        "format": "email",
                        "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 40
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "birthday": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": ["string", "null"]
                    },
                    "company_name": {
                      "type": ["string", "null"]
                    },
                    "email": {
                      "type": ["string", "null"]
                    },
                    "phone": {
                      "type": ["string", "null"]
                    },
                    "birthday": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "address": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": ["string", "null"]
                            },
                            "postal_code": {
                              "type": ["string", "null"]
                            },
                            "city": {
                              "type": ["string", "null"]
                            },
                            "country_code": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["street", "postal_code", "city", "country_code"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "vat_id": {
                      "type": ["string", "null"]
                    },
                    "anonymized": {
                      "type": "boolean"
                    },
                    "consents": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "boolean"
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    }
                  },
                  "required": [
                    "id",
                    "first_name",
                    "last_name",
                    "company_name",
                    "email",
                    "phone",
                    "birthday",
                    "address",
                    "vat_id",
                    "anonymized",
                    "consents",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Kundenstammdaten ändern",
        "tags": ["Kunden"],
        "x-kassaone-scope": "customers:write"
      }
    },
    "/v1/invoices": {
      "get": {
        "operationId": "PublicApiController_invoicesList",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": ["invoice", "credit_note"]
                          },
                          "number": {
                            "type": ["string", "null"]
                          },
                          "status": {
                            "type": "string",
                            "enum": ["issued", "partially_paid", "paid", "cancelled", "draft"]
                          },
                          "customer_id": {
                            "type": "string"
                          },
                          "customer_name": {
                            "type": "string"
                          },
                          "corrects_invoice_id": {
                            "type": ["string", "null"]
                          },
                          "receipt_order_id": {
                            "type": ["string", "null"]
                          },
                          "issue_date": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "due_date": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "service_date_from": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "service_date_to": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "subject": {
                            "type": ["string", "null"]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "net_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tax_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "gross_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "paid_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "open_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "dunning_level": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "issued_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "ISO 8601, UTC"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "lines": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": ["string", "null"]
                                },
                                "product_id": {
                                  "type": ["string", "null"]
                                },
                                "quantity": {
                                  "type": "number"
                                },
                                "quantity_milli": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "unit_code": {
                                  "type": "string"
                                },
                                "unit_price_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "net_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "tax_rate_bp": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "tax_category": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "description",
                                "product_id",
                                "quantity",
                                "quantity_milli",
                                "unit_code",
                                "unit_price_cents",
                                "net_cents",
                                "tax_rate_bp",
                                "tax_category"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "number",
                          "status",
                          "customer_id",
                          "customer_name",
                          "corrects_invoice_id",
                          "receipt_order_id",
                          "issue_date",
                          "due_date",
                          "service_date_from",
                          "service_date_to",
                          "subject",
                          "currency",
                          "net_cents",
                          "tax_cents",
                          "gross_cents",
                          "paid_cents",
                          "open_cents",
                          "dunning_level",
                          "issued_at",
                          "created_at",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rechnungen und Gutschriften (ohne Entwürfe)",
        "tags": ["Rechnungen"],
        "x-kassaone-scope": "invoices:read"
      }
    },
    "/v1/invoices/{id}": {
      "get": {
        "operationId": "PublicApiController_invoice",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": ["invoice", "credit_note"]
                    },
                    "number": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": "string",
                      "enum": ["issued", "partially_paid", "paid", "cancelled", "draft"]
                    },
                    "customer_id": {
                      "type": "string"
                    },
                    "customer_name": {
                      "type": "string"
                    },
                    "corrects_invoice_id": {
                      "type": ["string", "null"]
                    },
                    "receipt_order_id": {
                      "type": ["string", "null"]
                    },
                    "issue_date": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "due_date": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "service_date_from": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "service_date_to": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "subject": {
                      "type": ["string", "null"]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "net_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "tax_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "gross_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "paid_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "open_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "dunning_level": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "issued_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "ISO 8601, UTC"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": ["string", "null"]
                          },
                          "product_id": {
                            "type": ["string", "null"]
                          },
                          "quantity": {
                            "type": "number"
                          },
                          "quantity_milli": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "unit_code": {
                            "type": "string"
                          },
                          "unit_price_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "net_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tax_rate_bp": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "tax_category": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "description",
                          "product_id",
                          "quantity",
                          "quantity_milli",
                          "unit_code",
                          "unit_price_cents",
                          "net_cents",
                          "tax_rate_bp",
                          "tax_category"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "number",
                    "status",
                    "customer_id",
                    "customer_name",
                    "corrects_invoice_id",
                    "receipt_order_id",
                    "issue_date",
                    "due_date",
                    "service_date_from",
                    "service_date_to",
                    "subject",
                    "currency",
                    "net_cents",
                    "tax_cents",
                    "gross_cents",
                    "paid_cents",
                    "open_cents",
                    "dunning_level",
                    "issued_at",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Eine Rechnung mit Positionen",
        "tags": ["Rechnungen"],
        "x-kassaone-scope": "invoices:read"
      }
    },
    "/v1/invoices/{id}/pdf": {
      "get": {
        "operationId": "PublicApiController_invoicePdf",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rechnungs-PDF (archivierte Fassung)",
        "tags": ["Rechnungen"],
        "x-kassaone-scope": "invoices:read"
      }
    },
    "/v1/reports/daily": {
      "get": {
        "description": "Kalendertag in der Zeitzone des Standorts, Verkaufszeitpunkt (offline: Zeit am Gerät). Stornos mindern die Summen.",
        "operationId": "PublicApiController_daily",
        "parameters": [
          {
            "name": "location_id",
            "required": false,
            "in": "query",
            "description": "nur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)",
            "schema": {}
          },
          {
            "name": "date",
            "required": true,
            "in": "query",
            "description": "YYYY-MM-DD",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "locations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "location_id": {
                            "type": "string"
                          },
                          "location_name": {
                            "type": "string"
                          },
                          "time_zone": {
                            "type": "string"
                          },
                          "from": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "to": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "receipts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "reversals": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "reversal_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "gross_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "net_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tax_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "tip_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "by_tax_rate": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "rate_code": {
                                  "type": "string"
                                },
                                "rate_bp": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "gross_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "net_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "tax_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": [
                                "rate_code",
                                "rate_bp",
                                "gross_cents",
                                "net_cents",
                                "tax_cents"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "by_payment_method": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "method": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "amount_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                },
                                "tip_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": ["method", "count", "amount_cents", "tip_cents"],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "location_id",
                          "location_name",
                          "time_zone",
                          "from",
                          "to",
                          "receipts",
                          "reversals",
                          "reversal_cents",
                          "gross_cents",
                          "net_cents",
                          "tax_cents",
                          "tip_cents",
                          "by_tax_rate",
                          "by_payment_method"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": ["date", "currency", "locations"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Tagesumsatz je Standort",
        "tags": ["Auswertungen"],
        "x-kassaone-scope": "reports:read"
      }
    },
    "/v1/hotel/bookings": {
      "get": {
        "description": "Ohne interne Notiz.",
        "operationId": "PublicApiController_bookings",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          },
          {
            "name": "location_id",
            "required": false,
            "in": "query",
            "description": "nur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)",
            "schema": {}
          },
          {
            "name": "arrival_from",
            "required": false,
            "in": "query",
            "description": "YYYY-MM-DD (inklusive)",
            "schema": {}
          },
          {
            "name": "arrival_to",
            "required": false,
            "in": "query",
            "description": "YYYY-MM-DD (inklusive)",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "number": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "location_id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "channel_ref": {
                            "type": ["string", "null"]
                          },
                          "customer_id": {
                            "type": ["string", "null"]
                          },
                          "guest_name": {
                            "type": "string"
                          },
                          "guest_email": {
                            "type": ["string", "null"]
                          },
                          "guest_phone": {
                            "type": ["string", "null"]
                          },
                          "arrival": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "departure": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "adults": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "children": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "rate_plan_id": {
                            "type": ["string", "null"]
                          },
                          "guest_note": {
                            "type": ["string", "null"]
                          },
                          "prepaid_by_channel": {
                            "type": "boolean"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "accommodation_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "pos_charge_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "rooms": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "room_id": {
                                  "type": "string"
                                },
                                "room_type_id": {
                                  "type": "string"
                                },
                                "arrival": {
                                  "description": "YYYY-MM-DD",
                                  "type": ["string", "null"]
                                },
                                "departure": {
                                  "description": "YYYY-MM-DD",
                                  "type": ["string", "null"]
                                },
                                "adults": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "children": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "price_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": [
                                "room_id",
                                "room_type_id",
                                "arrival",
                                "departure",
                                "adults",
                                "children",
                                "price_cents"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "invoice_id": {
                            "type": ["string", "null"]
                          },
                          "checked_in_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "ISO 8601, UTC"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "checked_out_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "ISO 8601, UTC"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cancelled_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "ISO 8601, UTC"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          }
                        },
                        "required": [
                          "id",
                          "number",
                          "location_id",
                          "status",
                          "source",
                          "channel_ref",
                          "customer_id",
                          "guest_name",
                          "guest_email",
                          "guest_phone",
                          "arrival",
                          "departure",
                          "adults",
                          "children",
                          "rate_plan_id",
                          "guest_note",
                          "prepaid_by_channel",
                          "currency",
                          "accommodation_cents",
                          "pos_charge_cents",
                          "rooms",
                          "invoice_id",
                          "checked_in_at",
                          "checked_out_at",
                          "cancelled_at",
                          "created_at",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Buchungen",
        "tags": ["Pension & Hotel"],
        "x-kassaone-scope": "bookings:read"
      }
    },
    "/v1/hotel/bookings/{id}": {
      "get": {
        "operationId": "PublicApiController_booking",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "number": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "location_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "channel_ref": {
                      "type": ["string", "null"]
                    },
                    "customer_id": {
                      "type": ["string", "null"]
                    },
                    "guest_name": {
                      "type": "string"
                    },
                    "guest_email": {
                      "type": ["string", "null"]
                    },
                    "guest_phone": {
                      "type": ["string", "null"]
                    },
                    "arrival": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "departure": {
                      "description": "YYYY-MM-DD",
                      "type": ["string", "null"]
                    },
                    "adults": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "children": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "rate_plan_id": {
                      "type": ["string", "null"]
                    },
                    "guest_note": {
                      "type": ["string", "null"]
                    },
                    "prepaid_by_channel": {
                      "type": "boolean"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "accommodation_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "pos_charge_cents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "ganze Cent"
                    },
                    "rooms": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "room_id": {
                            "type": "string"
                          },
                          "room_type_id": {
                            "type": "string"
                          },
                          "arrival": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "departure": {
                            "description": "YYYY-MM-DD",
                            "type": ["string", "null"]
                          },
                          "adults": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "children": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "price_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          }
                        },
                        "required": [
                          "room_id",
                          "room_type_id",
                          "arrival",
                          "departure",
                          "adults",
                          "children",
                          "price_cents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "invoice_id": {
                      "type": ["string", "null"]
                    },
                    "checked_in_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "ISO 8601, UTC"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checked_out_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "ISO 8601, UTC"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancelled_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "ISO 8601, UTC"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    },
                    "updated_at": {
                      "type": "string",
                      "description": "ISO 8601, UTC"
                    }
                  },
                  "required": [
                    "id",
                    "number",
                    "location_id",
                    "status",
                    "source",
                    "channel_ref",
                    "customer_id",
                    "guest_name",
                    "guest_email",
                    "guest_phone",
                    "arrival",
                    "departure",
                    "adults",
                    "children",
                    "rate_plan_id",
                    "guest_note",
                    "prepaid_by_channel",
                    "currency",
                    "accommodation_cents",
                    "pos_charge_cents",
                    "rooms",
                    "invoice_id",
                    "checked_in_at",
                    "checked_out_at",
                    "cancelled_at",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Eine Buchung",
        "tags": ["Pension & Hotel"],
        "x-kassaone-scope": "bookings:read"
      }
    },
    "/v1/inventory/stock": {
      "get": {
        "operationId": "PublicApiController_stock",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          },
          {
            "name": "location_id",
            "required": false,
            "in": "query",
            "description": "nur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "location_id": {
                            "type": "string"
                          },
                          "stock_item_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "sku": {
                            "type": ["string", "null"]
                          },
                          "unit": {
                            "type": "string",
                            "enum": ["g", "ml", "pcs"]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "quantity": {
                            "type": "number"
                          },
                          "quantity_milli": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "updated_at": {
                            "type": "string",
                            "description": "ISO 8601, UTC"
                          }
                        },
                        "required": [
                          "id",
                          "location_id",
                          "stock_item_id",
                          "name",
                          "sku",
                          "unit",
                          "active",
                          "quantity",
                          "quantity_milli",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Lagerbestand je Standort und Lagerartikel",
        "tags": ["Lager"],
        "x-kassaone-scope": "inventory:read"
      }
    },
    "/v1/cash-book": {
      "get": {
        "description": "Chronologisch: Barverkäufe und Bar-Stornos (je Bon, mit Bar-Anteil je Steuersatz), Anfangsbestand, Einlagen, Entnahmen, Geldtransit, Trinkgeld-Auszahlungen, Kassendifferenzen, Übertrag-Abweichungen sowie Vermerke ohne Betrag (Z-Abschluss, automatischer Tagesabschluss, Nachtrags-Schicht). Karten-, Gutschein- und Zimmerzahlungen sind keine Kassenbuch-Einträge (siehe /v1/orders). `amount_cents` mit Vorzeichen, `balance_after_cents` = Bestand des Standorts, `till_balance_after_cents` = Bestand der Kasse. `receipt_url` ist ein dauerhafter E-Bon-Link (10 Jahre gültig), der genau diesen Bon öffnet. Einträge sind unveränderlich; `updated_since` bezieht sich auf `created_at`.",
        "operationId": "PublicApiController_cashBook",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1–100, Standard 50",
            "schema": {}
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "`next_cursor` der vorigen Seite",
            "schema": {}
          },
          {
            "name": "updated_since",
            "required": false,
            "in": "query",
            "description": "ISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich",
            "schema": {}
          },
          {
            "name": "location_id",
            "required": false,
            "in": "query",
            "description": "nur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)",
            "schema": {}
          },
          {
            "name": "from",
            "required": false,
            "in": "query",
            "description": "YYYY-MM-DD (Kalendertag des Standorts, inklusive) oder ISO-Zeitpunkt (inklusive)",
            "schema": {}
          },
          {
            "name": "to",
            "required": false,
            "in": "query",
            "description": "YYYY-MM-DD (Kalendertag des Standorts, inklusive) oder ISO-Zeitpunkt (exklusive)",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "stabil: Zahlung, Kassenbewegung oder Z-Bericht"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "sale",
                              "reversal",
                              "opening_float",
                              "carryover_adjustment",
                              "deposit",
                              "withdrawal",
                              "bank_transfer",
                              "tip_payout",
                              "difference",
                              "z_close",
                              "auto_day_close",
                              "late_sync_close",
                              "late_sync_shift"
                            ]
                          },
                          "text": {
                            "type": "string"
                          },
                          "location_id": {
                            "type": "string"
                          },
                          "device_id": {
                            "type": "string"
                          },
                          "device_name": {
                            "type": "string"
                          },
                          "shift_id": {
                            "type": "string"
                          },
                          "z_report_number": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Z-Bericht der Schicht; null = Schicht noch offen"
                          },
                          "business_date": {
                            "type": "string",
                            "description": "YYYY-MM-DD, Kalendertag des Standorts"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "amount_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "mit Vorzeichen: + Zugang, − Abgang; Vermerke 0"
                          },
                          "balance_after_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "Bargeldbestand des Standorts nach der Buchung"
                          },
                          "till_balance_after_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "Bargeldbestand dieser Kasse nach der Buchung"
                          },
                          "receipt_number": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Bon- bzw. Belegnummer"
                          },
                          "order_id": {
                            "description": "interne Beleg-ID (siehe /v1/orders/{id})",
                            "type": ["string", "null"]
                          },
                          "receipt_url": {
                            "description": "dauerhafter E-Bon-Link (nur Verkauf/Storno)",
                            "type": ["string", "null"]
                          },
                          "tip_cents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "ganze Cent"
                          },
                          "cash_split": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "target": {
                                  "type": "string",
                                  "enum": ["revenue", "voucher_sale", "room_receivable"]
                                },
                                "rate_bp": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Steuersatz in Basispunkten (nur revenue)"
                                },
                                "gross_cents": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "description": "ganze Cent"
                                }
                              },
                              "required": ["target", "rate_bp", "gross_cents"],
                              "additionalProperties": false
                            }
                          },
                          "late_synced": {
                            "type": "boolean",
                            "description": "Offline-Verkauf, der erst nach dem Abschluss seiner Schicht ankam"
                          },
                          "sale_occurred_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "ISO 8601, UTC"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Verkaufszeitpunkt laut Gerät"
                          },
                          "z_report": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "expected_cash_cents": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "ganze Cent"
                                  },
                                  "counted_cash_cents": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "ganze Cent"
                                  },
                                  "difference_cents": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "ganze Cent"
                                  },
                                  "cash_counted": {
                                    "type": "boolean"
                                  },
                                  "auto_closed": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "number",
                                  "expected_cash_cents",
                                  "counted_cash_cents",
                                  "difference_cents",
                                  "cash_counted",
                                  "auto_closed"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "description": "Buchungszeitpunkt im Kassenbuch"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "text",
                          "location_id",
                          "device_id",
                          "device_name",
                          "shift_id",
                          "z_report_number",
                          "business_date",
                          "currency",
                          "amount_cents",
                          "balance_after_cents",
                          "till_balance_after_cents",
                          "receipt_number",
                          "order_id",
                          "receipt_url",
                          "tip_cents",
                          "cash_split",
                          "late_synced",
                          "sale_occurred_at",
                          "z_report",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "description": "für `?cursor=`; null = letzte Seite",
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["data", "next_cursor"],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Kassenbuch (Bargeld) mit Bestand und Bon-Link",
        "tags": ["Kassenbuch"],
        "x-kassaone-scope": "cashbook:read"
      }
    },
    "/v1/cash-book/datev": {
      "get": {
        "description": "Eine Buchung je Kassenbuch-Eintrag (Barverkauf je Steuersatz), Konto Kasse, Bon-Link in „Beleglink“. Ersetzt für Bargeld die Tagessummen des Backoffice-Exports: Wurde für einen überlappenden Zeitraum Bargeld schon in anderer Form exportiert, antwortet die API mit 409 `datev_cash_overlap` (mit `confirm_overlap=true` trotzdem exportieren). Header `KassaOne-Export-Warnings` = Anzahl der Hinweise.",
        "operationId": "PublicApiController_cashBookDatev",
        "parameters": [
          {
            "name": "confirm_overlap",
            "required": false,
            "in": "query",
            "description": "`true` = trotz Überschneidung exportieren",
            "schema": {}
          },
          {
            "name": "location_id",
            "required": false,
            "in": "query",
            "description": "nur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)",
            "schema": {}
          },
          {
            "name": "to",
            "required": true,
            "in": "query",
            "description": "YYYY-MM-DD (gleiches Jahr)",
            "schema": {}
          },
          {
            "name": "from",
            "required": true,
            "in": "query",
            "description": "YYYY-MM-DD",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Kassenbuch als DATEV-Buchungsstapel (EXTF, Windows-1252)",
        "tags": ["Kassenbuch"],
        "x-kassaone-scope": "cashbook:read"
      }
    }
  },
  "info": {
    "title": "mellavoPOS API v1",
    "description": "Öffentliche API für Integrationen (Buchhaltung, BI, eigene Website). API-Schlüssel unter Einstellungen → API-Zugang anlegen und als `Authorization: Bearer k1_live_…` senden. Fehler: `{ \"error\": { \"code\", \"message\", \"details\"? } }`. Geld in ganzen Cent + `currency`, Zeiten ISO 8601 UTC. Listen: `limit`, `cursor` (aus `next_cursor`), `updated_since`. Rate-Limit je Schlüssel (Header `X-RateLimit-*`, 429 mit `Retry-After`). Webhooks: Header `KassaOne-Signature: t=<unix>,v1=<HMAC-SHA256(secret, \"<t>.<body>\")>`.",
    "version": "1",
    "contact": {}
  },
  "tags": [],
  "servers": [
    {
      "url": "https://api.example.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "scheme": "bearer",
        "bearerFormat": "k1_live_…",
        "type": "http"
      }
    }
  }
}
