@firmenakte/api-client 2.46.0 → 2.48.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.
@@ -15,7 +15,7 @@ export type AccountLiability = {
15
15
  };
16
16
  export type AddBillingPartnerRequest = {
17
17
  /**
18
- * customer or supplier: the role the partner takes on. A supplier who becomes a customer is Kunde und Lieferant.
18
+ * customer or supplier: the number the partner gets, a Kundennummer or a Lieferantennummer. A supplier who becomes a customer keeps his Lieferantennummer.
19
19
  */
20
20
  role: string;
21
21
  /**
@@ -26,6 +26,28 @@ export type AddBillingPartnerRequest = {
26
26
  * The name of a partner outside the register (a private person, a company abroad).
27
27
  */
28
28
  name?: null | string;
29
+ /**
30
+ * A partner outside the register: values of this workspace's fields by field key, set with his own entry. A Kunden- or Lieferantennummer given here follows the rules of number.
31
+ */
32
+ values?: null | {
33
+ [key: string]: null | string | number | boolean | {
34
+ cents: number;
35
+ currency?: string;
36
+ } | {
37
+ number: number;
38
+ label: string;
39
+ };
40
+ };
41
+ /**
42
+ * A partner outside the register: values of Firmenakte fields by field catalog path, for example {"address": "Hauptplatz 1", "seat.zip": "8430", "seat.city": "Leibnitz"}.
43
+ */
44
+ sourceValues?: null | {
45
+ [key: string]: null | string | number | boolean;
46
+ };
47
+ /**
48
+ * The Kunden- or Lieferantennummer to give instead of the next one, as it reads (K-0042) or bare (42); refused when another partner has it. Empty gives the next.
49
+ */
50
+ number?: null | string;
29
51
  };
30
52
  export type AddLetterAttachmentBody = {
31
53
  fileName: string;
@@ -182,7 +204,7 @@ export type ArticleDto = {
182
204
  priceCents: number;
183
205
  vatRate: number;
184
206
  /**
185
- * The Artikelnummer, if it has one.
207
+ * The Artikelnummer: A- and at least four digits, or an older one typed freely.
186
208
  */
187
209
  number?: null | string;
188
210
  /**
@@ -220,7 +242,7 @@ export type BankAccountDto = {
220
242
  */
221
243
  listId?: null | string;
222
244
  /**
223
- * bank, cash, card or provider. It only names the Konto: every kind takes statements, bookings by hand and a connection.
245
+ * bank, cash, card, provider or private (the owner's own money, for what was paid privately). It only names the Konto: every kind takes statements, bookings by hand and a connection.
224
246
  */
225
247
  kind: string;
226
248
  /**
@@ -242,9 +264,47 @@ export type BankAssignInput = {
242
264
  */
243
265
  targetId?: null | string;
244
266
  /**
245
- * noReceipt: why there is none (required).
267
+ * noReceipt: the old free text, read as a category: Bankgebühr, Steuer, Gehalt, Privat (a private booking) and the category labels; send category instead.
246
268
  */
247
269
  reason?: null | string;
270
+ /**
271
+ * noReceipt (required, or a reason): what the payment is, and so its Beleg: bank (Kontoführung, Spesen, Zinsen; the Kontoauszug), social (SVS, ÖGK; the Vorschreibung), staff (Gehalt, Lohn, Lohnabgaben; the Lohnabrechnung) or tax (the Finanzamt: USt, ESt, KöSt; the Buchungsmitteilung). The payment waits until its Beleg is there. receipt: social, staff or tax when the receipt is that document; the payment then counts by its category.
272
+ */
273
+ category?: 'bank' | 'social' | 'staff' | 'tax';
274
+ };
275
+ export type BankBelegDto = {
276
+ /**
277
+ * present or missing.
278
+ */
279
+ status: string;
280
+ /**
281
+ * document (an invoice, a receipt, a Vorschreibung, Buchungsmitteilung or Lohnabrechnung), statement (the Konto's Kontoauszug of the month), own (an Eigenbeleg) or statements (a transfer: both Kontoauszüge).
282
+ */
283
+ kind: string;
284
+ /**
285
+ * What the Beleg is called: Beleg, Rechnung, Kontoauszug, Vorschreibung, Buchungsmitteilung, Lohnabrechnung, Eigenbeleg or Kontoauszüge.
286
+ */
287
+ name: string;
288
+ /**
289
+ * The status as the lists show it: Beleg fehlt, Kontoauszug fehlt, Vorschreibung fehlt, Buchungsmitteilung fehlt, Lohnabrechnung fehlt; once there the document's number, Kontoauszug November 2026, Eigenbeleg erstellt or Kontoauszüge.
290
+ */
291
+ label: string;
292
+ /**
293
+ * statement: the month whose Kontoauszug it is, YYYY-MM.
294
+ */
295
+ month?: null | string;
296
+ /**
297
+ * statement: the Kontoauszug that covers it; null while it is missing.
298
+ */
299
+ statementId?: null | string;
300
+ /**
301
+ * While missing: what to do, such as Kontoauszug November 2026 ablegen, Vorschreibung hochladen or Beleg zuordnen.
302
+ */
303
+ action?: null | string;
304
+ /**
305
+ * The Eigenbeleg the export writes (Eigenbelege.csv), by its number such as EB-20261110-a1b2c3: for a private booking, and for every booking on the Konto Privat, whose money paid in is an Einlage and taken out an Entnahme. Null otherwise.
306
+ */
307
+ eigenbeleg?: null | string;
248
308
  };
249
309
  export type BankBookingInput = {
250
310
  /**
@@ -363,11 +423,11 @@ export type BankMatchDto = {
363
423
  */
364
424
  id?: null | string;
365
425
  /**
366
- * What it is: an invoice's number, the account's name, Privat, Kein Beleg.
426
+ * What it is: an invoice's number, Umbuchung with the account's name, Privat, or the category such as Bank or Sozialversicherung (with the document's number once its Beleg is assigned). Whether its Beleg is there says beleg.
367
427
  */
368
428
  label: string;
369
429
  /**
370
- * Why there is no receipt.
430
+ * noReceipt, and receipt with a category: the category's German label (Bank, Sozialversicherung, Personal, Finanzamt). Read category instead.
371
431
  */
372
432
  reason?: null | string;
373
433
  /**
@@ -390,6 +450,10 @@ export type BankMatchDto = {
390
450
  * What fits an invoice or receipt, as in BankCandidateDto.reasons; a transfer by IBAN is iban.
391
451
  */
392
452
  reasons: Array<string>;
453
+ /**
454
+ * What the payment is, and so what its Beleg is: bank (Kontoführung, Spesen, Zinsen; an expense; Beleg the Kontoauszug), social (SVS, ÖGK; an expense; Beleg the Vorschreibung), staff (Gehalt, Lohn, Lohnabgaben; an expense; Beleg the Lohnabrechnung) or tax (the Finanzamt: neither expense nor income, shown beside the USt; Beleg the Buchungsmitteilung). Set on noReceipt, and on receipt when the receipt is that document.
455
+ */
456
+ category?: null | string;
393
457
  };
394
458
  export type BankSettingsDto = {
395
459
  /**
@@ -397,6 +461,57 @@ export type BankSettingsDto = {
397
461
  */
398
462
  mode: string;
399
463
  };
464
+ export type BankStatementDto = {
465
+ id: string;
466
+ accountId: string;
467
+ /**
468
+ * The CAMT number such as 007/2026; null for one filed as a document.
469
+ */
470
+ number?: null | string;
471
+ periodFrom: string;
472
+ periodTo: string;
473
+ /**
474
+ * Its file; null for a CAMT statement read before files were kept.
475
+ */
476
+ fileId?: null | string;
477
+ /**
478
+ * How many of the Konto's bank fees in its period it is the Beleg of.
479
+ */
480
+ covers: number;
481
+ };
482
+ export type BankTargetPaymentDto = {
483
+ id: string;
484
+ accountId: string;
485
+ accountName: string;
486
+ /**
487
+ * The Konto's kind: bank, cash, card, provider or private.
488
+ */
489
+ accountKind: string;
490
+ bookingDate: string;
491
+ /**
492
+ * Signed, in cents: money in is positive.
493
+ */
494
+ amountCents: number;
495
+ currency: string;
496
+ counterparty: BankCounterpartyDto;
497
+ reference?: null | string;
498
+ /**
499
+ * assigned (it pays the target), proposed (a proposal for the target waits for a person) or candidate (it waits and can pay the target).
500
+ */
501
+ state: string;
502
+ /**
503
+ * What fits, as in BankCandidateDto.reasons; empty for an assigned booking and a search hit that only fits the text.
504
+ */
505
+ reasons: Array<string>;
506
+ /**
507
+ * The text of the booking's reference that names the target, to highlight.
508
+ */
509
+ mark?: null | string;
510
+ /**
511
+ * A part payment: what of the target stays open after this booking, in cents.
512
+ */
513
+ remainderCents?: null | number;
514
+ };
400
515
  export type BankTransactionDto = {
401
516
  id: string;
402
517
  accountId: string;
@@ -442,9 +557,10 @@ export type BankTransactionDto = {
442
557
  match?: null | BankMatchDto;
443
558
  createdAt: string;
444
559
  /**
445
- * While nothing is assigned: the invoices and receipts it can pay, best first, at most four; a proposal's target first. Empty once assigned.
560
+ * While nothing is assigned, or its Vorschreibung, Buchungsmitteilung or Lohnabrechnung is missing: the invoices and receipts it can take, best first, at most four; a proposal's target first. Empty once its Beleg is there.
446
561
  */
447
562
  candidates: Array<BankCandidateDto>;
563
+ beleg?: null | BankBelegDto;
448
564
  };
449
565
  export type BankTransactionInput = {
450
566
  /**
@@ -544,6 +660,11 @@ export type BillingDocumentDto = {
544
660
  * When it last changed.
545
661
  */
546
662
  changedAt: string;
663
+ /**
664
+ * What is printed on the document, as one record; issuer, recipient, number, the dates, the amounts and vatLines repeat it until v3.
665
+ */
666
+ content: ReceiptContent;
667
+ readContent?: null | ReceiptContent;
547
668
  };
548
669
  export type BillingDocumentFileDto = {
549
670
  id: string;
@@ -644,13 +765,17 @@ export type BillingExportDto = {
644
765
  */
645
766
  downloadedAt?: null | string;
646
767
  /**
647
- * Issued invoices and receipts in it without a Sachkonto: missing from the DATEV Buchungsstapel.
768
+ * Issued invoices and receipts in it without a Sachkonto: missing from the DATEV Buchungsstapel. A Vorschreibung, Buchungsmitteilung or Lohnabrechnung of a payment booked by its category is not booked from the document and never counts here.
648
769
  */
649
770
  unaccountedCount?: number;
650
771
  /**
651
772
  * Of the documents, the invoices the workspace issued; the rest are receipts.
652
773
  */
653
774
  invoiceCount?: number;
775
+ /**
776
+ * Bookings in it that are assigned but miss their Beleg: a Kontoauszug, Vorschreibung, Buchungsmitteilung or Lohnabrechnung.
777
+ */
778
+ missingCount?: number;
654
779
  };
655
780
  export type BillingListsDto = {
656
781
  partners: string;
@@ -725,7 +850,7 @@ export type BillingMonthDto = {
725
850
  };
726
851
  export type BillingNumbersDto = {
727
852
  /**
728
- * Field key of the Rolle (Kunde, Lieferant).
853
+ * Always empty: there is no Rolle field. A partner with a Kundennummer is a Kunde, one with a Lieferantennummer a Lieferant.
729
854
  */
730
855
  roleField?: null | string;
731
856
  /**
@@ -754,6 +879,10 @@ export type BillingNumbersDto = {
754
879
  * Field key of the Rechnungsanschrift, a text field: name, street, postal code and city, country and UID line by line.
755
880
  */
756
881
  addressField?: null | string;
882
+ /**
883
+ * The Artikelnummer the next Artikel gets when none is typed, such as A-0001.
884
+ */
885
+ nextArticleNumber?: null | string;
757
886
  };
758
887
  export type BillingPartnerDefaultsDto = {
759
888
  /**
@@ -790,7 +919,7 @@ export type BillingPartnerDto = {
790
919
  id: string;
791
920
  name: string;
792
921
  /**
793
- * Kunde, Lieferant or Kunde und Lieferant.
922
+ * Kunde, Lieferant or Kunde und Lieferant, from the numbers he has: a Kundennummer makes a Kunde, a Lieferantennummer a Lieferant.
794
923
  */
795
924
  role?: null | string;
796
925
  /**
@@ -962,6 +1091,10 @@ export type BillingVatDto = {
962
1091
  * Output less input VAT: positive is owed, negative a credit.
963
1092
  */
964
1093
  payableCents: number;
1094
+ /**
1095
+ * What bookings without a receipt of category tax paid the Finanzamt in the period, in cents: positive is paid, negative refunded. It is neither income nor expense.
1096
+ */
1097
+ taxOfficeCents?: number;
965
1098
  };
966
1099
  export type CamtImportResultDto = {
967
1100
  /**
@@ -1630,7 +1763,7 @@ export type CompanySearchRequest = {
1630
1763
  */
1631
1764
  includeSummary?: boolean;
1632
1765
  /**
1633
- * What the company does, for example Bronzeguss, or a whole description of up to 2000 characters, such as a company's profile text to find similar companies. Ranks by relevance, combines with filters, takes no sort; three credits. Up to eight words also match word by word; a longer text ranks by meaning alone. 503 where unavailable.
1766
+ * What the company does, for example Bronzeguss, or a whole description of up to 2000 characters, such as a company's profile text to find similar companies. Ranks by meaning, combines with filters, takes no sort. 503 where unavailable.
1634
1767
  */
1635
1768
  activity?: null | string;
1636
1769
  /**
@@ -1719,7 +1852,7 @@ export type ContactFieldValue = {
1719
1852
  export type CreateBankAccountRequest = {
1720
1853
  name: string;
1721
1854
  /**
1722
- * Optional; a Kassa has none.
1855
+ * Optional; a Kassa has none. One whose check digits do not add up is refused.
1723
1856
  */
1724
1857
  iban?: null | string;
1725
1858
  /**
@@ -1731,7 +1864,7 @@ export type CreateBankAccountRequest = {
1731
1864
  */
1732
1865
  openingBalanceCents?: number;
1733
1866
  /**
1734
- * bank (default), cash, card or provider.
1867
+ * bank (default), cash, card, provider or private.
1735
1868
  */
1736
1869
  kind?: null | string;
1737
1870
  /**
@@ -1769,6 +1902,10 @@ export type CreateBankTransactionsRequest = {
1769
1902
  * The IBAN of the statement; refused when the Konto has another.
1770
1903
  */
1771
1904
  iban?: null | string;
1905
+ /**
1906
+ * The statement file the rows were read from, base64, as previewBankStatement got it: kept with the statements it records, the Beleg of the Konto's bank fees in their period.
1907
+ */
1908
+ contentBase64?: null | string;
1772
1909
  };
1773
1910
  export type CreateBankTransactionsResult = {
1774
1911
  /**
@@ -1805,6 +1942,7 @@ export type CreateBillingDocumentRequest = {
1805
1942
  * Your own key for this document, unique in the workspace: sending it again returns the stored one.
1806
1943
  */
1807
1944
  externalId?: null | string;
1945
+ content?: null | ReceiptContent;
1808
1946
  };
1809
1947
  export type CreateExportRequest = {
1810
1948
  format: 'csv' | 'xlsx';
@@ -1836,7 +1974,7 @@ export type CreateExportRequest = {
1836
1974
  export type CreateFieldDto = {
1837
1975
  label: string;
1838
1976
  /**
1839
- * Value type: text, one of the options, number, ISO date, boolean, money ({cents, currency}), file (a stored file ID), reference (an entry of targetListId), member (a user ID) or sequence (numbered once by Firmenakte).
1977
+ * Value type: text, one of the options, number, ISO date, boolean, money ({cents, currency}), file (a stored file ID), reference (an entry of targetListId), member (a user ID) or sequence ("next" for the next number, or a typed one no other entry holds).
1840
1978
  */
1841
1979
  type?: 'text' | 'options' | 'number' | 'date' | 'bool' | 'money' | 'file' | 'reference' | 'member' | 'sequence';
1842
1980
  /**
@@ -1887,6 +2025,9 @@ export type CreateLetterRequest = {
1887
2025
  * The bold line in the QR field; takes the same variables as the text. Empty prints „Mehr erfahren“.
1888
2026
  */
1889
2027
  qrText?: null | string;
2028
+ /**
2029
+ * Every Brief counts as Werbung; the Robinsonliste always applies. Ignored on write.
2030
+ */
1890
2031
  advertising?: null | boolean;
1891
2032
  recipients?: null | Array<LetterRecipientRef>;
1892
2033
  /**
@@ -1927,6 +2068,22 @@ export type CreateOwnRecordDto = {
1927
2068
  };
1928
2069
  };
1929
2070
  };
2071
+ export type CreateTargetPaymentRequest = {
2072
+ /**
2073
+ * invoice or receipt.
2074
+ */
2075
+ targetKind: 'invoice' | 'receipt';
2076
+ targetId: string;
2077
+ /**
2078
+ * cash: on the workspace's Kassa (kind cash). private: on its Konto Privat (kind private), so the owner's money paid in counts as Einlage, taken out as Entnahme. Either Konto is created when missing.
2079
+ */
2080
+ method: 'cash' | 'private';
2081
+ bookingDate: string;
2082
+ /**
2083
+ * Signed like a booking, in cents: a receipt paid is negative, an invoice paid positive.
2084
+ */
2085
+ amountCents: number;
2086
+ };
1930
2087
  export type CreditPrices = {
1931
2088
  exportRows: number;
1932
2089
  receiptRead: number;
@@ -1951,6 +2108,11 @@ export type CursorPageOfBankCandidateDto = {
1951
2108
  nextCursor?: null | string;
1952
2109
  total?: null | number;
1953
2110
  };
2111
+ export type CursorPageOfBankTargetPaymentDto = {
2112
+ items: Array<BankTargetPaymentDto>;
2113
+ nextCursor?: null | string;
2114
+ total?: null | number;
2115
+ };
1954
2116
  export type CursorPageOfBankTransactionDto = {
1955
2117
  items: Array<BankTransactionDto>;
1956
2118
  nextCursor?: null | string;
@@ -2378,6 +2540,29 @@ export type FigureRange = {
2378
2540
  min?: null | number;
2379
2541
  max?: null | number;
2380
2542
  };
2543
+ export type FileBankStatementRequest = {
2544
+ accountId: string;
2545
+ /**
2546
+ * The statement, base64: PDF, JPEG, PNG, WebP or HEIC, at most 10 MB.
2547
+ */
2548
+ contentBase64: string;
2549
+ /**
2550
+ * Its file name, such as kontoauszug-2026-11.pdf.
2551
+ */
2552
+ fileName?: null | string;
2553
+ /**
2554
+ * The month it covers, YYYY-MM. Or periodFrom and periodTo.
2555
+ */
2556
+ month?: null | string;
2557
+ /**
2558
+ * The first day it covers, with periodTo, instead of month.
2559
+ */
2560
+ periodFrom?: null | string;
2561
+ /**
2562
+ * The last day it covers.
2563
+ */
2564
+ periodTo?: null | string;
2565
+ };
2381
2566
  export type FilingChange = {
2382
2567
  type: string;
2383
2568
  text?: null | string;
@@ -2814,7 +2999,7 @@ export type InvoiceLine = {
2814
2999
  */
2815
3000
  unitPriceCents: number;
2816
3001
  /**
2817
- * VAT rate in percent: 20, 13, 10 or 0. Ignored for a Kleinunternehmer, who charges none.
3002
+ * VAT rate in percent, from 0 to 100 with at most two decimals; usually 20, 13, 10 or 0. Ignored for a Kleinunternehmer, who charges none.
2818
3003
  */
2819
3004
  vatRate?: number;
2820
3005
  /**
@@ -2829,6 +3014,10 @@ export type InvoiceLine = {
2829
3014
  * What issuing does beyond this invoice: invoice (nothing, the default), article (also change the Artikel articleId names) or newArticle (save it as a new Artikel).
2830
3015
  */
2831
3016
  scope?: null | string;
3017
+ /**
3018
+ * A short note the invoice prints under the position; at most 500 characters.
3019
+ */
3020
+ note?: null | string;
2832
3021
  };
2833
3022
  export type InvoiceMailDto = {
2834
3023
  /**
@@ -2903,6 +3092,9 @@ export type LetterDto = {
2903
3092
  subject: string;
2904
3093
  body: string;
2905
3094
  qrUrl?: null | string;
3095
+ /**
3096
+ * Always true: every Brief counts as Werbung; the Robinsonliste always applies.
3097
+ */
2906
3098
  advertising: boolean;
2907
3099
  recipients: Array<LetterRecipientDto>;
2908
3100
  attachments: Array<LetterAttachmentDto>;
@@ -2940,7 +3132,7 @@ export type LetterDto = {
2940
3132
  */
2941
3133
  ongoing?: boolean;
2942
3134
  /**
2943
- * The budget in credits per calendar month (Europe/Vienna); null is none.
3135
+ * The Monatsbudget in credits per calendar month (Europe/Vienna): set in euros, or BudgetLetters at today's price; null is none. Laufend, it holds only the letters to new matches after the first round (#3776).
2944
3136
  */
2945
3137
  budgetCredits?: null | number;
2946
3138
  /**
@@ -2960,7 +3152,7 @@ export type LetterDto = {
2960
3152
  */
2961
3153
  creditsSpent?: number;
2962
3154
  /**
2963
- * Credits the budget counted in the current period.
3155
+ * Credits the budget counted in the current month; the first round counts not (#3776).
2964
3156
  */
2965
3157
  budgetUsed?: number;
2966
3158
  /**
@@ -2975,6 +3167,26 @@ export type LetterDto = {
2975
3167
  * The Kampagne's Kontaktliste, the companies it sent to; null until its first letter.
2976
3168
  */
2977
3169
  contactListId?: null | string;
3170
+ /**
3171
+ * The Monatsbudget as letters per month, where it was set in letters (#3776); BudgetCredits then follows the price.
3172
+ */
3173
+ budgetLetters?: null | number;
3174
+ /**
3175
+ * Letters the budget counted in the current month (#3776).
3176
+ */
3177
+ budgetUsedLetters?: number;
3178
+ /**
3179
+ * The first round (#3776): the letters charged to what the start found in the Zielgruppe, outside any budget.
3180
+ */
3181
+ firstRoundLetters?: number;
3182
+ /**
3183
+ * What the first round's charged letters cost, in credits.
3184
+ */
3185
+ firstRoundCredits?: number;
3186
+ /**
3187
+ * When the first round was booked; null before.
3188
+ */
3189
+ firstRoundAt?: null | string;
2978
3190
  };
2979
3191
  export type LetterPlanDto = {
2980
3192
  letterId: string;
@@ -3670,7 +3882,7 @@ export type PublicCompany = {
3670
3882
  isDeleted?: null | boolean;
3671
3883
  legalForm?: null | AkteRefLink;
3672
3884
  seat?: null | PublicCompanySeat;
3673
- industry?: null | AkteRefLink;
3885
+ industry?: null | PublicIndustryLink;
3674
3886
  court?: null | AkteRefLink;
3675
3887
  registeredDate?: null | string;
3676
3888
  purpose?: null | string;
@@ -3830,7 +4042,7 @@ export type PublicEntityPublicCompany = {
3830
4042
  isDeleted?: null | boolean;
3831
4043
  legalForm?: null | AkteRefLink;
3832
4044
  seat?: null | PublicCompanySeat;
3833
- industry?: null | AkteRefLink;
4045
+ industry?: null | PublicIndustryLink;
3834
4046
  court?: null | AkteRefLink;
3835
4047
  registeredDate?: null | string;
3836
4048
  purpose?: null | string;
@@ -3957,6 +4169,11 @@ export type PublicHolder = {
3957
4169
  country?: null | string;
3958
4170
  functionCount?: null | number;
3959
4171
  };
4172
+ export type PublicIndustryLink = {
4173
+ ref: string;
4174
+ label?: null | string;
4175
+ source: SourceKey;
4176
+ };
3960
4177
  export type PublicNetwork = {
3961
4178
  depth: number;
3962
4179
  nodes: Array<CompanyNetworkNode>;
@@ -4151,6 +4368,96 @@ export type PublicSourceCapabilities = {
4151
4368
  documents: boolean;
4152
4369
  extracts: boolean;
4153
4370
  };
4371
+ export type ReceiptContent = {
4372
+ /**
4373
+ * Who issues the document: seller, supplier.
4374
+ */
4375
+ issuer: ReceiptParty;
4376
+ /**
4377
+ * Who it is addressed to: buyer, customer.
4378
+ */
4379
+ recipient: ReceiptParty;
4380
+ /**
4381
+ * Invoice number as printed.
4382
+ */
4383
+ number?: null | string;
4384
+ /**
4385
+ * Invoice date.
4386
+ */
4387
+ issueDate?: null | string;
4388
+ /**
4389
+ * Due date, only when printed or clear from the payment terms and the date.
4390
+ */
4391
+ dueDate?: null | string;
4392
+ /**
4393
+ * ISO currency code, e.g. EUR.
4394
+ */
4395
+ currency: string;
4396
+ /**
4397
+ * Net total in cents.
4398
+ */
4399
+ netCents?: null | number;
4400
+ /**
4401
+ * VAT total in cents.
4402
+ */
4403
+ vatCents?: null | number;
4404
+ /**
4405
+ * Gross total in cents: the amount to pay.
4406
+ */
4407
+ grossCents?: null | number;
4408
+ /**
4409
+ * One line per VAT rate, none when the document names no VAT.
4410
+ */
4411
+ vatLines: Array<ReceiptVatLine>;
4412
+ /**
4413
+ * What was sold, in one short line, e.g. Mobilfunk Oktober 2026.
4414
+ */
4415
+ description?: null | string;
4416
+ /**
4417
+ * True when the document states reverse charge (the recipient owes the VAT).
4418
+ */
4419
+ reverseCharge?: null | boolean;
4420
+ /**
4421
+ * How it was paid, only when the document shows it was paid already: bar, Bankomat, Visa …1234.
4422
+ */
4423
+ paidWith?: null | string;
4424
+ };
4425
+ export type ReceiptParty = {
4426
+ /**
4427
+ * Name or company.
4428
+ */
4429
+ name?: null | string;
4430
+ /**
4431
+ * UID number (VAT ID), e.g. ATU12345678.
4432
+ */
4433
+ uid?: null | string;
4434
+ /**
4435
+ * IBAN of the bank account.
4436
+ */
4437
+ iban?: null | string;
4438
+ /**
4439
+ * Firmenbuchnummer, e.g. FN 123456 a.
4440
+ */
4441
+ fnr?: null | string;
4442
+ /**
4443
+ * Address in one line.
4444
+ */
4445
+ address?: null | string;
4446
+ };
4447
+ export type ReceiptVatLine = {
4448
+ /**
4449
+ * VAT rate in percent as printed, from 0 to 100.
4450
+ */
4451
+ rate: number;
4452
+ /**
4453
+ * Net amount at this rate in cents.
4454
+ */
4455
+ netCents: number;
4456
+ /**
4457
+ * VAT at this rate in cents.
4458
+ */
4459
+ vatCents: number;
4460
+ };
4154
4461
  export type RecordChange = {
4155
4462
  /**
4156
4463
  * Source record change event identity; distinct from an entity change ID.
@@ -4286,7 +4593,7 @@ export type SaveArticleRequest = {
4286
4593
  */
4287
4594
  id?: null | string;
4288
4595
  /**
4289
- * Artikelnummer, at most 30 characters.
4596
+ * Artikelnummer as it reads (A-0042) or bare (42); refused when another Artikel has it. Empty gives a new Artikel the next and leaves a saved one's.
4290
4597
  */
4291
4598
  number?: null | string;
4292
4599
  /**
@@ -4377,7 +4684,7 @@ export type SendTemplateBody = {
4377
4684
  */
4378
4685
  companies?: null | Array<string>;
4379
4686
  /**
4380
- * A table (list ID): all its entries, or with entryIds only those.
4687
+ * A list (list ID): all its entries, or with entryIds only those.
4381
4688
  */
4382
4689
  listId?: null | string;
4383
4690
  /**
@@ -4431,7 +4738,7 @@ export type SetEntityValuesDto = {
4431
4738
  [key: string]: null | string | number | boolean;
4432
4739
  };
4433
4740
  };
4434
- export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
4741
+ export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'firmenakte' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
4435
4742
  export type SourceLicense = {
4436
4743
  name: string;
4437
4744
  url?: null | string;
@@ -4531,12 +4838,12 @@ export type UidVerification = {
4531
4838
  export type UpdateBankAccountBody = {
4532
4839
  name?: null | string;
4533
4840
  /**
4534
- * An empty string removes it.
4841
+ * An empty string removes it; one whose check digits do not add up is refused.
4535
4842
  */
4536
4843
  iban?: null | string;
4537
4844
  openingBalanceCents?: null | number;
4538
4845
  /**
4539
- * bank, cash, card or provider.
4846
+ * bank, cash, card, provider or private.
4540
4847
  */
4541
4848
  kind?: null | string;
4542
4849
  /**
@@ -4585,6 +4892,18 @@ export type UpdateBillingDocumentBody = {
4585
4892
  * Replaces the VAT lines.
4586
4893
  */
4587
4894
  vatLines?: null | Array<BillingDocumentVatLineDto>;
4895
+ /**
4896
+ * What was sold, in one short line; an empty text clears it.
4897
+ */
4898
+ description?: null | string;
4899
+ /**
4900
+ * How it was paid, e.g. Visa …1234; an empty text clears it.
4901
+ */
4902
+ paidWith?: null | string;
4903
+ /**
4904
+ * True when the document states reverse charge.
4905
+ */
4906
+ reverseCharge?: null | boolean;
4588
4907
  /**
4589
4908
  * Move it between Eingang and Ausgang.
4590
4909
  */
@@ -4597,6 +4916,7 @@ export type UpdateBillingDocumentBody = {
4597
4916
  * true archives, false takes it back out of the archive.
4598
4917
  */
4599
4918
  archived?: null | boolean;
4919
+ content?: null | ReceiptContent;
4600
4920
  };
4601
4921
  export type UpdateBillingPartnerBody = {
4602
4922
  /**
@@ -4614,6 +4934,14 @@ export type UpdateBillingPartnerDefaultsBody = {
4614
4934
  * Zahlungsziel in days, 0 to 365; empty takes the Absender's.
4615
4935
  */
4616
4936
  paymentDays?: null | number;
4937
+ /**
4938
+ * His Kundennummer, as it reads (K-0042) or bare; refused when another partner has it. Empty leaves it.
4939
+ */
4940
+ customerNumber?: null | string;
4941
+ /**
4942
+ * His Lieferantennummer, as it reads (L-0042) or bare; refused when another partner has it. Empty leaves it.
4943
+ */
4944
+ supplierNumber?: null | string;
4617
4945
  };
4618
4946
  export type UpdateBillingSettingsRequest = {
4619
4947
  sender?: null | SenderSettingsBody;
@@ -4661,6 +4989,9 @@ export type UpdateLetterBody = {
4661
4989
  * The bold line in the QR field; empty removes it, so „Mehr erfahren“ prints.
4662
4990
  */
4663
4991
  qrText?: null | string;
4992
+ /**
4993
+ * Every Brief counts as Werbung; the Robinsonliste always applies. Ignored on write.
4994
+ */
4664
4995
  advertising?: null | boolean;
4665
4996
  recipients?: null | Array<LetterRecipientRef>;
4666
4997
  /**
@@ -4677,9 +5008,17 @@ export type UpdateLetterBody = {
4677
5008
  */
4678
5009
  ongoing?: null | boolean;
4679
5010
  /**
4680
- * The budget in credits per calendar month, at least one letter's price; 0 removes it.
5011
+ * The Monatsbudget in credits per calendar month, at least one letter's price; 0 removes it. Replaces a budget in letters.
4681
5012
  */
4682
5013
  budgetCredits?: null | number;
5014
+ /**
5015
+ * true ends a running or paused Kampagne for good (Beenden): it books nothing more, its letters that still wait are dropped uncharged, and it is sent (fertig).
5016
+ */
5017
+ ended?: null | boolean;
5018
+ /**
5019
+ * The Monatsbudget in letters per calendar month (#3776), kept when the price changes; 0 removes it. Replaces a budget in credits.
5020
+ */
5021
+ budgetLetters?: null | number;
4683
5022
  };
4684
5023
  export type UpdateLetterSetupRequest = {
4685
5024
  budgetCredits?: null | number;
@@ -7592,7 +7931,7 @@ export type ListSourceRecordsData = {
7592
7931
  /**
7593
7932
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7594
7933
  */
7595
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
7934
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'firmenakte' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
7596
7935
  };
7597
7936
  query?: {
7598
7937
  /**
@@ -7662,7 +8001,7 @@ export type ListSourceRecordChangesData = {
7662
8001
  /**
7663
8002
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7664
8003
  */
7665
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
8004
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'firmenakte' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
7666
8005
  };
7667
8006
  query?: {
7668
8007
  /**
@@ -7732,7 +8071,7 @@ export type GetSourceRecordData = {
7732
8071
  /**
7733
8072
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7734
8073
  */
7735
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
8074
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'firmenakte' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
7736
8075
  /**
7737
8076
  * Source record ID returned by this source's records collection; this is not an entity ID.
7738
8077
  */
@@ -7793,7 +8132,7 @@ export type ListRecordObservationsData = {
7793
8132
  /**
7794
8133
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7795
8134
  */
7796
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
8135
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'firmenakte' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
7797
8136
  /**
7798
8137
  * Source record ID returned by this source's records collection; this is not an entity ID.
7799
8138
  */
@@ -8091,7 +8430,7 @@ export type GetPublicSourceData = {
8091
8430
  /**
8092
8431
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
8093
8432
  */
8094
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
8433
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'firmenakte' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
8095
8434
  };
8096
8435
  query?: never;
8097
8436
  url: '/api/v2/public/sources/{source}';
@@ -10800,6 +11139,123 @@ export type RunBankSyncResponses = {
10800
11139
  200: SyncBankConnectionResult;
10801
11140
  };
10802
11141
  export type RunBankSyncResponse = RunBankSyncResponses[keyof RunBankSyncResponses];
11142
+ export type ListBankTargetPaymentsData = {
11143
+ body?: never;
11144
+ path?: never;
11145
+ query?: {
11146
+ /**
11147
+ * invoice or receipt.
11148
+ */
11149
+ targetKind?: 'invoice' | 'receipt';
11150
+ /**
11151
+ * The invoice's or receipt's ID.
11152
+ */
11153
+ targetId?: string;
11154
+ /**
11155
+ * Searches the waiting bookings' counterparty and reference, or an amount such as 59,90.
11156
+ */
11157
+ q?: string;
11158
+ /**
11159
+ * Page size: bookings and Konten default 50, at most 200; candidates default 10, at most 50.
11160
+ */
11161
+ limit?: number;
11162
+ /**
11163
+ * Opaque cursor from the previous page.
11164
+ */
11165
+ cursor?: string;
11166
+ };
11167
+ url: '/api/v2/me/billing/payments';
11168
+ };
11169
+ export type ListBankTargetPaymentsErrors = {
11170
+ /**
11171
+ * Malformed request, or a cursor from another request.
11172
+ */
11173
+ 400: Problem;
11174
+ /**
11175
+ * No valid API key or session.
11176
+ */
11177
+ 401: Problem;
11178
+ /**
11179
+ * This operation needs a dashboard session.
11180
+ */
11181
+ 403: Problem;
11182
+ /**
11183
+ * Not found, or it belongs to another workspace.
11184
+ */
11185
+ 404: Problem;
11186
+ /**
11187
+ * Conflict with the current state; `code` says which.
11188
+ */
11189
+ 409: Problem;
11190
+ /**
11191
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
11192
+ */
11193
+ 422: Problem;
11194
+ /**
11195
+ * Too many requests; retry after `Retry-After`.
11196
+ */
11197
+ 429: Problem;
11198
+ /**
11199
+ * Internal error; quote `requestId` to support.
11200
+ */
11201
+ 500: Problem;
11202
+ };
11203
+ export type ListBankTargetPaymentsError = ListBankTargetPaymentsErrors[keyof ListBankTargetPaymentsErrors];
11204
+ export type ListBankTargetPaymentsResponses = {
11205
+ /**
11206
+ * OK
11207
+ */
11208
+ 200: CursorPageOfBankTargetPaymentDto;
11209
+ };
11210
+ export type ListBankTargetPaymentsResponse = ListBankTargetPaymentsResponses[keyof ListBankTargetPaymentsResponses];
11211
+ export type CreateBankTargetPaymentData = {
11212
+ body: CreateTargetPaymentRequest;
11213
+ path?: never;
11214
+ query?: never;
11215
+ url: '/api/v2/me/billing/payments';
11216
+ };
11217
+ export type CreateBankTargetPaymentErrors = {
11218
+ /**
11219
+ * Malformed request, or a cursor from another request.
11220
+ */
11221
+ 400: Problem;
11222
+ /**
11223
+ * No valid API key or session.
11224
+ */
11225
+ 401: Problem;
11226
+ /**
11227
+ * This operation needs a dashboard session.
11228
+ */
11229
+ 403: Problem;
11230
+ /**
11231
+ * Not found, or it belongs to another workspace.
11232
+ */
11233
+ 404: Problem;
11234
+ /**
11235
+ * Conflict with the current state; `code` says which.
11236
+ */
11237
+ 409: Problem;
11238
+ /**
11239
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
11240
+ */
11241
+ 422: Problem;
11242
+ /**
11243
+ * Too many requests; retry after `Retry-After`.
11244
+ */
11245
+ 429: Problem;
11246
+ /**
11247
+ * Internal error; quote `requestId` to support.
11248
+ */
11249
+ 500: Problem;
11250
+ };
11251
+ export type CreateBankTargetPaymentError = CreateBankTargetPaymentErrors[keyof CreateBankTargetPaymentErrors];
11252
+ export type CreateBankTargetPaymentResponses = {
11253
+ /**
11254
+ * OK
11255
+ */
11256
+ 200: BankTransactionDto;
11257
+ };
11258
+ export type CreateBankTargetPaymentResponse = CreateBankTargetPaymentResponses[keyof CreateBankTargetPaymentResponses];
10803
11259
  export type ListBankMatchCandidatesData = {
10804
11260
  body?: never;
10805
11261
  path: {
@@ -11086,7 +11542,7 @@ export type ListBankTransactionsData = {
11086
11542
  */
11087
11543
  accountId?: string;
11088
11544
  /**
11089
- * open, suggested, todo (open or suggested) or assigned.
11545
+ * open, suggested, missing (assigned, but its Beleg is missing: a Kontoauszug, Vorschreibung, Buchungsmitteilung or Lohnabrechnung), todo (open, suggested or missing) or assigned.
11090
11546
  */
11091
11547
  status?: string;
11092
11548
  /**
@@ -11717,6 +12173,54 @@ export type AddBankStatementResponses = {
11717
12173
  200: CamtImportResultDto;
11718
12174
  };
11719
12175
  export type AddBankStatementResponse = AddBankStatementResponses[keyof AddBankStatementResponses];
12176
+ export type FileBankStatementData = {
12177
+ body: FileBankStatementRequest;
12178
+ path?: never;
12179
+ query?: never;
12180
+ url: '/api/v2/me/billing/statements/file';
12181
+ };
12182
+ export type FileBankStatementErrors = {
12183
+ /**
12184
+ * Malformed request, or a cursor from another request.
12185
+ */
12186
+ 400: Problem;
12187
+ /**
12188
+ * No valid API key or session.
12189
+ */
12190
+ 401: Problem;
12191
+ /**
12192
+ * This operation needs a dashboard session.
12193
+ */
12194
+ 403: Problem;
12195
+ /**
12196
+ * Not found, or it belongs to another workspace.
12197
+ */
12198
+ 404: Problem;
12199
+ /**
12200
+ * Conflict with the current state; `code` says which.
12201
+ */
12202
+ 409: Problem;
12203
+ /**
12204
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
12205
+ */
12206
+ 422: Problem;
12207
+ /**
12208
+ * Too many requests; retry after `Retry-After`.
12209
+ */
12210
+ 429: Problem;
12211
+ /**
12212
+ * Internal error; quote `requestId` to support.
12213
+ */
12214
+ 500: Problem;
12215
+ };
12216
+ export type FileBankStatementError = FileBankStatementErrors[keyof FileBankStatementErrors];
12217
+ export type FileBankStatementResponses = {
12218
+ /**
12219
+ * OK
12220
+ */
12221
+ 200: BankStatementDto;
12222
+ };
12223
+ export type FileBankStatementResponse = FileBankStatementResponses[keyof FileBankStatementResponses];
11720
12224
  export type PreviewBankStatementData = {
11721
12225
  body: PreviewCamtRequest;
11722
12226
  path?: never;