@kreiseck/kasseneck-api 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/client/aufrufe.d.ts +5 -5
  3. package/dist/cjs/client/aufrufe.js +12 -2
  4. package/dist/cjs/client/transport.d.ts +3 -3
  5. package/dist/cjs/client/transport.js +2 -2
  6. package/dist/cjs/pos/connect-bestand.d.ts +27 -0
  7. package/dist/cjs/pos/connect-bestand.js +40 -0
  8. package/dist/cjs/pos/errors.d.ts +2 -2
  9. package/dist/cjs/pos/errors.js +2 -2
  10. package/dist/cjs/pos/index.d.ts +2 -0
  11. package/dist/cjs/pos/index.js +10 -2
  12. package/dist/cjs/pos/kasseninfo.d.ts +110 -0
  13. package/dist/cjs/pos/kasseninfo.js +266 -0
  14. package/dist/cjs/pos/texte.d.ts +162 -2
  15. package/dist/cjs/pos/texte.js +67 -3
  16. package/dist/cjs/stored/vokabular.d.ts +1 -1
  17. package/dist/cjs/stored/vokabular.js +6 -1
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/client/aufrufe.d.ts +5 -5
  21. package/dist/esm/client/aufrufe.js +12 -2
  22. package/dist/esm/client/transport.d.ts +3 -3
  23. package/dist/esm/client/transport.js +2 -2
  24. package/dist/esm/pos/connect-bestand.d.ts +27 -0
  25. package/dist/esm/pos/connect-bestand.js +37 -0
  26. package/dist/esm/pos/errors.d.ts +2 -2
  27. package/dist/esm/pos/errors.js +2 -2
  28. package/dist/esm/pos/index.d.ts +2 -0
  29. package/dist/esm/pos/index.js +4 -0
  30. package/dist/esm/pos/kasseninfo.d.ts +110 -0
  31. package/dist/esm/pos/kasseninfo.js +261 -0
  32. package/dist/esm/pos/texte.d.ts +162 -2
  33. package/dist/esm/pos/texte.js +67 -3
  34. package/dist/esm/stored/vokabular.d.ts +1 -1
  35. package/dist/esm/stored/vokabular.js +6 -1
  36. package/dist/esm/version.d.ts +1 -1
  37. package/dist/esm/version.js +1 -1
  38. package/fixtures/expected/print-cut.sale-cash-default.hex +34 -0
  39. package/fixtures/expected/print-cut.sale-cash-full.hex +34 -0
  40. package/fixtures/expected/print-cut.sale-cash-mm58-none.hex +27 -0
  41. package/fixtures/expected/print-cut.sale-cash-mm58-partial.hex +27 -0
  42. package/fixtures/expected/print-cut.sale-cash-none.hex +33 -0
  43. package/fixtures/expected/print-cut.sale-cash-partial.hex +34 -0
  44. package/fixtures/expected/print-cut.sale-cash-true.hex +34 -0
  45. package/fixtures/expected/print-cut.zero-start-none.hex +38 -0
  46. package/fixtures/hobex-hps-codes.json +1 -1
  47. package/fixtures/inspection-info-cases.json +2348 -0
  48. package/fixtures/invoice-api.schema.json +1 -1
  49. package/fixtures/invoice-texts.json +1 -1
  50. package/fixtures/pos-texts.json +194 -3
  51. package/fixtures/print-cut-cases.json +47 -0
  52. package/fixtures/surface.json +8 -3
  53. package/fixtures/v3/antworten/belege.json +1 -1
  54. package/fixtures/v3/antworten/belegmail.json +1 -1
  55. package/fixtures/v3/antworten/berichte.json +1 -1
  56. package/fixtures/v3/antworten/kasse-belege.json +1 -1
  57. package/fixtures/v3/antworten/kasse.json +1814 -912
  58. package/fixtures/v3/antworten/lager.json +1 -1
  59. package/fixtures/v3/antworten/rechnungen.json +33 -33
  60. package/fixtures/v3/antworten/storno.json +1 -1
  61. package/fixtures/v3/stored/belege.json +1 -1
  62. package/fixtures/v3/stored/kasse.json +167 -4
  63. package/fixtures/v3/stored/rechnungen.json +253 -253
  64. package/fixtures/v3/v3-vokabular.json +37 -4
  65. package/fixtures/v3/zahlbetrag-faelle.json +1 -1
  66. package/package.json +3 -1
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_hinweis": "Vertrags-Export /v3, erzeugt aus den echten Handlern (npm run vertrag:v3 in functions/ und functions-kasse/). Nicht von Hand pflegen.",
3
3
  "_quelle": {
4
- "sha256": "8ab1b71c62ba07684e9ef254a7434be434247afdb1ac9947e083b4b0af5f3c04",
5
- "inputsSha256": "b008ce1c1465149f0748185704c3e593a6d537e869691bd0e60e3e4368142189",
4
+ "sha256": "c4c2fc57a33fae3dec2677a87c124449ad62ef8af6b584f2bbdd12b7c1d42bb2",
5
+ "inputsSha256": "9e5bcc545a585f516a1eeffa76a47b63134e99a637ffa1d3760fdeff9c18ccda",
6
6
  "backendPackage": "@kreiseck/kasseneck-api@0.36.0",
7
7
  "inputs": [
8
8
  "docs/api/fehlercodes.json",
@@ -92,7 +92,7 @@
92
92
  "isAuthority": false,
93
93
  "language": null
94
94
  },
95
- "users/test_welt1/invoices/auto1": {
95
+ "users/test_welt1/invoices/auto11": {
96
96
  "docType": "RE",
97
97
  "invoiceDate": "2026-09-26",
98
98
  "serviceStart": "2026-09-26",
@@ -143,10 +143,10 @@
143
143
  "source": "api",
144
144
  "language": "de",
145
145
  "markeId": null,
146
- "idempotencyKey": "i-final",
146
+ "idempotencyKey": "i-storno",
147
147
  "rechenweg": 2,
148
- "status": "final",
149
- "number": "0001",
148
+ "status": "cancelled",
149
+ "number": "0005",
150
150
  "totals": {
151
151
  "totalNet": 100,
152
152
  "totalVat": 20,
@@ -174,7 +174,7 @@
174
174
  "weg": "2",
175
175
  "quelle": "festschreiben"
176
176
  },
177
- "internal_seq": 1,
177
+ "internal_seq": 5,
178
178
  "einvoice": {
179
179
  "level": "full",
180
180
  "formats": [
@@ -218,95 +218,119 @@
218
218
  "created_at": "2026-09-26T08:00:00.000Z",
219
219
  "updated_at": "2026-09-26T08:00:00.000Z",
220
220
  "creditedCents": {
221
- "total": 1200,
221
+ "total": 12000,
222
222
  "byRate": {
223
- "20": 1200
223
+ "20": 12000
224
224
  }
225
- }
225
+ },
226
+ "cancelled_at": "2026-09-26T08:00:00.000Z",
227
+ "cancelled_by": "auto12"
226
228
  },
227
- "users/test_welt1/invoices/auto2": {
228
- "docType": "RE",
229
+ "users/test_welt1/invoices/auto12": {
230
+ "docType": "GU",
229
231
  "invoiceDate": "2026-09-26",
230
232
  "serviceStart": "2026-09-26",
231
233
  "serviceEnd": null,
232
- "paymentTermDays": 14,
233
- "customerId": "k_eu",
234
+ "paymentTermDays": 0,
235
+ "customerId": "k_at",
234
236
  "customer": {
235
- "name": "ACME s.r.o.",
237
+ "name": "Baecker Wien GmbH",
236
238
  "type": "company",
237
- "street": "Foo 1",
239
+ "street": "Hauptplatz 1",
238
240
  "houseNumber": null,
239
- "zip": "11000",
240
- "city": "Prag",
241
- "country": "CZ",
242
- "uid": "CZ12345678",
241
+ "zip": "1010",
242
+ "city": "Wien",
243
+ "country": "AT",
244
+ "uid": "ATU87654321",
243
245
  "shortCode": null,
244
246
  "email": null,
245
247
  "isAuthority": false
246
248
  },
247
- "taxScheme": "igLieferung",
249
+ "taxScheme": "normal",
248
250
  "reverseChargeReason": null,
249
251
  "taxCountry": "AT",
250
252
  "priceMode": "net",
251
253
  "items": [
252
254
  {
253
255
  "id": "i1",
254
- "description": "Ware",
256
+ "description": "Beratung",
255
257
  "subtitle": "",
256
- "quantity": 1,
258
+ "quantity": 2,
257
259
  "unit": "piece",
258
- "kind": "goods",
259
- "unitPrice": 100,
260
- "vatRate": 0,
260
+ "kind": "service",
261
+ "unitPrice": 50,
262
+ "vatRate": 20,
261
263
  "discountPct": 0
262
264
  }
263
265
  ],
264
- "intro": null,
266
+ "intro": "Grund: Stornierung",
265
267
  "note": null,
266
268
  "orderReference": null,
267
269
  "verwendungszweck": null,
268
270
  "girocode": false,
269
271
  "tracking": false,
270
- "relatedInvoiceId": null,
271
- "relatedNumber": null,
272
- "relatedDate": null,
273
- "cancelsOriginal": false,
272
+ "relatedInvoiceId": "auto11",
273
+ "relatedNumber": "0005",
274
+ "relatedDate": "2026-09-26",
275
+ "cancelsOriginal": true,
276
+ "vollstorno": true,
277
+ "vollstornoVon": "auto11",
278
+ "totalsCentsKopie": {
279
+ "netCents": 10000,
280
+ "vatCents": 2000,
281
+ "grossCents": 12000,
282
+ "byRate": [
283
+ {
284
+ "rateBp": 2000,
285
+ "netCents": 10000,
286
+ "vatCents": 2000,
287
+ "grossCents": 12000
288
+ }
289
+ ],
290
+ "lines": [
291
+ {
292
+ "netCents": 10000,
293
+ "grossCents": 12000,
294
+ "rateBp": 2000
295
+ }
296
+ ]
297
+ },
298
+ "creditNoteReason": "cancellation",
274
299
  "metadata": {},
275
300
  "source": "api",
276
301
  "language": "de",
277
- "markeId": null,
278
- "idempotencyKey": "i-eu",
302
+ "idempotencyKey": "gu-2",
279
303
  "rechenweg": 2,
280
304
  "status": "final",
281
- "number": "0002",
305
+ "number": "0006",
282
306
  "totals": {
283
307
  "totalNet": 100,
284
- "totalVat": 0,
285
- "totalGross": 100
308
+ "totalVat": 20,
309
+ "totalGross": 120
286
310
  },
287
311
  "totalsCents": {
288
312
  "netCents": 10000,
289
- "vatCents": 0,
290
- "grossCents": 10000,
313
+ "vatCents": 2000,
314
+ "grossCents": 12000,
291
315
  "byRate": [
292
316
  {
293
- "rateBp": 0,
317
+ "rateBp": 2000,
294
318
  "netCents": 10000,
295
- "vatCents": 0,
296
- "grossCents": 10000
319
+ "vatCents": 2000,
320
+ "grossCents": 12000
297
321
  }
298
322
  ],
299
323
  "lines": [
300
324
  {
301
325
  "netCents": 10000,
302
- "grossCents": 10000,
303
- "rateBp": 0
326
+ "grossCents": 12000,
327
+ "rateBp": 2000
304
328
  }
305
329
  ],
306
- "weg": "2",
330
+ "weg": "gespeichert",
307
331
  "quelle": "festschreiben"
308
332
  },
309
- "internal_seq": 2,
333
+ "internal_seq": 6,
310
334
  "einvoice": {
311
335
  "level": "full",
312
336
  "formats": [
@@ -347,72 +371,43 @@
347
371
  "paidAt": null,
348
372
  "paymentMethod": null
349
373
  },
350
- "uidNachweis": {
351
- "pruefungId": "p_eu_heute",
352
- "quelle": "vies",
353
- "stufe": 1,
354
- "ergebnis": "gueltig",
355
- "zeitpunktMs": 1790406000000,
356
- "wienerTag": "2026-09-26",
357
- "konsultationsnummer": null,
358
- "abgleich": {
359
- "name": "unbekannt",
360
- "adresse": "unbekannt"
361
- },
362
- "pruefcode": "248H248H"
363
- },
364
374
  "created_at": "2026-09-26T08:00:00.000Z",
365
- "updated_at": "2026-09-26T08:00:00.000Z",
366
- "payments": [
367
- {
368
- "id": "1111111111111111",
369
- "amount": 50,
370
- "date": "2026-09-26",
371
- "method": "transfer",
372
- "bankTxId": null,
373
- "note": null
374
- }
375
- ],
376
- "paidAt": null,
377
- "paymentMethod": null,
378
- "paymentMonths": [
379
- "2026-09"
380
- ]
375
+ "updated_at": "2026-09-26T08:00:00.000Z"
381
376
  },
382
- "users/test_welt1/invoices/auto4": {
377
+ "users/test_welt1/invoices/auto14": {
383
378
  "docType": "RE",
384
379
  "invoiceDate": "2026-09-26",
385
380
  "serviceStart": "2026-09-26",
386
381
  "serviceEnd": null,
387
382
  "paymentTermDays": 14,
388
- "customerId": "k_eu_offen",
383
+ "customerId": "k_at",
389
384
  "customer": {
390
- "name": "Kleiderservice Nadler KG",
385
+ "name": "Baecker Wien GmbH",
391
386
  "type": "company",
392
- "street": "Musterweg 2",
387
+ "street": "Hauptplatz 1",
393
388
  "houseNumber": null,
394
- "zip": "10115",
395
- "city": "Berlin",
396
- "country": "DE",
397
- "uid": "DE314159262",
389
+ "zip": "1010",
390
+ "city": "Wien",
391
+ "country": "AT",
392
+ "uid": "ATU87654321",
398
393
  "shortCode": null,
399
394
  "email": null,
400
395
  "isAuthority": false
401
396
  },
402
- "taxScheme": "igLieferung",
397
+ "taxScheme": "normal",
403
398
  "reverseChargeReason": null,
404
399
  "taxCountry": "AT",
405
400
  "priceMode": "net",
406
401
  "items": [
407
402
  {
408
403
  "id": "i1",
409
- "description": "Ware",
404
+ "description": "Beratung",
410
405
  "subtitle": "",
411
- "quantity": 1,
406
+ "quantity": 2,
412
407
  "unit": "piece",
413
- "kind": "goods",
414
- "unitPrice": 100,
415
- "vatRate": 0,
408
+ "kind": "service",
409
+ "unitPrice": 50,
410
+ "vatRate": 20,
416
411
  "discountPct": 0
417
412
  }
418
413
  ],
@@ -430,38 +425,38 @@
430
425
  "source": "api",
431
426
  "language": "de",
432
427
  "markeId": null,
433
- "idempotencyKey": "i-eu-offen",
428
+ "idempotencyKey": "i-abschreibung",
434
429
  "rechenweg": 2,
435
430
  "status": "final",
436
- "number": "0003",
431
+ "number": "0007",
437
432
  "totals": {
438
433
  "totalNet": 100,
439
- "totalVat": 0,
440
- "totalGross": 100
434
+ "totalVat": 20,
435
+ "totalGross": 120
441
436
  },
442
437
  "totalsCents": {
443
438
  "netCents": 10000,
444
- "vatCents": 0,
445
- "grossCents": 10000,
439
+ "vatCents": 2000,
440
+ "grossCents": 12000,
446
441
  "byRate": [
447
442
  {
448
- "rateBp": 0,
443
+ "rateBp": 2000,
449
444
  "netCents": 10000,
450
- "vatCents": 0,
451
- "grossCents": 10000
445
+ "vatCents": 2000,
446
+ "grossCents": 12000
452
447
  }
453
448
  ],
454
449
  "lines": [
455
450
  {
456
451
  "netCents": 10000,
457
- "grossCents": 10000,
458
- "rateBp": 0
452
+ "grossCents": 12000,
453
+ "rateBp": 2000
459
454
  }
460
455
  ],
461
456
  "weg": "2",
462
457
  "quelle": "festschreiben"
463
458
  },
464
- "internal_seq": 3,
459
+ "internal_seq": 7,
465
460
  "einvoice": {
466
461
  "level": "full",
467
462
  "formats": [
@@ -502,22 +497,17 @@
502
497
  "paidAt": null,
503
498
  "paymentMethod": null
504
499
  },
505
- "uidRisiko": {
506
- "bestaetigtVon": "test_welt1",
507
- "bestaetigtAm": 1790409600000,
508
- "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.",
509
- "weg": "api",
510
- "nachpruefenBis": 1793005200000
511
- },
512
500
  "created_at": "2026-09-26T08:00:00.000Z",
513
- "updated_at": "2026-09-26T08:00:00.000Z"
501
+ "updated_at": "2026-09-26T08:00:00.000Z",
502
+ "writtenOff": true,
503
+ "writeOffReasonCode": "uneinbringlich"
514
504
  },
515
- "users/test_welt1/invoices/auto6": {
516
- "docType": "GU",
505
+ "users/test_welt1/invoices/auto2": {
506
+ "docType": "RE",
517
507
  "invoiceDate": "2026-09-26",
518
508
  "serviceStart": "2026-09-26",
519
509
  "serviceEnd": null,
520
- "paymentTermDays": 0,
510
+ "paymentTermDays": 14,
521
511
  "customerId": "k_at",
522
512
  "customer": {
523
513
  "name": "Baecker Wien GmbH",
@@ -539,62 +529,62 @@
539
529
  "items": [
540
530
  {
541
531
  "id": "i1",
542
- "description": "Nachlass",
532
+ "description": "Beratung",
543
533
  "subtitle": "",
544
- "quantity": 1,
534
+ "quantity": 2,
545
535
  "unit": "piece",
546
536
  "kind": "service",
547
- "unitPrice": 10,
537
+ "unitPrice": 50,
548
538
  "vatRate": 20,
549
539
  "discountPct": 0
550
540
  }
551
541
  ],
552
- "intro": "Grund: Preisnachlass",
542
+ "intro": null,
553
543
  "note": null,
554
544
  "orderReference": null,
555
545
  "verwendungszweck": null,
556
546
  "girocode": false,
557
547
  "tracking": false,
558
- "relatedInvoiceId": "auto1",
559
- "relatedNumber": "0001",
560
- "relatedDate": "2026-09-26",
548
+ "relatedInvoiceId": null,
549
+ "relatedNumber": null,
550
+ "relatedDate": null,
561
551
  "cancelsOriginal": false,
562
- "creditNoteReason": "price_reduction",
563
552
  "metadata": {},
564
553
  "source": "api",
565
554
  "language": "de",
566
- "idempotencyKey": "gu-1",
555
+ "markeId": null,
556
+ "idempotencyKey": "i-final",
567
557
  "rechenweg": 2,
568
558
  "status": "final",
569
- "number": "0004",
559
+ "number": "0001",
570
560
  "totals": {
571
- "totalNet": 10,
572
- "totalVat": 2,
573
- "totalGross": 12
561
+ "totalNet": 100,
562
+ "totalVat": 20,
563
+ "totalGross": 120
574
564
  },
575
565
  "totalsCents": {
576
- "netCents": 1000,
577
- "vatCents": 200,
578
- "grossCents": 1200,
566
+ "netCents": 10000,
567
+ "vatCents": 2000,
568
+ "grossCents": 12000,
579
569
  "byRate": [
580
570
  {
581
571
  "rateBp": 2000,
582
- "netCents": 1000,
583
- "vatCents": 200,
584
- "grossCents": 1200
572
+ "netCents": 10000,
573
+ "vatCents": 2000,
574
+ "grossCents": 12000
585
575
  }
586
576
  ],
587
577
  "lines": [
588
578
  {
589
- "netCents": 1000,
590
- "grossCents": 1200,
579
+ "netCents": 10000,
580
+ "grossCents": 12000,
591
581
  "rateBp": 2000
592
582
  }
593
583
  ],
594
584
  "weg": "2",
595
585
  "quelle": "festschreiben"
596
586
  },
597
- "internal_seq": 4,
587
+ "internal_seq": 1,
598
588
  "einvoice": {
599
589
  "level": "full",
600
590
  "formats": [
@@ -636,42 +626,48 @@
636
626
  "paymentMethod": null
637
627
  },
638
628
  "created_at": "2026-09-26T08:00:00.000Z",
639
- "updated_at": "2026-09-26T08:00:00.000Z"
629
+ "updated_at": "2026-09-26T08:00:00.000Z",
630
+ "creditedCents": {
631
+ "total": 1200,
632
+ "byRate": {
633
+ "20": 1200
634
+ }
635
+ }
640
636
  },
641
- "users/test_welt1/invoices/auto7": {
637
+ "users/test_welt1/invoices/auto3": {
642
638
  "docType": "RE",
643
639
  "invoiceDate": "2026-09-26",
644
640
  "serviceStart": "2026-09-26",
645
641
  "serviceEnd": null,
646
642
  "paymentTermDays": 14,
647
- "customerId": "k_at",
643
+ "customerId": "k_eu",
648
644
  "customer": {
649
- "name": "Baecker Wien GmbH",
645
+ "name": "ACME s.r.o.",
650
646
  "type": "company",
651
- "street": "Hauptplatz 1",
647
+ "street": "Foo 1",
652
648
  "houseNumber": null,
653
- "zip": "1010",
654
- "city": "Wien",
655
- "country": "AT",
656
- "uid": "ATU87654321",
649
+ "zip": "11000",
650
+ "city": "Prag",
651
+ "country": "CZ",
652
+ "uid": "CZ12345678",
657
653
  "shortCode": null,
658
654
  "email": null,
659
655
  "isAuthority": false
660
656
  },
661
- "taxScheme": "normal",
657
+ "taxScheme": "igLieferung",
662
658
  "reverseChargeReason": null,
663
659
  "taxCountry": "AT",
664
660
  "priceMode": "net",
665
661
  "items": [
666
662
  {
667
663
  "id": "i1",
668
- "description": "Beratung",
664
+ "description": "Ware",
669
665
  "subtitle": "",
670
- "quantity": 2,
666
+ "quantity": 1,
671
667
  "unit": "piece",
672
- "kind": "service",
673
- "unitPrice": 50,
674
- "vatRate": 20,
668
+ "kind": "goods",
669
+ "unitPrice": 100,
670
+ "vatRate": 0,
675
671
  "discountPct": 0
676
672
  }
677
673
  ],
@@ -689,38 +685,38 @@
689
685
  "source": "api",
690
686
  "language": "de",
691
687
  "markeId": null,
692
- "idempotencyKey": "i-storno",
688
+ "idempotencyKey": "i-eu",
693
689
  "rechenweg": 2,
694
- "status": "cancelled",
695
- "number": "0005",
690
+ "status": "final",
691
+ "number": "0002",
696
692
  "totals": {
697
693
  "totalNet": 100,
698
- "totalVat": 20,
699
- "totalGross": 120
694
+ "totalVat": 0,
695
+ "totalGross": 100
700
696
  },
701
697
  "totalsCents": {
702
698
  "netCents": 10000,
703
- "vatCents": 2000,
704
- "grossCents": 12000,
699
+ "vatCents": 0,
700
+ "grossCents": 10000,
705
701
  "byRate": [
706
702
  {
707
- "rateBp": 2000,
703
+ "rateBp": 0,
708
704
  "netCents": 10000,
709
- "vatCents": 2000,
710
- "grossCents": 12000
705
+ "vatCents": 0,
706
+ "grossCents": 10000
711
707
  }
712
708
  ],
713
709
  "lines": [
714
710
  {
715
711
  "netCents": 10000,
716
- "grossCents": 12000,
717
- "rateBp": 2000
712
+ "grossCents": 10000,
713
+ "rateBp": 0
718
714
  }
719
715
  ],
720
716
  "weg": "2",
721
717
  "quelle": "festschreiben"
722
718
  },
723
- "internal_seq": 5,
719
+ "internal_seq": 2,
724
720
  "einvoice": {
725
721
  "level": "full",
726
722
  "formats": [
@@ -761,122 +757,121 @@
761
757
  "paidAt": null,
762
758
  "paymentMethod": null
763
759
  },
760
+ "uidNachweis": {
761
+ "pruefungId": "p_eu_heute",
762
+ "quelle": "vies",
763
+ "stufe": 1,
764
+ "ergebnis": "gueltig",
765
+ "zeitpunktMs": 1790406000000,
766
+ "wienerTag": "2026-09-26",
767
+ "konsultationsnummer": null,
768
+ "abgleich": {
769
+ "name": "unbekannt",
770
+ "adresse": "unbekannt"
771
+ },
772
+ "pruefcode": "248H248H"
773
+ },
764
774
  "created_at": "2026-09-26T08:00:00.000Z",
765
775
  "updated_at": "2026-09-26T08:00:00.000Z",
766
- "creditedCents": {
767
- "total": 12000,
768
- "byRate": {
769
- "20": 12000
776
+ "payments": [
777
+ {
778
+ "id": "1111111111111111",
779
+ "amount": 50,
780
+ "date": "2026-09-26",
781
+ "method": "transfer",
782
+ "bankTxId": null,
783
+ "note": null
770
784
  }
771
- },
772
- "cancelled_at": "2026-09-26T08:00:00.000Z",
773
- "cancelled_by": "auto8"
785
+ ],
786
+ "paidAt": null,
787
+ "paymentMethod": null,
788
+ "paymentMonths": [
789
+ "2026-09"
790
+ ]
774
791
  },
775
- "users/test_welt1/invoices/auto8": {
776
- "docType": "GU",
792
+ "users/test_welt1/invoices/auto7": {
793
+ "docType": "RE",
777
794
  "invoiceDate": "2026-09-26",
778
795
  "serviceStart": "2026-09-26",
779
796
  "serviceEnd": null,
780
- "paymentTermDays": 0,
781
- "customerId": "k_at",
797
+ "paymentTermDays": 14,
798
+ "customerId": "k_eu_offen",
782
799
  "customer": {
783
- "name": "Baecker Wien GmbH",
800
+ "name": "Kleiderservice Nadler KG",
784
801
  "type": "company",
785
- "street": "Hauptplatz 1",
802
+ "street": "Musterweg 2",
786
803
  "houseNumber": null,
787
- "zip": "1010",
788
- "city": "Wien",
789
- "country": "AT",
790
- "uid": "ATU87654321",
804
+ "zip": "10115",
805
+ "city": "Berlin",
806
+ "country": "DE",
807
+ "uid": "DE314159262",
791
808
  "shortCode": null,
792
809
  "email": null,
793
810
  "isAuthority": false
794
811
  },
795
- "taxScheme": "normal",
812
+ "taxScheme": "igLieferung",
796
813
  "reverseChargeReason": null,
797
814
  "taxCountry": "AT",
798
815
  "priceMode": "net",
799
816
  "items": [
800
817
  {
801
818
  "id": "i1",
802
- "description": "Beratung",
819
+ "description": "Ware",
803
820
  "subtitle": "",
804
- "quantity": 2,
821
+ "quantity": 1,
805
822
  "unit": "piece",
806
- "kind": "service",
807
- "unitPrice": 50,
808
- "vatRate": 20,
823
+ "kind": "goods",
824
+ "unitPrice": 100,
825
+ "vatRate": 0,
809
826
  "discountPct": 0
810
827
  }
811
828
  ],
812
- "intro": "Grund: Stornierung",
829
+ "intro": null,
813
830
  "note": null,
814
831
  "orderReference": null,
815
832
  "verwendungszweck": null,
816
833
  "girocode": false,
817
834
  "tracking": false,
818
- "relatedInvoiceId": "auto7",
819
- "relatedNumber": "0005",
820
- "relatedDate": "2026-09-26",
821
- "cancelsOriginal": true,
822
- "vollstorno": true,
823
- "vollstornoVon": "auto7",
824
- "totalsCentsKopie": {
825
- "netCents": 10000,
826
- "vatCents": 2000,
827
- "grossCents": 12000,
828
- "byRate": [
829
- {
830
- "rateBp": 2000,
831
- "netCents": 10000,
832
- "vatCents": 2000,
833
- "grossCents": 12000
834
- }
835
- ],
836
- "lines": [
837
- {
838
- "netCents": 10000,
839
- "grossCents": 12000,
840
- "rateBp": 2000
841
- }
842
- ]
843
- },
844
- "creditNoteReason": "cancellation",
835
+ "relatedInvoiceId": null,
836
+ "relatedNumber": null,
837
+ "relatedDate": null,
838
+ "cancelsOriginal": false,
845
839
  "metadata": {},
846
840
  "source": "api",
847
841
  "language": "de",
848
- "idempotencyKey": "gu-2",
842
+ "markeId": null,
843
+ "idempotencyKey": "i-eu-offen",
849
844
  "rechenweg": 2,
850
845
  "status": "final",
851
- "number": "0006",
846
+ "number": "0003",
852
847
  "totals": {
853
848
  "totalNet": 100,
854
- "totalVat": 20,
855
- "totalGross": 120
849
+ "totalVat": 0,
850
+ "totalGross": 100
856
851
  },
857
852
  "totalsCents": {
858
853
  "netCents": 10000,
859
- "vatCents": 2000,
860
- "grossCents": 12000,
854
+ "vatCents": 0,
855
+ "grossCents": 10000,
861
856
  "byRate": [
862
857
  {
863
- "rateBp": 2000,
858
+ "rateBp": 0,
864
859
  "netCents": 10000,
865
- "vatCents": 2000,
866
- "grossCents": 12000
860
+ "vatCents": 0,
861
+ "grossCents": 10000
867
862
  }
868
863
  ],
869
864
  "lines": [
870
865
  {
871
866
  "netCents": 10000,
872
- "grossCents": 12000,
873
- "rateBp": 2000
867
+ "grossCents": 10000,
868
+ "rateBp": 0
874
869
  }
875
870
  ],
876
- "weg": "gespeichert",
871
+ "weg": "2",
877
872
  "quelle": "festschreiben"
878
873
  },
879
- "internal_seq": 6,
874
+ "internal_seq": 3,
880
875
  "einvoice": {
881
876
  "level": "full",
882
877
  "formats": [
@@ -917,15 +912,22 @@
917
912
  "paidAt": null,
918
913
  "paymentMethod": null
919
914
  },
915
+ "uidRisiko": {
916
+ "bestaetigtVon": "test_welt1",
917
+ "bestaetigtAm": 1790409600000,
918
+ "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.",
919
+ "weg": "api",
920
+ "nachpruefenBis": 1793005200000
921
+ },
920
922
  "created_at": "2026-09-26T08:00:00.000Z",
921
923
  "updated_at": "2026-09-26T08:00:00.000Z"
922
924
  },
923
925
  "users/test_welt1/invoices/auto9": {
924
- "docType": "RE",
926
+ "docType": "GU",
925
927
  "invoiceDate": "2026-09-26",
926
928
  "serviceStart": "2026-09-26",
927
929
  "serviceEnd": null,
928
- "paymentTermDays": 14,
930
+ "paymentTermDays": 0,
929
931
  "customerId": "k_at",
930
932
  "customer": {
931
933
  "name": "Baecker Wien GmbH",
@@ -947,62 +949,62 @@
947
949
  "items": [
948
950
  {
949
951
  "id": "i1",
950
- "description": "Beratung",
952
+ "description": "Nachlass",
951
953
  "subtitle": "",
952
- "quantity": 2,
954
+ "quantity": 1,
953
955
  "unit": "piece",
954
956
  "kind": "service",
955
- "unitPrice": 50,
957
+ "unitPrice": 10,
956
958
  "vatRate": 20,
957
959
  "discountPct": 0
958
960
  }
959
961
  ],
960
- "intro": null,
962
+ "intro": "Grund: Preisnachlass",
961
963
  "note": null,
962
964
  "orderReference": null,
963
965
  "verwendungszweck": null,
964
966
  "girocode": false,
965
967
  "tracking": false,
966
- "relatedInvoiceId": null,
967
- "relatedNumber": null,
968
- "relatedDate": null,
968
+ "relatedInvoiceId": "auto2",
969
+ "relatedNumber": "0001",
970
+ "relatedDate": "2026-09-26",
969
971
  "cancelsOriginal": false,
972
+ "creditNoteReason": "price_reduction",
970
973
  "metadata": {},
971
974
  "source": "api",
972
975
  "language": "de",
973
- "markeId": null,
974
- "idempotencyKey": "i-abschreibung",
976
+ "idempotencyKey": "gu-1",
975
977
  "rechenweg": 2,
976
978
  "status": "final",
977
- "number": "0007",
979
+ "number": "0004",
978
980
  "totals": {
979
- "totalNet": 100,
980
- "totalVat": 20,
981
- "totalGross": 120
981
+ "totalNet": 10,
982
+ "totalVat": 2,
983
+ "totalGross": 12
982
984
  },
983
985
  "totalsCents": {
984
- "netCents": 10000,
985
- "vatCents": 2000,
986
- "grossCents": 12000,
986
+ "netCents": 1000,
987
+ "vatCents": 200,
988
+ "grossCents": 1200,
987
989
  "byRate": [
988
990
  {
989
991
  "rateBp": 2000,
990
- "netCents": 10000,
991
- "vatCents": 2000,
992
- "grossCents": 12000
992
+ "netCents": 1000,
993
+ "vatCents": 200,
994
+ "grossCents": 1200
993
995
  }
994
996
  ],
995
997
  "lines": [
996
998
  {
997
- "netCents": 10000,
998
- "grossCents": 12000,
999
+ "netCents": 1000,
1000
+ "grossCents": 1200,
999
1001
  "rateBp": 2000
1000
1002
  }
1001
1003
  ],
1002
1004
  "weg": "2",
1003
1005
  "quelle": "festschreiben"
1004
1006
  },
1005
- "internal_seq": 7,
1007
+ "internal_seq": 4,
1006
1008
  "einvoice": {
1007
1009
  "level": "full",
1008
1010
  "formats": [
@@ -1044,9 +1046,7 @@
1044
1046
  "paymentMethod": null
1045
1047
  },
1046
1048
  "created_at": "2026-09-26T08:00:00.000Z",
1047
- "updated_at": "2026-09-26T08:00:00.000Z",
1048
- "writtenOff": true,
1049
- "writeOffReasonCode": "uneinbringlich"
1049
+ "updated_at": "2026-09-26T08:00:00.000Z"
1050
1050
  }
1051
1051
  }
1052
1052
  }