@spaceinvoices/js-sdk 14.30.0 → 14.32.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 (31) hide show
  1. package/dist/generated/advance-invoices/advance-invoices.d.cts +10 -2
  2. package/dist/generated/advance-invoices/advance-invoices.d.ts +10 -2
  3. package/dist/generated/credit-notes/credit-notes.d.cts +10 -2
  4. package/dist/generated/credit-notes/credit-notes.d.ts +10 -2
  5. package/dist/generated/customers/customers.d.cts +2 -0
  6. package/dist/generated/customers/customers.d.ts +2 -0
  7. package/dist/generated/documents/documents.d.cts +5 -1
  8. package/dist/generated/documents/documents.d.ts +5 -1
  9. package/dist/generated/entities/entities.d.cts +2 -2
  10. package/dist/generated/entities/entities.d.ts +2 -2
  11. package/dist/generated/invoices/invoices.d.cts +15 -3
  12. package/dist/generated/invoices/invoices.d.ts +15 -3
  13. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +2 -0
  14. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +2 -0
  15. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +2 -0
  16. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +2 -0
  17. package/dist/generated/model/webhookResponseEventsItem.d.cts +2 -0
  18. package/dist/generated/model/webhookResponseEventsItem.d.ts +2 -0
  19. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +2 -0
  20. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +2 -0
  21. package/dist/generated/orders/orders.d.cts +5 -1
  22. package/dist/generated/orders/orders.d.ts +5 -1
  23. package/dist/generated-zod/customers/customers.d.cts +2 -0
  24. package/dist/generated-zod/customers/customers.d.ts +2 -0
  25. package/dist/generated-zod/entities/entities.d.cts +2 -2
  26. package/dist/generated-zod/entities/entities.d.ts +2 -2
  27. package/dist/generated-zod/webhooks/webhooks.d.cts +12 -0
  28. package/dist/generated-zod/webhooks/webhooks.d.ts +12 -0
  29. package/dist/index.cjs +2 -2
  30. package/dist/index.js +2 -2
  31. package/package.json +1 -1
@@ -264,10 +264,14 @@ export type createAdvanceInvoiceResponse500 = {
264
264
  data: Error;
265
265
  status: 500;
266
266
  };
267
+ export type createAdvanceInvoiceResponse503 = {
268
+ data: Error;
269
+ status: 503;
270
+ };
267
271
  export type createAdvanceInvoiceResponseSuccess = (createAdvanceInvoiceResponse201) & {
268
272
  headers: Headers;
269
273
  };
270
- export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500) & {
274
+ export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500 | createAdvanceInvoiceResponse503) & {
271
275
  headers: Headers;
272
276
  };
273
277
  export type createAdvanceInvoiceResponse = (createAdvanceInvoiceResponseSuccess | createAdvanceInvoiceResponseError);
@@ -348,10 +352,14 @@ export type createCustomAdvanceInvoiceResponse500 = {
348
352
  data: Error;
349
353
  status: 500;
350
354
  };
355
+ export type createCustomAdvanceInvoiceResponse503 = {
356
+ data: Error;
357
+ status: 503;
358
+ };
351
359
  export type createCustomAdvanceInvoiceResponseSuccess = (createCustomAdvanceInvoiceResponse201) & {
352
360
  headers: Headers;
353
361
  };
354
- export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500) & {
362
+ export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500 | createCustomAdvanceInvoiceResponse503) & {
355
363
  headers: Headers;
356
364
  };
357
365
  export type createCustomAdvanceInvoiceResponse = (createCustomAdvanceInvoiceResponseSuccess | createCustomAdvanceInvoiceResponseError);
@@ -264,10 +264,14 @@ export type createAdvanceInvoiceResponse500 = {
264
264
  data: Error;
265
265
  status: 500;
266
266
  };
267
+ export type createAdvanceInvoiceResponse503 = {
268
+ data: Error;
269
+ status: 503;
270
+ };
267
271
  export type createAdvanceInvoiceResponseSuccess = (createAdvanceInvoiceResponse201) & {
268
272
  headers: Headers;
269
273
  };
270
- export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500) & {
274
+ export type createAdvanceInvoiceResponseError = (createAdvanceInvoiceResponse400 | createAdvanceInvoiceResponse401 | createAdvanceInvoiceResponse403 | createAdvanceInvoiceResponse404 | createAdvanceInvoiceResponse422 | createAdvanceInvoiceResponse500 | createAdvanceInvoiceResponse503) & {
271
275
  headers: Headers;
272
276
  };
273
277
  export type createAdvanceInvoiceResponse = (createAdvanceInvoiceResponseSuccess | createAdvanceInvoiceResponseError);
@@ -348,10 +352,14 @@ export type createCustomAdvanceInvoiceResponse500 = {
348
352
  data: Error;
349
353
  status: 500;
350
354
  };
355
+ export type createCustomAdvanceInvoiceResponse503 = {
356
+ data: Error;
357
+ status: 503;
358
+ };
351
359
  export type createCustomAdvanceInvoiceResponseSuccess = (createCustomAdvanceInvoiceResponse201) & {
352
360
  headers: Headers;
353
361
  };
354
- export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500) & {
362
+ export type createCustomAdvanceInvoiceResponseError = (createCustomAdvanceInvoiceResponse400 | createCustomAdvanceInvoiceResponse401 | createCustomAdvanceInvoiceResponse403 | createCustomAdvanceInvoiceResponse404 | createCustomAdvanceInvoiceResponse422 | createCustomAdvanceInvoiceResponse500 | createCustomAdvanceInvoiceResponse503) & {
355
363
  headers: Headers;
356
364
  };
357
365
  export type createCustomAdvanceInvoiceResponse = (createCustomAdvanceInvoiceResponseSuccess | createCustomAdvanceInvoiceResponseError);
@@ -448,10 +448,14 @@ export type createCreditNoteResponse500 = {
448
448
  data: Error;
449
449
  status: 500;
450
450
  };
451
+ export type createCreditNoteResponse503 = {
452
+ data: Error;
453
+ status: 503;
454
+ };
451
455
  export type createCreditNoteResponseSuccess = (createCreditNoteResponse201) & {
452
456
  headers: Headers;
453
457
  };
454
- export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500) & {
458
+ export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500 | createCreditNoteResponse503) & {
455
459
  headers: Headers;
456
460
  };
457
461
  export type createCreditNoteResponse = (createCreditNoteResponseSuccess | createCreditNoteResponseError);
@@ -534,10 +538,14 @@ export type createCustomCreditNoteResponse500 = {
534
538
  data: Error;
535
539
  status: 500;
536
540
  };
541
+ export type createCustomCreditNoteResponse503 = {
542
+ data: Error;
543
+ status: 503;
544
+ };
537
545
  export type createCustomCreditNoteResponseSuccess = (createCustomCreditNoteResponse201) & {
538
546
  headers: Headers;
539
547
  };
540
- export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500) & {
548
+ export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500 | createCustomCreditNoteResponse503) & {
541
549
  headers: Headers;
542
550
  };
543
551
  export type createCustomCreditNoteResponse = (createCustomCreditNoteResponseSuccess | createCustomCreditNoteResponseError);
@@ -448,10 +448,14 @@ export type createCreditNoteResponse500 = {
448
448
  data: Error;
449
449
  status: 500;
450
450
  };
451
+ export type createCreditNoteResponse503 = {
452
+ data: Error;
453
+ status: 503;
454
+ };
451
455
  export type createCreditNoteResponseSuccess = (createCreditNoteResponse201) & {
452
456
  headers: Headers;
453
457
  };
454
- export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500) & {
458
+ export type createCreditNoteResponseError = (createCreditNoteResponse400 | createCreditNoteResponse401 | createCreditNoteResponse403 | createCreditNoteResponse404 | createCreditNoteResponse422 | createCreditNoteResponse500 | createCreditNoteResponse503) & {
455
459
  headers: Headers;
456
460
  };
457
461
  export type createCreditNoteResponse = (createCreditNoteResponseSuccess | createCreditNoteResponseError);
@@ -534,10 +538,14 @@ export type createCustomCreditNoteResponse500 = {
534
538
  data: Error;
535
539
  status: 500;
536
540
  };
541
+ export type createCustomCreditNoteResponse503 = {
542
+ data: Error;
543
+ status: 503;
544
+ };
537
545
  export type createCustomCreditNoteResponseSuccess = (createCustomCreditNoteResponse201) & {
538
546
  headers: Headers;
539
547
  };
540
- export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500) & {
548
+ export type createCustomCreditNoteResponseError = (createCustomCreditNoteResponse400 | createCustomCreditNoteResponse401 | createCustomCreditNoteResponse403 | createCustomCreditNoteResponse404 | createCustomCreditNoteResponse422 | createCustomCreditNoteResponse500 | createCustomCreditNoteResponse503) & {
541
549
  headers: Headers;
542
550
  };
543
551
  export type createCustomCreditNoteResponse = (createCustomCreditNoteResponseSuccess | createCustomCreditNoteResponseError);
@@ -10,6 +10,7 @@ import type { CreateCustomerBody, Customer, Error, GetCustomers200, GetCustomers
10
10
  * Create a new customer for use in invoices.
11
11
  Store customer details including name, address, and tax information.
12
12
  All fields except name are optional.
13
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
13
14
  * @summary Create a new customer
14
15
  */
15
16
  export type createCustomerResponse201 = {
@@ -125,6 +126,7 @@ export declare const getCustomerById: (id: string, options?: RequestInit) => Pro
125
126
  * Update an existing customer.
126
127
  Only the provided fields will be updated.
127
128
  All fields are optional for partial updates.
129
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
128
130
  * @summary Update a customer
129
131
  */
130
132
  export type updateCustomerResponse200 = {
@@ -10,6 +10,7 @@ import type { CreateCustomerBody, Customer, Error, GetCustomers200, GetCustomers
10
10
  * Create a new customer for use in invoices.
11
11
  Store customer details including name, address, and tax information.
12
12
  All fields except name are optional.
13
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
13
14
  * @summary Create a new customer
14
15
  */
15
16
  export type createCustomerResponse201 = {
@@ -125,6 +126,7 @@ export declare const getCustomerById: (id: string, options?: RequestInit) => Pro
125
126
  * Update an existing customer.
126
127
  Only the provided fields will be updated.
127
128
  All fields are optional for partial updates.
129
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
128
130
  * @summary Update a customer
129
131
  */
130
132
  export type updateCustomerResponse200 = {
@@ -117,10 +117,14 @@ export type finalizeDocumentResponse500 = {
117
117
  data: Error;
118
118
  status: 500;
119
119
  };
120
+ export type finalizeDocumentResponse503 = {
121
+ data: Error;
122
+ status: 503;
123
+ };
120
124
  export type finalizeDocumentResponseSuccess = (finalizeDocumentResponse200) & {
121
125
  headers: Headers;
122
126
  };
123
- export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500) & {
127
+ export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500 | finalizeDocumentResponse503) & {
124
128
  headers: Headers;
125
129
  };
126
130
  export type finalizeDocumentResponse = (finalizeDocumentResponseSuccess | finalizeDocumentResponseError);
@@ -117,10 +117,14 @@ export type finalizeDocumentResponse500 = {
117
117
  data: Error;
118
118
  status: 500;
119
119
  };
120
+ export type finalizeDocumentResponse503 = {
121
+ data: Error;
122
+ status: 503;
123
+ };
120
124
  export type finalizeDocumentResponseSuccess = (finalizeDocumentResponse200) & {
121
125
  headers: Headers;
122
126
  };
123
- export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500) & {
127
+ export type finalizeDocumentResponseError = (finalizeDocumentResponse400 | finalizeDocumentResponse401 | finalizeDocumentResponse403 | finalizeDocumentResponse404 | finalizeDocumentResponse422 | finalizeDocumentResponse500 | finalizeDocumentResponse503) & {
124
128
  headers: Headers;
125
129
  };
126
130
  export type finalizeDocumentResponse = (finalizeDocumentResponseSuccess | finalizeDocumentResponseError);
@@ -416,7 +416,7 @@ export type removeEntityKsefCredentialResponse = (removeEntityKsefCredentialResp
416
416
  export declare const getRemoveEntityKsefCredentialUrl: (id: string) => string;
417
417
  export declare const removeEntityKsefCredential: (id: string, options?: RequestInit) => Promise<removeEntityKsefCredentialResponse>;
418
418
  /**
419
- * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents).
419
+ * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents). For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) is required and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
420
420
  * @summary Create a new entity
421
421
  */
422
422
  export type createEntityResponse201 = {
@@ -527,7 +527,7 @@ export type getEntityByIdResponse = (getEntityByIdResponseSuccess | getEntityByI
527
527
  export declare const getGetEntityByIdUrl: (id: string) => string;
528
528
  export declare const getEntityById: (id: string, options?: RequestInit) => Promise<getEntityByIdResponse>;
529
529
  /**
530
- * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types.
530
+ * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types. For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) cannot be cleared and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
531
531
  * @summary Update an entity
532
532
  */
533
533
  export type patchEntityResponse200 = {
@@ -416,7 +416,7 @@ export type removeEntityKsefCredentialResponse = (removeEntityKsefCredentialResp
416
416
  export declare const getRemoveEntityKsefCredentialUrl: (id: string) => string;
417
417
  export declare const removeEntityKsefCredential: (id: string, options?: RequestInit) => Promise<removeEntityKsefCredentialResponse>;
418
418
  /**
419
- * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents).
419
+ * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents). For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) is required and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
420
420
  * @summary Create a new entity
421
421
  */
422
422
  export type createEntityResponse201 = {
@@ -527,7 +527,7 @@ export type getEntityByIdResponse = (getEntityByIdResponseSuccess | getEntityByI
527
527
  export declare const getGetEntityByIdUrl: (id: string) => string;
528
528
  export declare const getEntityById: (id: string, options?: RequestInit) => Promise<getEntityByIdResponse>;
529
529
  /**
530
- * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types.
530
+ * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types. For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) cannot be cleared and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
531
531
  * @summary Update an entity
532
532
  */
533
533
  export type patchEntityResponse200 = {
@@ -447,10 +447,14 @@ export type createInvoiceResponse500 = {
447
447
  data: Error;
448
448
  status: 500;
449
449
  };
450
+ export type createInvoiceResponse503 = {
451
+ data: Error;
452
+ status: 503;
453
+ };
450
454
  export type createInvoiceResponseSuccess = (createInvoiceResponse201) & {
451
455
  headers: Headers;
452
456
  };
453
- export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500) & {
457
+ export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500 | createInvoiceResponse503) & {
454
458
  headers: Headers;
455
459
  };
456
460
  export type createInvoiceResponse = (createInvoiceResponseSuccess | createInvoiceResponseError);
@@ -533,10 +537,14 @@ export type createCustomInvoiceResponse500 = {
533
537
  data: Error;
534
538
  status: 500;
535
539
  };
540
+ export type createCustomInvoiceResponse503 = {
541
+ data: Error;
542
+ status: 503;
543
+ };
536
544
  export type createCustomInvoiceResponseSuccess = (createCustomInvoiceResponse201) & {
537
545
  headers: Headers;
538
546
  };
539
- export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500) & {
547
+ export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500 | createCustomInvoiceResponse503) & {
540
548
  headers: Headers;
541
549
  };
542
550
  export type createCustomInvoiceResponse = (createCustomInvoiceResponseSuccess | createCustomInvoiceResponseError);
@@ -878,10 +886,14 @@ export type voidInvoiceResponse500 = {
878
886
  data: Error;
879
887
  status: 500;
880
888
  };
889
+ export type voidInvoiceResponse503 = {
890
+ data: Error;
891
+ status: 503;
892
+ };
881
893
  export type voidInvoiceResponseSuccess = (voidInvoiceResponse200) & {
882
894
  headers: Headers;
883
895
  };
884
- export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500) & {
896
+ export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500 | voidInvoiceResponse503) & {
885
897
  headers: Headers;
886
898
  };
887
899
  export type voidInvoiceResponse = (voidInvoiceResponseSuccess | voidInvoiceResponseError);
@@ -447,10 +447,14 @@ export type createInvoiceResponse500 = {
447
447
  data: Error;
448
448
  status: 500;
449
449
  };
450
+ export type createInvoiceResponse503 = {
451
+ data: Error;
452
+ status: 503;
453
+ };
450
454
  export type createInvoiceResponseSuccess = (createInvoiceResponse201) & {
451
455
  headers: Headers;
452
456
  };
453
- export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500) & {
457
+ export type createInvoiceResponseError = (createInvoiceResponse400 | createInvoiceResponse401 | createInvoiceResponse403 | createInvoiceResponse404 | createInvoiceResponse422 | createInvoiceResponse500 | createInvoiceResponse503) & {
454
458
  headers: Headers;
455
459
  };
456
460
  export type createInvoiceResponse = (createInvoiceResponseSuccess | createInvoiceResponseError);
@@ -533,10 +537,14 @@ export type createCustomInvoiceResponse500 = {
533
537
  data: Error;
534
538
  status: 500;
535
539
  };
540
+ export type createCustomInvoiceResponse503 = {
541
+ data: Error;
542
+ status: 503;
543
+ };
536
544
  export type createCustomInvoiceResponseSuccess = (createCustomInvoiceResponse201) & {
537
545
  headers: Headers;
538
546
  };
539
- export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500) & {
547
+ export type createCustomInvoiceResponseError = (createCustomInvoiceResponse400 | createCustomInvoiceResponse401 | createCustomInvoiceResponse403 | createCustomInvoiceResponse404 | createCustomInvoiceResponse422 | createCustomInvoiceResponse500 | createCustomInvoiceResponse503) & {
540
548
  headers: Headers;
541
549
  };
542
550
  export type createCustomInvoiceResponse = (createCustomInvoiceResponseSuccess | createCustomInvoiceResponseError);
@@ -878,10 +886,14 @@ export type voidInvoiceResponse500 = {
878
886
  data: Error;
879
887
  status: 500;
880
888
  };
889
+ export type voidInvoiceResponse503 = {
890
+ data: Error;
891
+ status: 503;
892
+ };
881
893
  export type voidInvoiceResponseSuccess = (voidInvoiceResponse200) & {
882
894
  headers: Headers;
883
895
  };
884
- export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500) & {
896
+ export type voidInvoiceResponseError = (voidInvoiceResponse400 | voidInvoiceResponse401 | voidInvoiceResponse403 | voidInvoiceResponse404 | voidInvoiceResponse409 | voidInvoiceResponse422 | voidInvoiceResponse500 | voidInvoiceResponse503) & {
885
897
  headers: Headers;
886
898
  };
887
899
  export type voidInvoiceResponse = (voidInvoiceResponseSuccess | voidInvoiceResponseError);
@@ -35,11 +35,13 @@ export declare const CreateWebhookBodyEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const CreateWebhookBodyEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const UpdateWebhookBodyEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const UpdateWebhookBodyEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const WebhookResponseEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const WebhookResponseEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const WebhookWithSecretEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -35,11 +35,13 @@ export declare const WebhookWithSecretEventsItem: {
35
35
  readonly estimatedeleted: "estimate.deleted";
36
36
  readonly estimaterestored: "estimate.restored";
37
37
  readonly credit_notecreated: "credit_note.created";
38
+ readonly credit_noteupdated: "credit_note.updated";
38
39
  readonly credit_noteissued: "credit_note.issued";
39
40
  readonly credit_notevoided: "credit_note.voided";
40
41
  readonly credit_notedeleted: "credit_note.deleted";
41
42
  readonly credit_noterestored: "credit_note.restored";
42
43
  readonly advance_invoicecreated: "advance_invoice.created";
44
+ readonly advance_invoiceupdated: "advance_invoice.updated";
43
45
  readonly advance_invoicepaid: "advance_invoice.paid";
44
46
  readonly advance_invoiceapplied: "advance_invoice.applied";
45
47
  readonly advance_invoicevoided: "advance_invoice.voided";
@@ -232,10 +232,14 @@ export type processOrderResponse500 = {
232
232
  data: Error;
233
233
  status: 500;
234
234
  };
235
+ export type processOrderResponse503 = {
236
+ data: Error;
237
+ status: 503;
238
+ };
235
239
  export type processOrderResponseSuccess = (processOrderResponse200) & {
236
240
  headers: Headers;
237
241
  };
238
- export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500) & {
242
+ export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500 | processOrderResponse503) & {
239
243
  headers: Headers;
240
244
  };
241
245
  export type processOrderResponse = (processOrderResponseSuccess | processOrderResponseError);
@@ -232,10 +232,14 @@ export type processOrderResponse500 = {
232
232
  data: Error;
233
233
  status: 500;
234
234
  };
235
+ export type processOrderResponse503 = {
236
+ data: Error;
237
+ status: 503;
238
+ };
235
239
  export type processOrderResponseSuccess = (processOrderResponse200) & {
236
240
  headers: Headers;
237
241
  };
238
- export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500) & {
242
+ export type processOrderResponseError = (processOrderResponse400 | processOrderResponse401 | processOrderResponse403 | processOrderResponse404 | processOrderResponse422 | processOrderResponse500 | processOrderResponse503) & {
239
243
  headers: Headers;
240
244
  };
241
245
  export type processOrderResponse = (processOrderResponseSuccess | processOrderResponseError);
@@ -10,6 +10,7 @@ import * as zod from "zod";
10
10
  * Create a new customer for use in invoices.
11
11
  Store customer details including name, address, and tax information.
12
12
  All fields except name are optional.
13
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
13
14
  * @summary Create a new customer
14
15
  */
15
16
  export declare const CreateCustomerHeader: zod.ZodObject<{
@@ -302,6 +303,7 @@ export declare const GetCustomerByIdResponse: zod.ZodIntersection<zod.ZodObject<
302
303
  * Update an existing customer.
303
304
  Only the provided fields will be updated.
304
305
  All fields are optional for partial updates.
306
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
305
307
  * @summary Update a customer
306
308
  */
307
309
  export declare const updateCustomerPathIdRegExp: RegExp;
@@ -10,6 +10,7 @@ import * as zod from "zod";
10
10
  * Create a new customer for use in invoices.
11
11
  Store customer details including name, address, and tax information.
12
12
  All fields except name are optional.
13
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
13
14
  * @summary Create a new customer
14
15
  */
15
16
  export declare const CreateCustomerHeader: zod.ZodObject<{
@@ -302,6 +303,7 @@ export declare const GetCustomerByIdResponse: zod.ZodIntersection<zod.ZodObject<
302
303
  * Update an existing customer.
303
304
  Only the provided fields will be updated.
304
305
  All fields are optional for partial updates.
306
+ For Czech customers (`country_code: CZ`) `tax_number` must be a DIČ (`CZ` + 8–10 digits) and `company_number`, when sent, an IČO (8 digits with check digit); invalid values respond 422 with `code` `CZ_INVALID_TAX_NUMBER` or `CZ_INVALID_COMPANY_NUMBER`.
305
307
  * @summary Update a customer
306
308
  */
307
309
  export declare const updateCustomerPathIdRegExp: RegExp;
@@ -323,7 +323,7 @@ export declare const RemoveEntityKsefCredentialResponse: zod.ZodObject<{
323
323
  exemption_reason: zod.ZodNullable<zod.ZodString>;
324
324
  }, zod.z.core.$strip>;
325
325
  /**
326
- * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents).
326
+ * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents). For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) is required and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
327
327
  * @summary Create a new entity
328
328
  */
329
329
  export declare const createEntityHeaderXAccountIdRegExp: RegExp;
@@ -6399,7 +6399,7 @@ export declare const GetEntityByIdResponse: zod.ZodObject<{
6399
6399
  }, zod.z.core.$strip>;
6400
6400
  }, zod.z.core.$strip>;
6401
6401
  /**
6402
- * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types.
6402
+ * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types. For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) cannot be cleared and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
6403
6403
  * @summary Update an entity
6404
6404
  */
6405
6405
  export declare const patchEntityPathIdRegExp: RegExp;
@@ -323,7 +323,7 @@ export declare const RemoveEntityKsefCredentialResponse: zod.ZodObject<{
323
323
  exemption_reason: zod.ZodNullable<zod.ZodString>;
324
324
  }, zod.z.core.$strip>;
325
325
  /**
326
- * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents).
326
+ * Create a new legal entity (business, organization, or sole proprietor). Entities are the core organizational unit that owns customers, invoices, and items. Each entity can have custom number formatting for invoices and other settings. The entity currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422 (crypto is only available as the currency_code of individual documents). For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) is required and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
327
327
  * @summary Create a new entity
328
328
  */
329
329
  export declare const createEntityHeaderXAccountIdRegExp: RegExp;
@@ -6399,7 +6399,7 @@ export declare const GetEntityByIdResponse: zod.ZodObject<{
6399
6399
  }, zod.z.core.$strip>;
6400
6400
  }, zod.z.core.$strip>;
6401
6401
  /**
6402
- * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types.
6402
+ * Update an existing entity's details. All fields are optional; only provided fields will be updated. Use this to modify entity information, address, tax details, or custom settings. Settings are merged per top-level key: keys you omit keep their current value, so send only the keys you want to change. Two keys merge one level deeper: settings.translations merges per translation namespace, and settings.unit_number_sequence_starts merges per document type and business unit. Fiscalization and other dedicated-endpoint settings (settings.furs, settings.fina, settings.slovenia, settings.e_invoicing, settings.revenue_recognition) cannot be modified here and are silently ignored if sent — manage them via their dedicated endpoints (e.g. PUT /fiscalization/furs/settings, PUT /fiscalization/fina/settings). Note: Country and country_code cannot be changed after entity creation. currency_code must be a fiat ISO 4217 code; a crypto asset code is rejected with 422. A Hungarian entity's tax_number cannot be changed while NAV Online Számla dispatch is enabled (settings.nav.enabled) or a NAV submission is in flight for the entity — responds 409 NAV_TAX_NUMBER_LOCKED. While NAV dispatch is enabled, changing settings.number_formats/settings.unit_number_formats so that two of invoice, credit note and advance invoice would produce identical numbers responds 422 NAV_NUMBER_FORMATS_OVERLAP with a `conflicts` array describing the colliding document types. For Czech entities (`country_code: CZ`) `company_number` (IČO, 8 digits with check digit) cannot be cleared and `tax_number` must be a DIČ (`CZ` + 8–10 digits); invalid values respond 422 with `code` `CZ_COMPANY_NUMBER_REQUIRED`, `CZ_INVALID_COMPANY_NUMBER` or `CZ_INVALID_TAX_NUMBER`.
6403
6403
  * @summary Update an entity
6404
6404
  */
6405
6405
  export declare const patchEntityPathIdRegExp: RegExp;