{
  "_hinweis": "Vertrags-Export /v3, erzeugt aus den echten Handlern (npm run vertrag:v3 in functions/ und functions-kasse/). Nicht von Hand pflegen.",
  "_quelle": {
    "sha256": "8ab1b71c62ba07684e9ef254a7434be434247afdb1ac9947e083b4b0af5f3c04",
    "inputsSha256": "6c693f1ef121a4f4e5d1670929ea336233c0c20476993264f989bdf4f548a797",
    "backendPackage": "@kreiseck/kasseneck-api@0.35.0",
    "inputs": [
      "docs/api/fehlercodes.json",
      "functions-kasse/test/unit/fixtures/kassen-codes-v3.js",
      "functions/aktivierung-api-core.js",
      "functions/beleg-mail-core.js",
      "functions/gemeinsam/api-rand.js",
      "functions/gemeinsam/api-vokabular-v3.js",
      "functions/gemeinsam/beleg-toepfe.js",
      "functions/gemeinsam/gutschein-beleg.js",
      "functions/gemeinsam/storno-core.js",
      "functions/gemeinsam/tip-core.js",
      "functions/gemeinsam/vat-buckets.js",
      "functions/gemeinsam/zahlungen-core.js",
      "functions/invoice-api-core.js",
      "functions/invoice-api-endpoints.js",
      "functions/test/unit/fixtures/v3-belege/beleg-welt.js",
      "functions/test/unit/fixtures/v3-rechnungen/rechnungs-welt.js",
      "functions/test/unit/fixtures/vertrag-v3/ablage.js",
      "functions/test/unit/fixtures/vertrag-v3/gutschein-belege.js",
      "functions/test/unit/fixtures/vertrag-v3/vokabular.js",
      "functions/test/unit/fixtures/vertrag-v3/zahlbetrag.js",
      "functions/test/unit/helpers/kassen-fehlerstellen.js",
      "functions/test/unit/v3-vertrag-export.test.js"
    ]
  },
  "note": "Rechnungen und Kunden nach dem Ablauf von antworten/rechnungen.json, wie Firestore sie haelt (innen).",
  "documents": {
    "users/test_welt1/customers/k_amt": {
      "type": "company",
      "name": "Amt",
      "country": "AT",
      "isAuthority": true,
      "uid": null
    },
    "users/test_welt1/customers/k_at": {
      "type": "company",
      "name": "Baecker Wien GmbH",
      "street": "Hauptplatz 1",
      "city": "Wien",
      "zip": "1010",
      "country": "AT",
      "uid": "ATU87654321",
      "isAuthority": false,
      "language": null
    },
    "users/test_welt1/customers/k_eu": {
      "type": "company",
      "name": "ACME s.r.o.",
      "street": "Foo 1",
      "city": "Prag",
      "zip": "11000",
      "country": "CZ",
      "uid": "CZ12345678",
      "isAuthority": false,
      "language": null,
      "letztePruefung": {
        "pruefungId": "p_eu_heute",
        "ergebnis": "gueltig",
        "quelle": "vies",
        "stufe": 1,
        "wienerTag": "2026-09-26",
        "fingerabdruck": "7a370b3dda7556c00e5a37b5a2951467739ecccaa4ef8a497beed58b91c911d0",
        "zeitpunktMs": 1790406000000
      },
      "uidNachweis": {
        "pruefungId": "p_eu_heute",
        "ergebnis": "gueltig",
        "quelle": "vies",
        "stufe": 1,
        "wienerTag": "2026-09-26",
        "fingerabdruck": "7a370b3dda7556c00e5a37b5a2951467739ecccaa4ef8a497beed58b91c911d0",
        "zeitpunktMs": 1790406000000
      }
    },
    "users/test_welt1/customers/k_eu_offen": {
      "type": "company",
      "name": "Kleiderservice Nadler KG",
      "street": "Musterweg 2",
      "city": "Berlin",
      "zip": "10115",
      "country": "DE",
      "uid": "DE314159262",
      "isAuthority": false,
      "language": null
    },
    "users/test_welt1/invoices/auto1": {
      "docType": "RE",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 14,
      "customerId": "k_at",
      "customer": {
        "name": "Baecker Wien GmbH",
        "type": "company",
        "street": "Hauptplatz 1",
        "houseNumber": null,
        "zip": "1010",
        "city": "Wien",
        "country": "AT",
        "uid": "ATU87654321",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "normal",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Beratung",
          "subtitle": "",
          "quantity": 2,
          "unit": "piece",
          "kind": "service",
          "unitPrice": 50,
          "vatRate": 20,
          "discountPct": 0
        }
      ],
      "intro": null,
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": null,
      "relatedNumber": null,
      "relatedDate": null,
      "cancelsOriginal": false,
      "metadata": {},
      "source": "api",
      "language": "de",
      "markeId": null,
      "idempotencyKey": "i-final",
      "rechenweg": 2,
      "status": "final",
      "number": "0001",
      "totals": {
        "totalNet": 100,
        "totalVat": 20,
        "totalGross": 120
      },
      "totalsCents": {
        "netCents": 10000,
        "vatCents": 2000,
        "grossCents": 12000,
        "byRate": [
          {
            "rateBp": 2000,
            "netCents": 10000,
            "vatCents": 2000,
            "grossCents": 12000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 12000,
            "rateBp": 2000
          }
        ],
        "weg": "2",
        "quelle": "festschreiben"
      },
      "internal_seq": 1,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z",
      "creditedCents": {
        "total": 1200,
        "byRate": {
          "20": 1200
        }
      }
    },
    "users/test_welt1/invoices/auto2": {
      "docType": "RE",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 14,
      "customerId": "k_eu",
      "customer": {
        "name": "ACME s.r.o.",
        "type": "company",
        "street": "Foo 1",
        "houseNumber": null,
        "zip": "11000",
        "city": "Prag",
        "country": "CZ",
        "uid": "CZ12345678",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "igLieferung",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Ware",
          "subtitle": "",
          "quantity": 1,
          "unit": "piece",
          "kind": "goods",
          "unitPrice": 100,
          "vatRate": 0,
          "discountPct": 0
        }
      ],
      "intro": null,
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": null,
      "relatedNumber": null,
      "relatedDate": null,
      "cancelsOriginal": false,
      "metadata": {},
      "source": "api",
      "language": "de",
      "markeId": null,
      "idempotencyKey": "i-eu",
      "rechenweg": 2,
      "status": "final",
      "number": "0002",
      "totals": {
        "totalNet": 100,
        "totalVat": 0,
        "totalGross": 100
      },
      "totalsCents": {
        "netCents": 10000,
        "vatCents": 0,
        "grossCents": 10000,
        "byRate": [
          {
            "rateBp": 0,
            "netCents": 10000,
            "vatCents": 0,
            "grossCents": 10000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 10000,
            "rateBp": 0
          }
        ],
        "weg": "2",
        "quelle": "festschreiben"
      },
      "internal_seq": 2,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "uidNachweis": {
        "pruefungId": "p_eu_heute",
        "quelle": "vies",
        "stufe": 1,
        "ergebnis": "gueltig",
        "zeitpunktMs": 1790406000000,
        "wienerTag": "2026-09-26",
        "konsultationsnummer": null,
        "abgleich": {
          "name": "unbekannt",
          "adresse": "unbekannt"
        },
        "pruefcode": "248H248H"
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z",
      "payments": [
        {
          "id": "1111111111111111",
          "amount": 50,
          "date": "2026-09-26",
          "method": "transfer",
          "bankTxId": null,
          "note": null
        }
      ],
      "paidAt": null,
      "paymentMethod": null,
      "paymentMonths": [
        "2026-09"
      ]
    },
    "users/test_welt1/invoices/auto4": {
      "docType": "RE",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 14,
      "customerId": "k_eu_offen",
      "customer": {
        "name": "Kleiderservice Nadler KG",
        "type": "company",
        "street": "Musterweg 2",
        "houseNumber": null,
        "zip": "10115",
        "city": "Berlin",
        "country": "DE",
        "uid": "DE314159262",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "igLieferung",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Ware",
          "subtitle": "",
          "quantity": 1,
          "unit": "piece",
          "kind": "goods",
          "unitPrice": 100,
          "vatRate": 0,
          "discountPct": 0
        }
      ],
      "intro": null,
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": null,
      "relatedNumber": null,
      "relatedDate": null,
      "cancelsOriginal": false,
      "metadata": {},
      "source": "api",
      "language": "de",
      "markeId": null,
      "idempotencyKey": "i-eu-offen",
      "rechenweg": 2,
      "status": "final",
      "number": "0003",
      "totals": {
        "totalNet": 100,
        "totalVat": 0,
        "totalGross": 100
      },
      "totalsCents": {
        "netCents": 10000,
        "vatCents": 0,
        "grossCents": 10000,
        "byRate": [
          {
            "rateBp": 0,
            "netCents": 10000,
            "vatCents": 0,
            "grossCents": 10000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 10000,
            "rateBp": 0
          }
        ],
        "weg": "2",
        "quelle": "festschreiben"
      },
      "internal_seq": 3,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "uidRisiko": {
        "bestaetigtVon": "test_welt1",
        "bestaetigtAm": 1790409600000,
        "text": "Ich habe die UID-Nummer selbst geprüft und trage das Risiko: Ist sie ungültig, schulde ich die Umsatzsteuer für diese Rechnung selbst.",
        "weg": "api",
        "nachpruefenBis": 1793005200000
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z"
    },
    "users/test_welt1/invoices/auto6": {
      "docType": "GU",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 0,
      "customerId": "k_at",
      "customer": {
        "name": "Baecker Wien GmbH",
        "type": "company",
        "street": "Hauptplatz 1",
        "houseNumber": null,
        "zip": "1010",
        "city": "Wien",
        "country": "AT",
        "uid": "ATU87654321",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "normal",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Nachlass",
          "subtitle": "",
          "quantity": 1,
          "unit": "piece",
          "kind": "service",
          "unitPrice": 10,
          "vatRate": 20,
          "discountPct": 0
        }
      ],
      "intro": "Grund: Preisnachlass",
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": "auto1",
      "relatedNumber": "0001",
      "relatedDate": "2026-09-26",
      "cancelsOriginal": false,
      "creditNoteReason": "price_reduction",
      "metadata": {},
      "source": "api",
      "language": "de",
      "idempotencyKey": "gu-1",
      "rechenweg": 2,
      "status": "final",
      "number": "0004",
      "totals": {
        "totalNet": 10,
        "totalVat": 2,
        "totalGross": 12
      },
      "totalsCents": {
        "netCents": 1000,
        "vatCents": 200,
        "grossCents": 1200,
        "byRate": [
          {
            "rateBp": 2000,
            "netCents": 1000,
            "vatCents": 200,
            "grossCents": 1200
          }
        ],
        "lines": [
          {
            "netCents": 1000,
            "grossCents": 1200,
            "rateBp": 2000
          }
        ],
        "weg": "2",
        "quelle": "festschreiben"
      },
      "internal_seq": 4,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z"
    },
    "users/test_welt1/invoices/auto7": {
      "docType": "RE",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 14,
      "customerId": "k_at",
      "customer": {
        "name": "Baecker Wien GmbH",
        "type": "company",
        "street": "Hauptplatz 1",
        "houseNumber": null,
        "zip": "1010",
        "city": "Wien",
        "country": "AT",
        "uid": "ATU87654321",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "normal",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Beratung",
          "subtitle": "",
          "quantity": 2,
          "unit": "piece",
          "kind": "service",
          "unitPrice": 50,
          "vatRate": 20,
          "discountPct": 0
        }
      ],
      "intro": null,
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": null,
      "relatedNumber": null,
      "relatedDate": null,
      "cancelsOriginal": false,
      "metadata": {},
      "source": "api",
      "language": "de",
      "markeId": null,
      "idempotencyKey": "i-storno",
      "rechenweg": 2,
      "status": "cancelled",
      "number": "0005",
      "totals": {
        "totalNet": 100,
        "totalVat": 20,
        "totalGross": 120
      },
      "totalsCents": {
        "netCents": 10000,
        "vatCents": 2000,
        "grossCents": 12000,
        "byRate": [
          {
            "rateBp": 2000,
            "netCents": 10000,
            "vatCents": 2000,
            "grossCents": 12000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 12000,
            "rateBp": 2000
          }
        ],
        "weg": "2",
        "quelle": "festschreiben"
      },
      "internal_seq": 5,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z",
      "creditedCents": {
        "total": 12000,
        "byRate": {
          "20": 12000
        }
      },
      "cancelled_at": "2026-09-26T08:00:00.000Z",
      "cancelled_by": "auto8"
    },
    "users/test_welt1/invoices/auto8": {
      "docType": "GU",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 0,
      "customerId": "k_at",
      "customer": {
        "name": "Baecker Wien GmbH",
        "type": "company",
        "street": "Hauptplatz 1",
        "houseNumber": null,
        "zip": "1010",
        "city": "Wien",
        "country": "AT",
        "uid": "ATU87654321",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "normal",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Beratung",
          "subtitle": "",
          "quantity": 2,
          "unit": "piece",
          "kind": "service",
          "unitPrice": 50,
          "vatRate": 20,
          "discountPct": 0
        }
      ],
      "intro": "Grund: Stornierung",
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": "auto7",
      "relatedNumber": "0005",
      "relatedDate": "2026-09-26",
      "cancelsOriginal": true,
      "vollstorno": true,
      "vollstornoVon": "auto7",
      "totalsCentsKopie": {
        "netCents": 10000,
        "vatCents": 2000,
        "grossCents": 12000,
        "byRate": [
          {
            "rateBp": 2000,
            "netCents": 10000,
            "vatCents": 2000,
            "grossCents": 12000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 12000,
            "rateBp": 2000
          }
        ]
      },
      "creditNoteReason": "cancellation",
      "metadata": {},
      "source": "api",
      "language": "de",
      "idempotencyKey": "gu-2",
      "rechenweg": 2,
      "status": "final",
      "number": "0006",
      "totals": {
        "totalNet": 100,
        "totalVat": 20,
        "totalGross": 120
      },
      "totalsCents": {
        "netCents": 10000,
        "vatCents": 2000,
        "grossCents": 12000,
        "byRate": [
          {
            "rateBp": 2000,
            "netCents": 10000,
            "vatCents": 2000,
            "grossCents": 12000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 12000,
            "rateBp": 2000
          }
        ],
        "weg": "gespeichert",
        "quelle": "festschreiben"
      },
      "internal_seq": 6,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z"
    },
    "users/test_welt1/invoices/auto9": {
      "docType": "RE",
      "invoiceDate": "2026-09-26",
      "serviceStart": "2026-09-26",
      "serviceEnd": null,
      "paymentTermDays": 14,
      "customerId": "k_at",
      "customer": {
        "name": "Baecker Wien GmbH",
        "type": "company",
        "street": "Hauptplatz 1",
        "houseNumber": null,
        "zip": "1010",
        "city": "Wien",
        "country": "AT",
        "uid": "ATU87654321",
        "shortCode": null,
        "email": null,
        "isAuthority": false
      },
      "taxScheme": "normal",
      "reverseChargeReason": null,
      "taxCountry": "AT",
      "priceMode": "net",
      "items": [
        {
          "id": "i1",
          "description": "Beratung",
          "subtitle": "",
          "quantity": 2,
          "unit": "piece",
          "kind": "service",
          "unitPrice": 50,
          "vatRate": 20,
          "discountPct": 0
        }
      ],
      "intro": null,
      "note": null,
      "orderReference": null,
      "verwendungszweck": null,
      "girocode": false,
      "tracking": false,
      "relatedInvoiceId": null,
      "relatedNumber": null,
      "relatedDate": null,
      "cancelsOriginal": false,
      "metadata": {},
      "source": "api",
      "language": "de",
      "markeId": null,
      "idempotencyKey": "i-abschreibung",
      "rechenweg": 2,
      "status": "final",
      "number": "0007",
      "totals": {
        "totalNet": 100,
        "totalVat": 20,
        "totalGross": 120
      },
      "totalsCents": {
        "netCents": 10000,
        "vatCents": 2000,
        "grossCents": 12000,
        "byRate": [
          {
            "rateBp": 2000,
            "netCents": 10000,
            "vatCents": 2000,
            "grossCents": 12000
          }
        ],
        "lines": [
          {
            "netCents": 10000,
            "grossCents": 12000,
            "rateBp": 2000
          }
        ],
        "weg": "2",
        "quelle": "festschreiben"
      },
      "internal_seq": 7,
      "einvoice": {
        "level": "full",
        "formats": [
          "UBL",
          "Factur-X"
        ],
        "missing": []
      },
      "finalized_at": "2026-09-26T08:00:00.000Z",
      "public_token": "00000000000000000000000000000000000000002f7a9406",
      "public_password": "EXAM-5B1F",
      "marke": {
        "id": null,
        "name": "Standard",
        "logoUrl": null,
        "logoAlt": "Bäckerei Kornblum",
        "farbe": "#17150F",
        "absenderName": "Bäckerei Kornblum",
        "fusszeile": []
      },
      "aussteller": {
        "company_name": "Bäckerei Kornblum",
        "address": {
          "street": "Hauptplatz 1",
          "zip": "1010",
          "city": "Wien"
        },
        "tax_details": {
          "uid": "ATU12345675"
        },
        "bank": {
          "iban": "AT611904300234573201",
          "account_holder": "Bäckerei Kornblum"
        },
        "phone": "+43 1 234"
      },
      "zahlstandAusgestellt": {
        "paidAt": null,
        "paymentMethod": null
      },
      "created_at": "2026-09-26T08:00:00.000Z",
      "updated_at": "2026-09-26T08:00:00.000Z",
      "writtenOff": true,
      "writeOffReasonCode": "uneinbringlich"
    }
  }
}
