@spaceinvoices/js-sdk 18.29.0 → 18.30.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.
- package/dist/generated/advance-invoices/advance-invoices.d.cts +1 -1
- package/dist/generated/advance-invoices/advance-invoices.d.ts +1 -1
- package/dist/generated/credit-notes/credit-notes.d.cts +2 -1
- package/dist/generated/credit-notes/credit-notes.d.ts +2 -1
- package/dist/generated/invoices/invoices.d.cts +1 -1
- package/dist/generated/invoices/invoices.d.ts +1 -1
- package/dist/generated/model/completeCreditNotePreview.d.cts +1 -1
- package/dist/generated/model/completeCreditNotePreview.d.ts +1 -1
- package/dist/generated/model/createCreditNote.d.cts +1 -1
- package/dist/generated/model/createCreditNote.d.ts +1 -1
- package/dist/generated/model/customCreateCreditNote.d.cts +1 -1
- package/dist/generated/model/customCreateCreditNote.d.ts +1 -1
- package/dist/generated/model/partialCreditNotePreview.d.cts +1 -1
- package/dist/generated/model/partialCreditNotePreview.d.ts +1 -1
- package/dist/generated/model/updateCreditNote.d.cts +1 -1
- package/dist/generated/model/updateCreditNote.d.ts +1 -1
- package/dist/generated-zod/advance-invoices/advance-invoices.d.cts +1 -1
- package/dist/generated-zod/advance-invoices/advance-invoices.d.ts +1 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.cts +2 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.ts +2 -1
- package/dist/generated-zod/invoices/invoices.d.cts +1 -1
- package/dist/generated-zod/invoices/invoices.d.ts +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -602,7 +602,7 @@ export type renderAdvanceInvoicePreviewResponse = (renderAdvanceInvoicePreviewRe
|
|
|
602
602
|
export declare const getRenderAdvanceInvoicePreviewUrl: (params?: RenderAdvanceInvoicePreviewParams) => string;
|
|
603
603
|
export declare const renderAdvanceInvoicePreview: (partialAdvanceInvoicePreviewCompleteAdvanceInvoicePreview: PartialAdvanceInvoicePreview | CompleteAdvanceInvoicePreview, params?: RenderAdvanceInvoicePreviewParams, options?: RequestInit) => Promise<renderAdvanceInvoicePreviewResponse>;
|
|
604
604
|
/**
|
|
605
|
-
* Void an advance invoice for technical reasons (duplicate, error, etc.).
|
|
605
|
+
* Void an advance invoice for technical reasons (duplicate, error, etc.). All linked payments are soft-deleted, reversing their effect on invoice totals. An advance invoice already held by a tax authority cannot be voided: a FURS- or FINA-fiscalized advance invoice (status other than skipped) returns 409 ADVANCE_INVOICE_FISCALIZED_VOID_UNSUPPORTED, and a NAV-reported one returns 409 NAV_ADVANCE_INVOICE_VOID_UNSUPPORTED; reverse those with a credit note against the advance invoice. TicketBAI and VeriFactu advance invoices are immutable (409). An advance invoice applied to a live invoice cannot be voided (422).
|
|
606
606
|
* @summary Void an advance invoice
|
|
607
607
|
*/
|
|
608
608
|
export type voidAdvanceInvoiceResponse200 = {
|
|
@@ -602,7 +602,7 @@ export type renderAdvanceInvoicePreviewResponse = (renderAdvanceInvoicePreviewRe
|
|
|
602
602
|
export declare const getRenderAdvanceInvoicePreviewUrl: (params?: RenderAdvanceInvoicePreviewParams) => string;
|
|
603
603
|
export declare const renderAdvanceInvoicePreview: (partialAdvanceInvoicePreviewCompleteAdvanceInvoicePreview: PartialAdvanceInvoicePreview | CompleteAdvanceInvoicePreview, params?: RenderAdvanceInvoicePreviewParams, options?: RequestInit) => Promise<renderAdvanceInvoicePreviewResponse>;
|
|
604
604
|
/**
|
|
605
|
-
* Void an advance invoice for technical reasons (duplicate, error, etc.).
|
|
605
|
+
* Void an advance invoice for technical reasons (duplicate, error, etc.). All linked payments are soft-deleted, reversing their effect on invoice totals. An advance invoice already held by a tax authority cannot be voided: a FURS- or FINA-fiscalized advance invoice (status other than skipped) returns 409 ADVANCE_INVOICE_FISCALIZED_VOID_UNSUPPORTED, and a NAV-reported one returns 409 NAV_ADVANCE_INVOICE_VOID_UNSUPPORTED; reverse those with a credit note against the advance invoice. TicketBAI and VeriFactu advance invoices are immutable (409). An advance invoice applied to a live invoice cannot be voided (422).
|
|
606
606
|
* @summary Void an advance invoice
|
|
607
607
|
*/
|
|
608
608
|
export type voidAdvanceInvoiceResponse200 = {
|
|
@@ -646,6 +646,7 @@ Cannot update voided or FURS-fiscalized credit notes. A void reversal credit not
|
|
|
646
646
|
If items are provided, they replace all existing items.
|
|
647
647
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
648
648
|
Slovenian Article 76.a: switching it on explicitly for a document created with pre-calculated totals recalculates the document from its lines; it keeps its creation source and its lines are server-calculated while it carries Article 76.a.
|
|
649
|
+
An issued (non-draft) credit note cannot newly link an advance invoice held by FURS or FINA (422 CREDIT_NOTE_ADVANCE_LINK_REQUIRES_DRAFT); re-sending a link it already has is allowed, and drafts may link (checked again at finalize).
|
|
649
650
|
* @summary Update a credit note
|
|
650
651
|
*/
|
|
651
652
|
export type updateCreditNoteResponse200 = {
|
|
@@ -915,7 +916,7 @@ export type fiscalizeCreditNoteResponse = (fiscalizeCreditNoteResponseSuccess |
|
|
|
915
916
|
export declare const getFiscalizeCreditNoteUrl: (id: string) => string;
|
|
916
917
|
export declare const fiscalizeCreditNote: (id: string, options?: RequestInit) => Promise<fiscalizeCreditNoteResponse>;
|
|
917
918
|
/**
|
|
918
|
-
* Void a credit note for technical reasons (duplicate, error, etc.).
|
|
919
|
+
* Void a credit note for technical reasons (duplicate, error, etc.). A fiscalized credit note cannot be voided: one with FURS or FINA data returns 422 "Cannot void a fiscalized credit note", and an EET-registered one returns 422 eet_void_unsupported. All linked payments are soft-deleted, reversing their effect on invoice totals. Voiding a system-created void credit note atomically reactivates its source invoice and restores the invoice's released advance allocations; the operation fails without side effects if their original balances are no longer available.
|
|
919
920
|
* @summary Void a credit note
|
|
920
921
|
*/
|
|
921
922
|
export type voidCreditNoteResponse200 = {
|
|
@@ -646,6 +646,7 @@ Cannot update voided or FURS-fiscalized credit notes. A void reversal credit not
|
|
|
646
646
|
If items are provided, they replace all existing items.
|
|
647
647
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
648
648
|
Slovenian Article 76.a: switching it on explicitly for a document created with pre-calculated totals recalculates the document from its lines; it keeps its creation source and its lines are server-calculated while it carries Article 76.a.
|
|
649
|
+
An issued (non-draft) credit note cannot newly link an advance invoice held by FURS or FINA (422 CREDIT_NOTE_ADVANCE_LINK_REQUIRES_DRAFT); re-sending a link it already has is allowed, and drafts may link (checked again at finalize).
|
|
649
650
|
* @summary Update a credit note
|
|
650
651
|
*/
|
|
651
652
|
export type updateCreditNoteResponse200 = {
|
|
@@ -915,7 +916,7 @@ export type fiscalizeCreditNoteResponse = (fiscalizeCreditNoteResponseSuccess |
|
|
|
915
916
|
export declare const getFiscalizeCreditNoteUrl: (id: string) => string;
|
|
916
917
|
export declare const fiscalizeCreditNote: (id: string, options?: RequestInit) => Promise<fiscalizeCreditNoteResponse>;
|
|
917
918
|
/**
|
|
918
|
-
* Void a credit note for technical reasons (duplicate, error, etc.).
|
|
919
|
+
* Void a credit note for technical reasons (duplicate, error, etc.). A fiscalized credit note cannot be voided: one with FURS or FINA data returns 422 "Cannot void a fiscalized credit note", and an EET-registered one returns 422 eet_void_unsupported. All linked payments are soft-deleted, reversing their effect on invoice totals. Voiding a system-created void credit note atomically reactivates its source invoice and restores the invoice's released advance allocations; the operation fails without side effects if their original balances are no longer available.
|
|
919
920
|
* @summary Void a credit note
|
|
920
921
|
*/
|
|
921
922
|
export type voidCreditNoteResponse200 = {
|
|
@@ -911,7 +911,7 @@ export type renderInvoicePreviewResponse = (renderInvoicePreviewResponseSuccess
|
|
|
911
911
|
export declare const getRenderInvoicePreviewUrl: (params?: RenderInvoicePreviewParams) => string;
|
|
912
912
|
export declare const renderInvoicePreview: (partialInvoicePreviewCompleteInvoicePreview: PartialInvoicePreview | CompleteInvoicePreview, params?: RenderInvoicePreviewParams, options?: RequestInit) => Promise<renderInvoicePreviewResponse>;
|
|
913
913
|
/**
|
|
914
|
-
* Void an invoice for technical reasons (duplicate, error, etc.).
|
|
914
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). The void creates an offsetting credit note; for FURS-, FINA- or EET-fiscalized invoices that credit note is fiscalized as the reversal (for FURS it references the invoice) and no technical cancellation is sent. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice already has credit notes (for example a partial return), the offsetting credit note reverses only the amount not yet credited: returned quantities are taken off their lines, other earlier credit lines are reversed as negative lines, and the totals and VAT per rate are the invoice minus the earlier credit notes. The void returns 422 and nothing is voided when the invoice is already fully credited, when an earlier credit note is linked to several documents or is in another currency, when the earlier credit notes would leave a negative amount in a VAT rate, when the invoice has several tax rows at one VAT rate, when the net rounding correction would exceed the ±1.00 limit, or when a FURS invoice was fiscalized with a payment amount different from its total and already has credit notes; credit the remainder with a credit note instead. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
915
915
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
916
916
|
* @summary Void an invoice
|
|
917
917
|
*/
|
|
@@ -911,7 +911,7 @@ export type renderInvoicePreviewResponse = (renderInvoicePreviewResponseSuccess
|
|
|
911
911
|
export declare const getRenderInvoicePreviewUrl: (params?: RenderInvoicePreviewParams) => string;
|
|
912
912
|
export declare const renderInvoicePreview: (partialInvoicePreviewCompleteInvoicePreview: PartialInvoicePreview | CompleteInvoicePreview, params?: RenderInvoicePreviewParams, options?: RequestInit) => Promise<renderInvoicePreviewResponse>;
|
|
913
913
|
/**
|
|
914
|
-
* Void an invoice for technical reasons (duplicate, error, etc.).
|
|
914
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). The void creates an offsetting credit note; for FURS-, FINA- or EET-fiscalized invoices that credit note is fiscalized as the reversal (for FURS it references the invoice) and no technical cancellation is sent. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice already has credit notes (for example a partial return), the offsetting credit note reverses only the amount not yet credited: returned quantities are taken off their lines, other earlier credit lines are reversed as negative lines, and the totals and VAT per rate are the invoice minus the earlier credit notes. The void returns 422 and nothing is voided when the invoice is already fully credited, when an earlier credit note is linked to several documents or is in another currency, when the earlier credit notes would leave a negative amount in a VAT rate, when the invoice has several tax rows at one VAT rate, when the net rounding correction would exceed the ±1.00 limit, or when a FURS invoice was fiscalized with a payment amount different from its total and already has credit notes; credit the remainder with a credit note instead. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
915
915
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
916
916
|
* @summary Void an invoice
|
|
917
917
|
*/
|
|
@@ -142,7 +142,7 @@ export interface CompleteCreditNotePreview {
|
|
|
142
142
|
*/
|
|
143
143
|
items: CreateDocumentItem[];
|
|
144
144
|
/**
|
|
145
|
-
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices.
|
|
145
|
+
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
146
146
|
* @nullable
|
|
147
147
|
*/
|
|
148
148
|
linked_documents?: string[] | null;
|
|
@@ -142,7 +142,7 @@ export interface CompleteCreditNotePreview {
|
|
|
142
142
|
*/
|
|
143
143
|
items: CreateDocumentItem[];
|
|
144
144
|
/**
|
|
145
|
-
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices.
|
|
145
|
+
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
146
146
|
* @nullable
|
|
147
147
|
*/
|
|
148
148
|
linked_documents?: string[] | null;
|
|
@@ -143,7 +143,7 @@ export interface CreateCreditNote {
|
|
|
143
143
|
*/
|
|
144
144
|
items: CreateDocumentItem[];
|
|
145
145
|
/**
|
|
146
|
-
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices.
|
|
146
|
+
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
147
147
|
* @nullable
|
|
148
148
|
*/
|
|
149
149
|
linked_documents?: string[] | null;
|
|
@@ -143,7 +143,7 @@ export interface CreateCreditNote {
|
|
|
143
143
|
*/
|
|
144
144
|
items: CreateDocumentItem[];
|
|
145
145
|
/**
|
|
146
|
-
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices.
|
|
146
|
+
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
147
147
|
* @nullable
|
|
148
148
|
*/
|
|
149
149
|
linked_documents?: string[] | null;
|
|
@@ -143,7 +143,7 @@ export interface CustomCreateCreditNote {
|
|
|
143
143
|
/** @nullable */
|
|
144
144
|
taxes?: DocumentSummaryTax[] | null;
|
|
145
145
|
/**
|
|
146
|
-
* Link this credit note to invoices.
|
|
146
|
+
* Link this credit note to invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
147
147
|
* @nullable
|
|
148
148
|
*/
|
|
149
149
|
linked_documents?: string[] | null;
|
|
@@ -143,7 +143,7 @@ export interface CustomCreateCreditNote {
|
|
|
143
143
|
/** @nullable */
|
|
144
144
|
taxes?: DocumentSummaryTax[] | null;
|
|
145
145
|
/**
|
|
146
|
-
* Link this credit note to invoices.
|
|
146
|
+
* Link this credit note to invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
147
147
|
* @nullable
|
|
148
148
|
*/
|
|
149
149
|
linked_documents?: string[] | null;
|
|
@@ -139,7 +139,7 @@ export interface PartialCreditNotePreview {
|
|
|
139
139
|
/** @minItems 1 */
|
|
140
140
|
items: PartialCreditNotePreviewItemsItem[];
|
|
141
141
|
/**
|
|
142
|
-
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices.
|
|
142
|
+
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
143
143
|
* @nullable
|
|
144
144
|
*/
|
|
145
145
|
linked_documents?: string[] | null;
|
|
@@ -139,7 +139,7 @@ export interface PartialCreditNotePreview {
|
|
|
139
139
|
/** @minItems 1 */
|
|
140
140
|
items: PartialCreditNotePreviewItemsItem[];
|
|
141
141
|
/**
|
|
142
|
-
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices.
|
|
142
|
+
* Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices. Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited.
|
|
143
143
|
* @nullable
|
|
144
144
|
*/
|
|
145
145
|
linked_documents?: string[] | null;
|
|
@@ -123,7 +123,7 @@ export interface UpdateCreditNote {
|
|
|
123
123
|
*/
|
|
124
124
|
date_service_to?: string | null;
|
|
125
125
|
/**
|
|
126
|
-
* Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx).
|
|
126
|
+
* Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx). Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited. An issued (non-draft) credit note cannot newly link an advance invoice held by FURS or FINA (422 CREDIT_NOTE_ADVANCE_LINK_REQUIRES_DRAFT); re-sending a link it already has is allowed, and drafts may link (checked again at finalize).
|
|
127
127
|
* @nullable
|
|
128
128
|
*/
|
|
129
129
|
linked_documents?: string[] | null;
|
|
@@ -123,7 +123,7 @@ export interface UpdateCreditNote {
|
|
|
123
123
|
*/
|
|
124
124
|
date_service_to?: string | null;
|
|
125
125
|
/**
|
|
126
|
-
* Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx).
|
|
126
|
+
* Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx). Advance invoice IDs (adv_xxx) are also accepted when the advance invoice is held by a tax authority (a NAV-reported Hungarian advance, reported to NAV as a modification, or a FURS (Slovenia) or FINA (Croatia) fiscalized advance, fiscalized as a reversal referencing the advance), and it is fully paid and not yet deducted on a final invoice. Such a credit note must itself be fiscalized, cannot be combined with invoices in one credit note, and an Article 76.a advance invoice cannot be credited. An issued (non-draft) credit note cannot newly link an advance invoice held by FURS or FINA (422 CREDIT_NOTE_ADVANCE_LINK_REQUIRES_DRAFT); re-sending a link it already has is allowed, and drafts may link (checked again at finalize).
|
|
127
127
|
* @nullable
|
|
128
128
|
*/
|
|
129
129
|
linked_documents?: string[] | null;
|
|
@@ -29904,7 +29904,7 @@ export declare const RenderAdvanceInvoicePreviewBody: zod.ZodUnion<readonly [zod
|
|
|
29904
29904
|
}, zod.z.core.$strip>>>>;
|
|
29905
29905
|
}, zod.z.core.$strip>]>;
|
|
29906
29906
|
/**
|
|
29907
|
-
* Void an advance invoice for technical reasons (duplicate, error, etc.).
|
|
29907
|
+
* Void an advance invoice for technical reasons (duplicate, error, etc.). All linked payments are soft-deleted, reversing their effect on invoice totals. An advance invoice already held by a tax authority cannot be voided: a FURS- or FINA-fiscalized advance invoice (status other than skipped) returns 409 ADVANCE_INVOICE_FISCALIZED_VOID_UNSUPPORTED, and a NAV-reported one returns 409 NAV_ADVANCE_INVOICE_VOID_UNSUPPORTED; reverse those with a credit note against the advance invoice. TicketBAI and VeriFactu advance invoices are immutable (409). An advance invoice applied to a live invoice cannot be voided (422).
|
|
29908
29908
|
* @summary Void an advance invoice
|
|
29909
29909
|
*/
|
|
29910
29910
|
export declare const voidAdvanceInvoicePathIdRegExp: RegExp;
|
|
@@ -29904,7 +29904,7 @@ export declare const RenderAdvanceInvoicePreviewBody: zod.ZodUnion<readonly [zod
|
|
|
29904
29904
|
}, zod.z.core.$strip>>>>;
|
|
29905
29905
|
}, zod.z.core.$strip>]>;
|
|
29906
29906
|
/**
|
|
29907
|
-
* Void an advance invoice for technical reasons (duplicate, error, etc.).
|
|
29907
|
+
* Void an advance invoice for technical reasons (duplicate, error, etc.). All linked payments are soft-deleted, reversing their effect on invoice totals. An advance invoice already held by a tax authority cannot be voided: a FURS- or FINA-fiscalized advance invoice (status other than skipped) returns 409 ADVANCE_INVOICE_FISCALIZED_VOID_UNSUPPORTED, and a NAV-reported one returns 409 NAV_ADVANCE_INVOICE_VOID_UNSUPPORTED; reverse those with a credit note against the advance invoice. TicketBAI and VeriFactu advance invoices are immutable (409). An advance invoice applied to a live invoice cannot be voided (422).
|
|
29908
29908
|
* @summary Void an advance invoice
|
|
29909
29909
|
*/
|
|
29910
29910
|
export declare const voidAdvanceInvoicePathIdRegExp: RegExp;
|
|
@@ -22198,6 +22198,7 @@ Cannot update voided or FURS-fiscalized credit notes. A void reversal credit not
|
|
|
22198
22198
|
If items are provided, they replace all existing items.
|
|
22199
22199
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
22200
22200
|
Slovenian Article 76.a: switching it on explicitly for a document created with pre-calculated totals recalculates the document from its lines; it keeps its creation source and its lines are server-calculated while it carries Article 76.a.
|
|
22201
|
+
An issued (non-draft) credit note cannot newly link an advance invoice held by FURS or FINA (422 CREDIT_NOTE_ADVANCE_LINK_REQUIRES_DRAFT); re-sending a link it already has is allowed, and drafts may link (checked again at finalize).
|
|
22201
22202
|
* @summary Update a credit note
|
|
22202
22203
|
*/
|
|
22203
22204
|
export declare const updateCreditNotePathIdRegExp: RegExp;
|
|
@@ -33570,7 +33571,7 @@ export declare const FiscalizeCreditNoteResponse: zod.ZodObject<{
|
|
|
33570
33571
|
}, zod.z.core.$strip>>>;
|
|
33571
33572
|
}, zod.z.core.$strip>;
|
|
33572
33573
|
/**
|
|
33573
|
-
* Void a credit note for technical reasons (duplicate, error, etc.).
|
|
33574
|
+
* Void a credit note for technical reasons (duplicate, error, etc.). A fiscalized credit note cannot be voided: one with FURS or FINA data returns 422 "Cannot void a fiscalized credit note", and an EET-registered one returns 422 eet_void_unsupported. All linked payments are soft-deleted, reversing their effect on invoice totals. Voiding a system-created void credit note atomically reactivates its source invoice and restores the invoice's released advance allocations; the operation fails without side effects if their original balances are no longer available.
|
|
33574
33575
|
* @summary Void a credit note
|
|
33575
33576
|
*/
|
|
33576
33577
|
export declare const voidCreditNotePathIdRegExp: RegExp;
|
|
@@ -22198,6 +22198,7 @@ Cannot update voided or FURS-fiscalized credit notes. A void reversal credit not
|
|
|
22198
22198
|
If items are provided, they replace all existing items.
|
|
22199
22199
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
22200
22200
|
Slovenian Article 76.a: switching it on explicitly for a document created with pre-calculated totals recalculates the document from its lines; it keeps its creation source and its lines are server-calculated while it carries Article 76.a.
|
|
22201
|
+
An issued (non-draft) credit note cannot newly link an advance invoice held by FURS or FINA (422 CREDIT_NOTE_ADVANCE_LINK_REQUIRES_DRAFT); re-sending a link it already has is allowed, and drafts may link (checked again at finalize).
|
|
22201
22202
|
* @summary Update a credit note
|
|
22202
22203
|
*/
|
|
22203
22204
|
export declare const updateCreditNotePathIdRegExp: RegExp;
|
|
@@ -33570,7 +33571,7 @@ export declare const FiscalizeCreditNoteResponse: zod.ZodObject<{
|
|
|
33570
33571
|
}, zod.z.core.$strip>>>;
|
|
33571
33572
|
}, zod.z.core.$strip>;
|
|
33572
33573
|
/**
|
|
33573
|
-
* Void a credit note for technical reasons (duplicate, error, etc.).
|
|
33574
|
+
* Void a credit note for technical reasons (duplicate, error, etc.). A fiscalized credit note cannot be voided: one with FURS or FINA data returns 422 "Cannot void a fiscalized credit note", and an EET-registered one returns 422 eet_void_unsupported. All linked payments are soft-deleted, reversing their effect on invoice totals. Voiding a system-created void credit note atomically reactivates its source invoice and restores the invoice's released advance allocations; the operation fails without side effects if their original balances are no longer available.
|
|
33574
33575
|
* @summary Void a credit note
|
|
33575
33576
|
*/
|
|
33576
33577
|
export declare const voidCreditNotePathIdRegExp: RegExp;
|
|
@@ -32159,7 +32159,7 @@ export declare const RenderInvoicePreviewBody: zod.ZodUnion<readonly [zod.ZodObj
|
|
|
32159
32159
|
}, zod.z.core.$strip>>>>;
|
|
32160
32160
|
}, zod.z.core.$strip>]>;
|
|
32161
32161
|
/**
|
|
32162
|
-
* Void an invoice for technical reasons (duplicate, error, etc.).
|
|
32162
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). The void creates an offsetting credit note; for FURS-, FINA- or EET-fiscalized invoices that credit note is fiscalized as the reversal (for FURS it references the invoice) and no technical cancellation is sent. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice already has credit notes (for example a partial return), the offsetting credit note reverses only the amount not yet credited: returned quantities are taken off their lines, other earlier credit lines are reversed as negative lines, and the totals and VAT per rate are the invoice minus the earlier credit notes. The void returns 422 and nothing is voided when the invoice is already fully credited, when an earlier credit note is linked to several documents or is in another currency, when the earlier credit notes would leave a negative amount in a VAT rate, when the invoice has several tax rows at one VAT rate, when the net rounding correction would exceed the ±1.00 limit, or when a FURS invoice was fiscalized with a payment amount different from its total and already has credit notes; credit the remainder with a credit note instead. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
32163
32163
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
32164
32164
|
* @summary Void an invoice
|
|
32165
32165
|
*/
|
|
@@ -32159,7 +32159,7 @@ export declare const RenderInvoicePreviewBody: zod.ZodUnion<readonly [zod.ZodObj
|
|
|
32159
32159
|
}, zod.z.core.$strip>>>>;
|
|
32160
32160
|
}, zod.z.core.$strip>]>;
|
|
32161
32161
|
/**
|
|
32162
|
-
* Void an invoice for technical reasons (duplicate, error, etc.).
|
|
32162
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). The void creates an offsetting credit note; for FURS-, FINA- or EET-fiscalized invoices that credit note is fiscalized as the reversal (for FURS it references the invoice) and no technical cancellation is sent. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice already has credit notes (for example a partial return), the offsetting credit note reverses only the amount not yet credited: returned quantities are taken off their lines, other earlier credit lines are reversed as negative lines, and the totals and VAT per rate are the invoice minus the earlier credit notes. The void returns 422 and nothing is voided when the invoice is already fully credited, when an earlier credit note is linked to several documents or is in another currency, when the earlier credit notes would leave a negative amount in a VAT rate, when the invoice has several tax rows at one VAT rate, when the net rounding correction would exceed the ±1.00 limit, or when a FURS invoice was fiscalized with a payment amount different from its total and already has credit notes; credit the remainder with a credit note instead. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
32163
32163
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
32164
32164
|
* @summary Void an invoice
|
|
32165
32165
|
*/
|