@orvello/sdk 0.7.15 → 0.7.16

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.
package/dist/openapi.json CHANGED
@@ -34731,6 +34731,9 @@
34731
34731
  "private": {
34732
34732
  "type": "boolean"
34733
34733
  },
34734
+ "versionCount": {
34735
+ "type": "number"
34736
+ },
34734
34737
  "invoice": {
34735
34738
  "anyOf": [
34736
34739
  {
@@ -34798,6 +34801,7 @@
34798
34801
  "folderId",
34799
34802
  "archivedAt",
34800
34803
  "private",
34804
+ "versionCount",
34801
34805
  "invoice"
34802
34806
  ],
34803
34807
  "additionalProperties": false
@@ -38656,6 +38660,1589 @@
38656
38660
  "x-transport": "http"
38657
38661
  }
38658
38662
  },
38663
+ "/invoices/:invoiceId/versions": {
38664
+ "get": {
38665
+ "operationId": "invoices_versions",
38666
+ "tags": [
38667
+ "invoices"
38668
+ ],
38669
+ "summary": "Unverändertes Original, Berichtigungen und bevorzugte Anzeige",
38670
+ "description": "Unverändertes Original, Berichtigungen und bevorzugte Anzeige",
38671
+ "responses": {
38672
+ "200": {
38673
+ "description": "JSON response",
38674
+ "content": {
38675
+ "application/json": {
38676
+ "schema": {
38677
+ "type": "object",
38678
+ "properties": {
38679
+ "success": {
38680
+ "type": "boolean"
38681
+ },
38682
+ "message": {
38683
+ "anyOf": [
38684
+ {
38685
+ "type": "string"
38686
+ },
38687
+ {
38688
+ "type": "null"
38689
+ }
38690
+ ]
38691
+ },
38692
+ "code": {
38693
+ "anyOf": [
38694
+ {
38695
+ "type": "string"
38696
+ },
38697
+ {
38698
+ "type": "null"
38699
+ }
38700
+ ]
38701
+ },
38702
+ "data": {
38703
+ "anyOf": [
38704
+ {
38705
+ "type": "object",
38706
+ "properties": {
38707
+ "legacyDocumentId": {
38708
+ "anyOf": [
38709
+ {
38710
+ "type": "number"
38711
+ },
38712
+ {
38713
+ "type": "null"
38714
+ }
38715
+ ]
38716
+ },
38717
+ "versions": {
38718
+ "type": "array",
38719
+ "items": {
38720
+ "type": "object",
38721
+ "properties": {
38722
+ "id": {
38723
+ "type": "number"
38724
+ },
38725
+ "invoiceId": {
38726
+ "type": "number"
38727
+ },
38728
+ "managingCompanyId": {
38729
+ "type": "number"
38730
+ },
38731
+ "revision": {
38732
+ "type": "number"
38733
+ },
38734
+ "documentId": {
38735
+ "type": "number"
38736
+ },
38737
+ "documentNumber": {
38738
+ "anyOf": [
38739
+ {
38740
+ "type": "string"
38741
+ },
38742
+ {
38743
+ "type": "null"
38744
+ }
38745
+ ]
38746
+ },
38747
+ "structuredDocumentId": {
38748
+ "anyOf": [
38749
+ {
38750
+ "type": "number"
38751
+ },
38752
+ {
38753
+ "type": "null"
38754
+ }
38755
+ ]
38756
+ },
38757
+ "structuredSha256": {
38758
+ "anyOf": [
38759
+ {
38760
+ "type": "string"
38761
+ },
38762
+ {
38763
+ "type": "null"
38764
+ }
38765
+ ]
38766
+ },
38767
+ "issuer": {
38768
+ "type": "object",
38769
+ "additionalProperties": {
38770
+ "anyOf": [
38771
+ {
38772
+ "type": "string"
38773
+ },
38774
+ {
38775
+ "type": "null"
38776
+ }
38777
+ ]
38778
+ }
38779
+ },
38780
+ "sha256": {
38781
+ "type": "string"
38782
+ },
38783
+ "reason": {
38784
+ "type": "string"
38785
+ },
38786
+ "actorUserId": {
38787
+ "anyOf": [
38788
+ {
38789
+ "type": "number"
38790
+ },
38791
+ {
38792
+ "type": "null"
38793
+ }
38794
+ ]
38795
+ },
38796
+ "createdAt": {
38797
+ "anyOf": [
38798
+ {
38799
+ "type": "string",
38800
+ "format": "date-time"
38801
+ },
38802
+ {
38803
+ "type": "string"
38804
+ }
38805
+ ]
38806
+ },
38807
+ "fileName": {
38808
+ "type": "string"
38809
+ },
38810
+ "actorName": {
38811
+ "type": "string"
38812
+ },
38813
+ "deliveries": {
38814
+ "type": "array",
38815
+ "items": {
38816
+ "type": "object",
38817
+ "properties": {
38818
+ "id": {
38819
+ "type": "number"
38820
+ },
38821
+ "recipient": {
38822
+ "type": "string"
38823
+ },
38824
+ "status": {
38825
+ "type": "string"
38826
+ },
38827
+ "createdAt": {
38828
+ "anyOf": [
38829
+ {
38830
+ "type": "string",
38831
+ "format": "date-time"
38832
+ },
38833
+ {
38834
+ "type": "string"
38835
+ }
38836
+ ]
38837
+ }
38838
+ },
38839
+ "required": [
38840
+ "id",
38841
+ "recipient",
38842
+ "status",
38843
+ "createdAt"
38844
+ ],
38845
+ "additionalProperties": false
38846
+ }
38847
+ },
38848
+ "changes": {
38849
+ "type": "array",
38850
+ "items": {
38851
+ "type": "object",
38852
+ "properties": {
38853
+ "field": {
38854
+ "type": "string"
38855
+ },
38856
+ "before": {
38857
+ "anyOf": [
38858
+ {
38859
+ "type": "string"
38860
+ },
38861
+ {
38862
+ "type": "null"
38863
+ }
38864
+ ]
38865
+ },
38866
+ "after": {
38867
+ "anyOf": [
38868
+ {
38869
+ "type": "string"
38870
+ },
38871
+ {
38872
+ "type": "null"
38873
+ }
38874
+ ]
38875
+ }
38876
+ },
38877
+ "required": [
38878
+ "field",
38879
+ "before",
38880
+ "after"
38881
+ ],
38882
+ "additionalProperties": false
38883
+ }
38884
+ }
38885
+ },
38886
+ "required": [
38887
+ "id",
38888
+ "invoiceId",
38889
+ "managingCompanyId",
38890
+ "revision",
38891
+ "documentId",
38892
+ "documentNumber",
38893
+ "structuredDocumentId",
38894
+ "structuredSha256",
38895
+ "issuer",
38896
+ "sha256",
38897
+ "reason",
38898
+ "actorUserId",
38899
+ "createdAt",
38900
+ "fileName",
38901
+ "actorName",
38902
+ "deliveries",
38903
+ "changes"
38904
+ ],
38905
+ "additionalProperties": false
38906
+ }
38907
+ },
38908
+ "preferredVersionId": {
38909
+ "anyOf": [
38910
+ {
38911
+ "type": "number"
38912
+ },
38913
+ {
38914
+ "type": "null"
38915
+ }
38916
+ ]
38917
+ },
38918
+ "effectiveVersionId": {
38919
+ "anyOf": [
38920
+ {
38921
+ "type": "number"
38922
+ },
38923
+ {
38924
+ "type": "null"
38925
+ }
38926
+ ]
38927
+ }
38928
+ },
38929
+ "required": [
38930
+ "legacyDocumentId",
38931
+ "versions",
38932
+ "preferredVersionId",
38933
+ "effectiveVersionId"
38934
+ ],
38935
+ "additionalProperties": false
38936
+ },
38937
+ {
38938
+ "type": "null"
38939
+ }
38940
+ ]
38941
+ }
38942
+ },
38943
+ "required": [
38944
+ "success",
38945
+ "data"
38946
+ ],
38947
+ "additionalProperties": false
38948
+ }
38949
+ }
38950
+ }
38951
+ }
38952
+ },
38953
+ "parameters": [
38954
+ {
38955
+ "name": "invoiceId",
38956
+ "in": "path",
38957
+ "required": true,
38958
+ "schema": {
38959
+ "type": "integer",
38960
+ "exclusiveMinimum": 0
38961
+ }
38962
+ },
38963
+ {
38964
+ "name": "companyId",
38965
+ "in": "query",
38966
+ "required": true,
38967
+ "schema": {
38968
+ "type": "integer",
38969
+ "exclusiveMinimum": 0
38970
+ }
38971
+ }
38972
+ ],
38973
+ "security": [
38974
+ {
38975
+ "frontendBearer": []
38976
+ }
38977
+ ],
38978
+ "x-transport": "http"
38979
+ }
38980
+ },
38981
+ "/invoices/:invoiceId/versions/evidence": {
38982
+ "post": {
38983
+ "operationId": "invoices_issuer_evidence",
38984
+ "tags": [
38985
+ "invoices"
38986
+ ],
38987
+ "summary": "Historische Ausstellerangaben am Original manuell belegen",
38988
+ "description": "Historische Ausstellerangaben am Original manuell belegen",
38989
+ "responses": {
38990
+ "200": {
38991
+ "description": "JSON response",
38992
+ "content": {
38993
+ "application/json": {
38994
+ "schema": {
38995
+ "type": "object",
38996
+ "properties": {
38997
+ "success": {
38998
+ "type": "boolean"
38999
+ },
39000
+ "message": {
39001
+ "anyOf": [
39002
+ {
39003
+ "type": "string"
39004
+ },
39005
+ {
39006
+ "type": "null"
39007
+ }
39008
+ ]
39009
+ },
39010
+ "code": {
39011
+ "anyOf": [
39012
+ {
39013
+ "type": "string"
39014
+ },
39015
+ {
39016
+ "type": "null"
39017
+ }
39018
+ ]
39019
+ },
39020
+ "data": {
39021
+ "anyOf": [
39022
+ {
39023
+ "type": "object",
39024
+ "properties": {
39025
+ "versionId": {
39026
+ "type": "integer",
39027
+ "exclusiveMinimum": 0
39028
+ }
39029
+ },
39030
+ "required": [
39031
+ "versionId"
39032
+ ],
39033
+ "additionalProperties": false
39034
+ },
39035
+ {
39036
+ "type": "null"
39037
+ }
39038
+ ]
39039
+ }
39040
+ },
39041
+ "required": [
39042
+ "success",
39043
+ "data"
39044
+ ],
39045
+ "additionalProperties": false
39046
+ }
39047
+ }
39048
+ }
39049
+ }
39050
+ },
39051
+ "parameters": [
39052
+ {
39053
+ "name": "invoiceId",
39054
+ "in": "path",
39055
+ "required": true,
39056
+ "schema": {
39057
+ "type": "integer",
39058
+ "exclusiveMinimum": 0
39059
+ }
39060
+ },
39061
+ {
39062
+ "name": "companyId",
39063
+ "in": "query",
39064
+ "required": true,
39065
+ "schema": {
39066
+ "type": "integer",
39067
+ "exclusiveMinimum": 0
39068
+ }
39069
+ }
39070
+ ],
39071
+ "requestBody": {
39072
+ "required": true,
39073
+ "content": {
39074
+ "application/json": {
39075
+ "schema": {
39076
+ "type": "object",
39077
+ "properties": {
39078
+ "documentId": {
39079
+ "type": "integer",
39080
+ "exclusiveMinimum": 0
39081
+ },
39082
+ "companyName": {
39083
+ "type": "string",
39084
+ "minLength": 1,
39085
+ "maxLength": 200
39086
+ },
39087
+ "street": {
39088
+ "type": "string",
39089
+ "minLength": 1,
39090
+ "maxLength": 200
39091
+ },
39092
+ "streetNr": {
39093
+ "type": "string",
39094
+ "maxLength": 30
39095
+ },
39096
+ "zip": {
39097
+ "type": "string",
39098
+ "minLength": 1,
39099
+ "maxLength": 30
39100
+ },
39101
+ "city": {
39102
+ "type": "string",
39103
+ "minLength": 1,
39104
+ "maxLength": 100
39105
+ },
39106
+ "country": {
39107
+ "type": "string",
39108
+ "minLength": 1,
39109
+ "maxLength": 100
39110
+ },
39111
+ "taxId": {
39112
+ "type": "string",
39113
+ "minLength": 1,
39114
+ "maxLength": 50
39115
+ },
39116
+ "reason": {
39117
+ "type": "string",
39118
+ "minLength": 10,
39119
+ "maxLength": 1000
39120
+ },
39121
+ "confirmsOriginalInspected": {
39122
+ "const": true
39123
+ }
39124
+ },
39125
+ "required": [
39126
+ "documentId",
39127
+ "companyName",
39128
+ "street",
39129
+ "streetNr",
39130
+ "zip",
39131
+ "city",
39132
+ "country",
39133
+ "taxId",
39134
+ "reason",
39135
+ "confirmsOriginalInspected"
39136
+ ],
39137
+ "additionalProperties": false
39138
+ }
39139
+ }
39140
+ }
39141
+ },
39142
+ "security": [
39143
+ {
39144
+ "frontendBearer": []
39145
+ }
39146
+ ],
39147
+ "x-transport": "http"
39148
+ }
39149
+ },
39150
+ "/invoices/:invoiceId/versions/:versionId/send": {
39151
+ "post": {
39152
+ "operationId": "invoices_versions_send",
39153
+ "tags": [
39154
+ "invoices"
39155
+ ],
39156
+ "summary": "Original und gewählte Berichtigungsfassung mit ausdrücklichem Versandauftrag zustellen",
39157
+ "description": "Original und gewählte Berichtigungsfassung mit ausdrücklichem Versandauftrag zustellen",
39158
+ "responses": {
39159
+ "200": {
39160
+ "description": "JSON response",
39161
+ "content": {
39162
+ "application/json": {
39163
+ "schema": {
39164
+ "type": "object",
39165
+ "properties": {
39166
+ "success": {
39167
+ "type": "boolean"
39168
+ },
39169
+ "message": {
39170
+ "anyOf": [
39171
+ {
39172
+ "type": "string"
39173
+ },
39174
+ {
39175
+ "type": "null"
39176
+ }
39177
+ ]
39178
+ },
39179
+ "code": {
39180
+ "anyOf": [
39181
+ {
39182
+ "type": "string"
39183
+ },
39184
+ {
39185
+ "type": "null"
39186
+ }
39187
+ ]
39188
+ },
39189
+ "data": {
39190
+ "anyOf": [
39191
+ {
39192
+ "type": "object",
39193
+ "properties": {
39194
+ "id": {
39195
+ "type": "number"
39196
+ },
39197
+ "status": {
39198
+ "type": "string"
39199
+ }
39200
+ },
39201
+ "required": [
39202
+ "id",
39203
+ "status"
39204
+ ],
39205
+ "additionalProperties": false
39206
+ },
39207
+ {
39208
+ "type": "null"
39209
+ }
39210
+ ]
39211
+ }
39212
+ },
39213
+ "required": [
39214
+ "success",
39215
+ "data"
39216
+ ],
39217
+ "additionalProperties": false
39218
+ }
39219
+ }
39220
+ }
39221
+ }
39222
+ },
39223
+ "parameters": [
39224
+ {
39225
+ "name": "invoiceId",
39226
+ "in": "path",
39227
+ "required": true,
39228
+ "schema": {
39229
+ "type": "integer",
39230
+ "exclusiveMinimum": 0
39231
+ }
39232
+ },
39233
+ {
39234
+ "name": "versionId",
39235
+ "in": "path",
39236
+ "required": true,
39237
+ "schema": {
39238
+ "type": "integer",
39239
+ "exclusiveMinimum": 0
39240
+ }
39241
+ },
39242
+ {
39243
+ "name": "companyId",
39244
+ "in": "query",
39245
+ "required": true,
39246
+ "schema": {
39247
+ "type": "integer",
39248
+ "exclusiveMinimum": 0
39249
+ }
39250
+ }
39251
+ ],
39252
+ "requestBody": {
39253
+ "required": true,
39254
+ "content": {
39255
+ "application/json": {
39256
+ "schema": {
39257
+ "type": "object",
39258
+ "properties": {
39259
+ "requestId": {
39260
+ "type": "string"
39261
+ },
39262
+ "to": {
39263
+ "type": "string",
39264
+ "format": "email",
39265
+ "maxLength": 254
39266
+ },
39267
+ "subject": {
39268
+ "type": "string",
39269
+ "minLength": 1,
39270
+ "maxLength": 200,
39271
+ "pattern": "^[^\\r\\n]+$"
39272
+ },
39273
+ "message": {
39274
+ "type": "string",
39275
+ "minLength": 1,
39276
+ "maxLength": 10000
39277
+ }
39278
+ },
39279
+ "required": [
39280
+ "requestId",
39281
+ "to",
39282
+ "subject",
39283
+ "message"
39284
+ ],
39285
+ "additionalProperties": false
39286
+ }
39287
+ }
39288
+ }
39289
+ },
39290
+ "security": [
39291
+ {
39292
+ "frontendBearer": []
39293
+ }
39294
+ ],
39295
+ "x-transport": "http",
39296
+ "x-permissions": [
39297
+ "documents_manage"
39298
+ ]
39299
+ }
39300
+ },
39301
+ "/invoices/:invoiceId/versions/preferred": {
39302
+ "post": {
39303
+ "operationId": "invoices_versions_prefer",
39304
+ "tags": [
39305
+ "invoices"
39306
+ ],
39307
+ "summary": "Bevorzugte Anzeige wählen; rechtliche Berichtigungskette bleibt erhalten",
39308
+ "description": "Bevorzugte Anzeige wählen; rechtliche Berichtigungskette bleibt erhalten",
39309
+ "responses": {
39310
+ "200": {
39311
+ "description": "JSON response",
39312
+ "content": {
39313
+ "application/json": {
39314
+ "schema": {
39315
+ "type": "object",
39316
+ "properties": {
39317
+ "success": {
39318
+ "type": "boolean"
39319
+ },
39320
+ "message": {
39321
+ "anyOf": [
39322
+ {
39323
+ "type": "string"
39324
+ },
39325
+ {
39326
+ "type": "null"
39327
+ }
39328
+ ]
39329
+ },
39330
+ "code": {
39331
+ "anyOf": [
39332
+ {
39333
+ "type": "string"
39334
+ },
39335
+ {
39336
+ "type": "null"
39337
+ }
39338
+ ]
39339
+ },
39340
+ "data": {
39341
+ "anyOf": [
39342
+ {
39343
+ "type": "object",
39344
+ "properties": {
39345
+ "versionId": {
39346
+ "type": "integer",
39347
+ "exclusiveMinimum": 0
39348
+ }
39349
+ },
39350
+ "required": [
39351
+ "versionId"
39352
+ ],
39353
+ "additionalProperties": false
39354
+ },
39355
+ {
39356
+ "type": "null"
39357
+ }
39358
+ ]
39359
+ }
39360
+ },
39361
+ "required": [
39362
+ "success",
39363
+ "data"
39364
+ ],
39365
+ "additionalProperties": false
39366
+ }
39367
+ }
39368
+ }
39369
+ }
39370
+ },
39371
+ "parameters": [
39372
+ {
39373
+ "name": "invoiceId",
39374
+ "in": "path",
39375
+ "required": true,
39376
+ "schema": {
39377
+ "type": "integer",
39378
+ "exclusiveMinimum": 0
39379
+ }
39380
+ },
39381
+ {
39382
+ "name": "companyId",
39383
+ "in": "query",
39384
+ "required": true,
39385
+ "schema": {
39386
+ "type": "integer",
39387
+ "exclusiveMinimum": 0
39388
+ }
39389
+ }
39390
+ ],
39391
+ "requestBody": {
39392
+ "required": true,
39393
+ "content": {
39394
+ "application/json": {
39395
+ "schema": {
39396
+ "type": "object",
39397
+ "properties": {
39398
+ "versionId": {
39399
+ "type": "integer",
39400
+ "exclusiveMinimum": 0
39401
+ }
39402
+ },
39403
+ "required": [
39404
+ "versionId"
39405
+ ],
39406
+ "additionalProperties": false
39407
+ }
39408
+ }
39409
+ }
39410
+ },
39411
+ "security": [
39412
+ {
39413
+ "frontendBearer": []
39414
+ }
39415
+ ],
39416
+ "x-transport": "http"
39417
+ }
39418
+ },
39419
+ "/invoices/issuer-corrections/preview": {
39420
+ "post": {
39421
+ "operationId": "invoices_issuer_preview",
39422
+ "tags": [
39423
+ "invoices"
39424
+ ],
39425
+ "summary": "Steuernummer-Berichtigung anhand veröffentlichter Ausstellerdaten prüfen",
39426
+ "description": "Steuernummer-Berichtigung anhand veröffentlichter Ausstellerdaten prüfen",
39427
+ "responses": {
39428
+ "200": {
39429
+ "description": "JSON response",
39430
+ "content": {
39431
+ "application/json": {
39432
+ "schema": {
39433
+ "type": "object",
39434
+ "properties": {
39435
+ "success": {
39436
+ "type": "boolean"
39437
+ },
39438
+ "message": {
39439
+ "anyOf": [
39440
+ {
39441
+ "type": "string"
39442
+ },
39443
+ {
39444
+ "type": "null"
39445
+ }
39446
+ ]
39447
+ },
39448
+ "code": {
39449
+ "anyOf": [
39450
+ {
39451
+ "type": "string"
39452
+ },
39453
+ {
39454
+ "type": "null"
39455
+ }
39456
+ ]
39457
+ },
39458
+ "data": {
39459
+ "anyOf": [
39460
+ {
39461
+ "type": "object",
39462
+ "properties": {
39463
+ "dateBasis": {
39464
+ "type": "string"
39465
+ },
39466
+ "results": {
39467
+ "type": "array",
39468
+ "items": {
39469
+ "type": "object",
39470
+ "properties": {
39471
+ "invoiceId": {
39472
+ "type": "number"
39473
+ },
39474
+ "invoiceNumber": {
39475
+ "type": "string"
39476
+ },
39477
+ "status": {
39478
+ "type": "string"
39479
+ },
39480
+ "invoiceDate": {
39481
+ "anyOf": [
39482
+ {
39483
+ "type": "string",
39484
+ "format": "date-time"
39485
+ },
39486
+ {
39487
+ "type": "string"
39488
+ }
39489
+ ]
39490
+ },
39491
+ "original": {
39492
+ "anyOf": [
39493
+ {
39494
+ "type": "string"
39495
+ },
39496
+ {
39497
+ "type": "null"
39498
+ }
39499
+ ]
39500
+ },
39501
+ "replacement": {
39502
+ "type": "string"
39503
+ },
39504
+ "formatNotes": {
39505
+ "type": "array",
39506
+ "items": {
39507
+ "type": "string"
39508
+ }
39509
+ },
39510
+ "archived": {
39511
+ "type": "boolean"
39512
+ },
39513
+ "revision": {
39514
+ "anyOf": [
39515
+ {
39516
+ "type": "number"
39517
+ },
39518
+ {
39519
+ "type": "null"
39520
+ }
39521
+ ]
39522
+ },
39523
+ "format": {
39524
+ "type": "string",
39525
+ "enum": [
39526
+ "pdf",
39527
+ "cii"
39528
+ ]
39529
+ },
39530
+ "exclusion": {
39531
+ "anyOf": [
39532
+ {
39533
+ "type": "string"
39534
+ },
39535
+ {
39536
+ "type": "null"
39537
+ }
39538
+ ]
39539
+ },
39540
+ "expectedHash": {
39541
+ "anyOf": [
39542
+ {
39543
+ "type": "string"
39544
+ },
39545
+ {
39546
+ "type": "null"
39547
+ }
39548
+ ]
39549
+ }
39550
+ },
39551
+ "required": [
39552
+ "invoiceId",
39553
+ "invoiceNumber",
39554
+ "status",
39555
+ "invoiceDate",
39556
+ "original",
39557
+ "replacement",
39558
+ "formatNotes",
39559
+ "archived",
39560
+ "revision",
39561
+ "format",
39562
+ "exclusion",
39563
+ "expectedHash"
39564
+ ],
39565
+ "additionalProperties": false
39566
+ }
39567
+ }
39568
+ },
39569
+ "required": [
39570
+ "dateBasis",
39571
+ "results"
39572
+ ],
39573
+ "additionalProperties": false
39574
+ },
39575
+ {
39576
+ "type": "null"
39577
+ }
39578
+ ]
39579
+ }
39580
+ },
39581
+ "required": [
39582
+ "success",
39583
+ "data"
39584
+ ],
39585
+ "additionalProperties": false
39586
+ }
39587
+ }
39588
+ }
39589
+ }
39590
+ },
39591
+ "parameters": [
39592
+ {
39593
+ "name": "companyId",
39594
+ "in": "query",
39595
+ "required": true,
39596
+ "schema": {
39597
+ "type": "integer",
39598
+ "exclusiveMinimum": 0
39599
+ }
39600
+ }
39601
+ ],
39602
+ "requestBody": {
39603
+ "required": true,
39604
+ "content": {
39605
+ "application/json": {
39606
+ "schema": {
39607
+ "type": "object",
39608
+ "properties": {
39609
+ "from": {
39610
+ "type": "string",
39611
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
39612
+ },
39613
+ "through": {
39614
+ "type": "string",
39615
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
39616
+ },
39617
+ "original": {
39618
+ "type": "string",
39619
+ "minLength": 1,
39620
+ "maxLength": 50
39621
+ },
39622
+ "replacement": {
39623
+ "type": "string",
39624
+ "minLength": 1,
39625
+ "maxLength": 50,
39626
+ "pattern": "^[0-9 /-]+$"
39627
+ }
39628
+ },
39629
+ "required": [
39630
+ "from",
39631
+ "through",
39632
+ "original",
39633
+ "replacement"
39634
+ ],
39635
+ "additionalProperties": false
39636
+ }
39637
+ }
39638
+ }
39639
+ },
39640
+ "security": [
39641
+ {
39642
+ "frontendBearer": []
39643
+ }
39644
+ ],
39645
+ "x-transport": "http"
39646
+ }
39647
+ },
39648
+ "/invoices/issuer-corrections/runs": {
39649
+ "post": {
39650
+ "operationId": "invoices_issuer_start",
39651
+ "tags": [
39652
+ "invoices"
39653
+ ],
39654
+ "summary": "Geprüfte PDF- oder CII-Steuernummer-Berichtigung ohne automatische Zustellung starten",
39655
+ "description": "Geprüfte PDF- oder CII-Steuernummer-Berichtigung ohne automatische Zustellung starten",
39656
+ "responses": {
39657
+ "200": {
39658
+ "description": "JSON response",
39659
+ "content": {
39660
+ "application/json": {
39661
+ "schema": {
39662
+ "type": "object",
39663
+ "properties": {
39664
+ "success": {
39665
+ "type": "boolean"
39666
+ },
39667
+ "message": {
39668
+ "anyOf": [
39669
+ {
39670
+ "type": "string"
39671
+ },
39672
+ {
39673
+ "type": "null"
39674
+ }
39675
+ ]
39676
+ },
39677
+ "code": {
39678
+ "anyOf": [
39679
+ {
39680
+ "type": "string"
39681
+ },
39682
+ {
39683
+ "type": "null"
39684
+ }
39685
+ ]
39686
+ },
39687
+ "data": {
39688
+ "anyOf": [
39689
+ {
39690
+ "type": "object",
39691
+ "properties": {
39692
+ "runId": {
39693
+ "type": "number"
39694
+ }
39695
+ },
39696
+ "required": [
39697
+ "runId"
39698
+ ],
39699
+ "additionalProperties": false
39700
+ },
39701
+ {
39702
+ "type": "null"
39703
+ }
39704
+ ]
39705
+ }
39706
+ },
39707
+ "required": [
39708
+ "success",
39709
+ "data"
39710
+ ],
39711
+ "additionalProperties": false
39712
+ }
39713
+ }
39714
+ }
39715
+ }
39716
+ },
39717
+ "parameters": [
39718
+ {
39719
+ "name": "companyId",
39720
+ "in": "query",
39721
+ "required": true,
39722
+ "schema": {
39723
+ "type": "integer",
39724
+ "exclusiveMinimum": 0
39725
+ }
39726
+ }
39727
+ ],
39728
+ "requestBody": {
39729
+ "required": true,
39730
+ "content": {
39731
+ "application/json": {
39732
+ "schema": {
39733
+ "type": "object",
39734
+ "properties": {
39735
+ "requestKey": {
39736
+ "type": "string"
39737
+ },
39738
+ "replacement": {
39739
+ "type": "string",
39740
+ "minLength": 1,
39741
+ "maxLength": 50,
39742
+ "pattern": "^[0-9 /-]+$"
39743
+ },
39744
+ "reason": {
39745
+ "type": "string",
39746
+ "minLength": 10,
39747
+ "maxLength": 1000
39748
+ },
39749
+ "confirmsHistoricalError": {
39750
+ "const": true
39751
+ },
39752
+ "confirmsPdfFormPermitted": {
39753
+ "type": "boolean"
39754
+ },
39755
+ "items": {
39756
+ "type": "array",
39757
+ "items": {
39758
+ "type": "object",
39759
+ "properties": {
39760
+ "invoiceId": {
39761
+ "type": "integer",
39762
+ "exclusiveMinimum": 0
39763
+ },
39764
+ "expectedHash": {
39765
+ "type": "string",
39766
+ "pattern": "^[a-f0-9]{64}$"
39767
+ }
39768
+ },
39769
+ "required": [
39770
+ "invoiceId",
39771
+ "expectedHash"
39772
+ ],
39773
+ "additionalProperties": false
39774
+ }
39775
+ }
39776
+ },
39777
+ "required": [
39778
+ "requestKey",
39779
+ "replacement",
39780
+ "reason",
39781
+ "confirmsHistoricalError",
39782
+ "confirmsPdfFormPermitted",
39783
+ "items"
39784
+ ],
39785
+ "additionalProperties": false
39786
+ }
39787
+ }
39788
+ }
39789
+ },
39790
+ "security": [
39791
+ {
39792
+ "frontendBearer": []
39793
+ }
39794
+ ],
39795
+ "x-transport": "http"
39796
+ },
39797
+ "get": {
39798
+ "operationId": "invoices_issuer_runs",
39799
+ "tags": [
39800
+ "invoices"
39801
+ ],
39802
+ "summary": "Eigene gespeicherte Berichtigungsläufe wiederfinden",
39803
+ "description": "Eigene gespeicherte Berichtigungsläufe wiederfinden",
39804
+ "responses": {
39805
+ "200": {
39806
+ "description": "JSON response",
39807
+ "content": {
39808
+ "application/json": {
39809
+ "schema": {
39810
+ "type": "object",
39811
+ "properties": {
39812
+ "success": {
39813
+ "type": "boolean"
39814
+ },
39815
+ "message": {
39816
+ "anyOf": [
39817
+ {
39818
+ "type": "string"
39819
+ },
39820
+ {
39821
+ "type": "null"
39822
+ }
39823
+ ]
39824
+ },
39825
+ "code": {
39826
+ "anyOf": [
39827
+ {
39828
+ "type": "string"
39829
+ },
39830
+ {
39831
+ "type": "null"
39832
+ }
39833
+ ]
39834
+ },
39835
+ "data": {
39836
+ "anyOf": [
39837
+ {
39838
+ "type": "array",
39839
+ "items": {
39840
+ "type": "object",
39841
+ "properties": {
39842
+ "id": {
39843
+ "type": "number"
39844
+ },
39845
+ "createdAt": {
39846
+ "anyOf": [
39847
+ {
39848
+ "type": "string",
39849
+ "format": "date-time"
39850
+ },
39851
+ {
39852
+ "type": "string"
39853
+ }
39854
+ ]
39855
+ },
39856
+ "reason": {
39857
+ "type": "string"
39858
+ }
39859
+ },
39860
+ "required": [
39861
+ "id",
39862
+ "createdAt",
39863
+ "reason"
39864
+ ],
39865
+ "additionalProperties": false
39866
+ }
39867
+ },
39868
+ {
39869
+ "type": "null"
39870
+ }
39871
+ ]
39872
+ }
39873
+ },
39874
+ "required": [
39875
+ "success",
39876
+ "data"
39877
+ ],
39878
+ "additionalProperties": false
39879
+ }
39880
+ }
39881
+ }
39882
+ }
39883
+ },
39884
+ "parameters": [
39885
+ {
39886
+ "name": "companyId",
39887
+ "in": "query",
39888
+ "required": true,
39889
+ "schema": {
39890
+ "type": "integer",
39891
+ "exclusiveMinimum": 0
39892
+ }
39893
+ }
39894
+ ],
39895
+ "security": [
39896
+ {
39897
+ "frontendBearer": []
39898
+ }
39899
+ ],
39900
+ "x-transport": "http"
39901
+ }
39902
+ },
39903
+ "/invoices/issuer-corrections/runs/:runId": {
39904
+ "get": {
39905
+ "operationId": "invoices_issuer_result",
39906
+ "tags": [
39907
+ "invoices"
39908
+ ],
39909
+ "summary": "Ergebnisse und Teilfehler des Berichtigungslaufs",
39910
+ "description": "Ergebnisse und Teilfehler des Berichtigungslaufs",
39911
+ "responses": {
39912
+ "200": {
39913
+ "description": "JSON response",
39914
+ "content": {
39915
+ "application/json": {
39916
+ "schema": {
39917
+ "type": "object",
39918
+ "properties": {
39919
+ "success": {
39920
+ "type": "boolean"
39921
+ },
39922
+ "message": {
39923
+ "anyOf": [
39924
+ {
39925
+ "type": "string"
39926
+ },
39927
+ {
39928
+ "type": "null"
39929
+ }
39930
+ ]
39931
+ },
39932
+ "code": {
39933
+ "anyOf": [
39934
+ {
39935
+ "type": "string"
39936
+ },
39937
+ {
39938
+ "type": "null"
39939
+ }
39940
+ ]
39941
+ },
39942
+ "data": {
39943
+ "anyOf": [
39944
+ {
39945
+ "type": "object",
39946
+ "properties": {
39947
+ "counts": {
39948
+ "type": "object",
39949
+ "properties": {
39950
+ "total": {
39951
+ "type": "number"
39952
+ },
39953
+ "pending": {
39954
+ "type": "number"
39955
+ },
39956
+ "done": {
39957
+ "type": "number"
39958
+ },
39959
+ "failed": {
39960
+ "type": "number"
39961
+ },
39962
+ "restricted": {
39963
+ "type": "number"
39964
+ }
39965
+ },
39966
+ "required": [
39967
+ "total",
39968
+ "pending",
39969
+ "done",
39970
+ "failed",
39971
+ "restricted"
39972
+ ],
39973
+ "additionalProperties": false
39974
+ },
39975
+ "run": {
39976
+ "type": "object",
39977
+ "properties": {
39978
+ "id": {
39979
+ "type": "number"
39980
+ },
39981
+ "managingCompanyId": {
39982
+ "type": "number"
39983
+ },
39984
+ "actorUserId": {
39985
+ "type": "number"
39986
+ },
39987
+ "reason": {
39988
+ "type": "string"
39989
+ },
39990
+ "replacement": {
39991
+ "type": "string"
39992
+ },
39993
+ "createdAt": {
39994
+ "anyOf": [
39995
+ {
39996
+ "type": "string",
39997
+ "format": "date-time"
39998
+ },
39999
+ {
40000
+ "type": "string"
40001
+ }
40002
+ ]
40003
+ }
40004
+ },
40005
+ "required": [
40006
+ "id",
40007
+ "managingCompanyId",
40008
+ "actorUserId",
40009
+ "reason",
40010
+ "replacement",
40011
+ "createdAt"
40012
+ ],
40013
+ "additionalProperties": false
40014
+ },
40015
+ "items": {
40016
+ "type": "array",
40017
+ "items": {
40018
+ "type": "object",
40019
+ "properties": {
40020
+ "invoiceNumber": {
40021
+ "type": "string"
40022
+ },
40023
+ "item": {
40024
+ "type": "object",
40025
+ "properties": {
40026
+ "id": {
40027
+ "type": "number"
40028
+ },
40029
+ "invoiceId": {
40030
+ "type": "number"
40031
+ },
40032
+ "status": {
40033
+ "type": "string"
40034
+ },
40035
+ "error": {
40036
+ "anyOf": [
40037
+ {
40038
+ "type": "string"
40039
+ },
40040
+ {
40041
+ "type": "null"
40042
+ }
40043
+ ]
40044
+ },
40045
+ "versionId": {
40046
+ "anyOf": [
40047
+ {
40048
+ "type": "number"
40049
+ },
40050
+ {
40051
+ "type": "null"
40052
+ }
40053
+ ]
40054
+ },
40055
+ "updatedAt": {
40056
+ "anyOf": [
40057
+ {
40058
+ "type": "string",
40059
+ "format": "date-time"
40060
+ },
40061
+ {
40062
+ "type": "string"
40063
+ }
40064
+ ]
40065
+ }
40066
+ },
40067
+ "required": [
40068
+ "id",
40069
+ "invoiceId",
40070
+ "status",
40071
+ "error",
40072
+ "versionId",
40073
+ "updatedAt"
40074
+ ],
40075
+ "additionalProperties": false
40076
+ }
40077
+ },
40078
+ "required": [
40079
+ "invoiceNumber",
40080
+ "item"
40081
+ ],
40082
+ "additionalProperties": false
40083
+ }
40084
+ }
40085
+ },
40086
+ "required": [
40087
+ "counts",
40088
+ "run",
40089
+ "items"
40090
+ ],
40091
+ "additionalProperties": false
40092
+ },
40093
+ {
40094
+ "type": "null"
40095
+ }
40096
+ ]
40097
+ }
40098
+ },
40099
+ "required": [
40100
+ "success",
40101
+ "data"
40102
+ ],
40103
+ "additionalProperties": false
40104
+ }
40105
+ }
40106
+ }
40107
+ }
40108
+ },
40109
+ "parameters": [
40110
+ {
40111
+ "name": "runId",
40112
+ "in": "path",
40113
+ "required": true,
40114
+ "schema": {
40115
+ "type": "integer",
40116
+ "exclusiveMinimum": 0
40117
+ }
40118
+ },
40119
+ {
40120
+ "name": "companyId",
40121
+ "in": "query",
40122
+ "required": true,
40123
+ "schema": {
40124
+ "type": "integer",
40125
+ "exclusiveMinimum": 0
40126
+ }
40127
+ }
40128
+ ],
40129
+ "security": [
40130
+ {
40131
+ "frontendBearer": []
40132
+ }
40133
+ ],
40134
+ "x-transport": "http"
40135
+ }
40136
+ },
40137
+ "/invoices/issuer-corrections/runs/:runId/retry": {
40138
+ "post": {
40139
+ "operationId": "invoices_issuer_retry",
40140
+ "tags": [
40141
+ "invoices"
40142
+ ],
40143
+ "summary": "Fehlgeschlagene Einträge unter erneuter Prüfung wiederaufnehmen",
40144
+ "description": "Fehlgeschlagene Einträge unter erneuter Prüfung wiederaufnehmen",
40145
+ "responses": {
40146
+ "200": {
40147
+ "description": "JSON response",
40148
+ "content": {
40149
+ "application/json": {
40150
+ "schema": {
40151
+ "type": "object",
40152
+ "properties": {
40153
+ "success": {
40154
+ "type": "boolean"
40155
+ },
40156
+ "message": {
40157
+ "anyOf": [
40158
+ {
40159
+ "type": "string"
40160
+ },
40161
+ {
40162
+ "type": "null"
40163
+ }
40164
+ ]
40165
+ },
40166
+ "code": {
40167
+ "anyOf": [
40168
+ {
40169
+ "type": "string"
40170
+ },
40171
+ {
40172
+ "type": "null"
40173
+ }
40174
+ ]
40175
+ },
40176
+ "data": {
40177
+ "anyOf": [
40178
+ {
40179
+ "type": "object",
40180
+ "properties": {
40181
+ "runId": {
40182
+ "type": "number"
40183
+ }
40184
+ },
40185
+ "required": [
40186
+ "runId"
40187
+ ],
40188
+ "additionalProperties": false
40189
+ },
40190
+ {
40191
+ "type": "null"
40192
+ }
40193
+ ]
40194
+ }
40195
+ },
40196
+ "required": [
40197
+ "success",
40198
+ "data"
40199
+ ],
40200
+ "additionalProperties": false
40201
+ }
40202
+ }
40203
+ }
40204
+ }
40205
+ },
40206
+ "parameters": [
40207
+ {
40208
+ "name": "runId",
40209
+ "in": "path",
40210
+ "required": true,
40211
+ "schema": {
40212
+ "type": "integer",
40213
+ "exclusiveMinimum": 0
40214
+ }
40215
+ },
40216
+ {
40217
+ "name": "companyId",
40218
+ "in": "query",
40219
+ "required": true,
40220
+ "schema": {
40221
+ "type": "integer",
40222
+ "exclusiveMinimum": 0
40223
+ }
40224
+ }
40225
+ ],
40226
+ "requestBody": {
40227
+ "required": true,
40228
+ "content": {
40229
+ "application/json": {
40230
+ "schema": {
40231
+ "type": "object",
40232
+ "properties": {},
40233
+ "additionalProperties": false
40234
+ }
40235
+ }
40236
+ }
40237
+ },
40238
+ "security": [
40239
+ {
40240
+ "frontendBearer": []
40241
+ }
40242
+ ],
40243
+ "x-transport": "http"
40244
+ }
40245
+ },
38659
40246
  "/invoices/dunning/suggestions": {
38660
40247
  "get": {
38661
40248
  "operationId": "invoice_dunning_suggestions",