@spaceinvoices/js-sdk 18.13.0 → 18.15.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/e-invoicing/e-invoicing.d.cts +1 -1
- package/dist/generated/e-invoicing/e-invoicing.d.ts +1 -1
- package/dist/generated/model/eInvoicingDeliveryRoute.d.cts +17 -0
- package/dist/generated/model/eInvoicingDeliveryRoute.d.ts +17 -0
- package/dist/generated/model/eInvoicingSubmission.d.cts +3 -0
- package/dist/generated/model/eInvoicingSubmission.d.ts +3 -0
- package/dist/generated/model/eInvoicingSubmissionDetail.d.cts +3 -0
- package/dist/generated/model/eInvoicingSubmissionDetail.d.ts +3 -0
- package/dist/generated/model/index.d.cts +1 -0
- package/dist/generated/model/index.d.ts +1 -0
- package/dist/generated/tax-reports/tax-reports.d.cts +3 -2
- package/dist/generated/tax-reports/tax-reports.d.ts +3 -2
- package/dist/generated-zod/e-invoicing/e-invoicing.d.cts +4 -1
- package/dist/generated-zod/e-invoicing/e-invoicing.d.ts +4 -1
- package/dist/generated-zod/tax-reports/tax-reports.d.cts +3 -2
- package/dist/generated-zod/tax-reports/tax-reports.d.ts +3 -2
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -797,7 +797,7 @@ export type searchEInvoicingCustomerResponse = (searchEInvoicingCustomerResponse
|
|
|
797
797
|
export declare const getSearchEInvoicingCustomerUrl: () => string;
|
|
798
798
|
export declare const searchEInvoicingCustomer: (eInvoicingCustomerSearchRequest: EInvoicingCustomerSearchRequest, options?: RequestInit) => Promise<searchEInvoicingCustomerResponse>;
|
|
799
799
|
/**
|
|
800
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
800
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
801
801
|
* @summary Send document
|
|
802
802
|
*/
|
|
803
803
|
export type sendEInvoicingDocumentResponse201 = {
|
|
@@ -797,7 +797,7 @@ export type searchEInvoicingCustomerResponse = (searchEInvoicingCustomerResponse
|
|
|
797
797
|
export declare const getSearchEInvoicingCustomerUrl: () => string;
|
|
798
798
|
export declare const searchEInvoicingCustomer: (eInvoicingCustomerSearchRequest: EInvoicingCustomerSearchRequest, options?: RequestInit) => Promise<searchEInvoicingCustomerResponse>;
|
|
799
799
|
/**
|
|
800
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
800
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
801
801
|
* @summary Send document
|
|
802
802
|
*/
|
|
803
803
|
export type sendEInvoicingDocumentResponse201 = {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Peppol delivery route: `direct` — the recipient's own Peppol registration; `ujp` — UJP, the single Peppol access point for Slovenian public budget users; `bizbox` — the bizBox gateway, which forwards to Slovenian recipients by their tax number. `null` for non-Peppol submissions.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type EInvoicingDeliveryRoute = typeof EInvoicingDeliveryRoute[keyof typeof EInvoicingDeliveryRoute] | null;
|
|
13
|
+
export declare const EInvoicingDeliveryRoute: {
|
|
14
|
+
readonly direct: "direct";
|
|
15
|
+
readonly ujp: "ujp";
|
|
16
|
+
readonly bizbox: "bizbox";
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Peppol delivery route: `direct` — the recipient's own Peppol registration; `ujp` — UJP, the single Peppol access point for Slovenian public budget users; `bizbox` — the bizBox gateway, which forwards to Slovenian recipients by their tax number. `null` for non-Peppol submissions.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type EInvoicingDeliveryRoute = typeof EInvoicingDeliveryRoute[keyof typeof EInvoicingDeliveryRoute] | null;
|
|
13
|
+
export declare const EInvoicingDeliveryRoute: {
|
|
14
|
+
readonly direct: "direct";
|
|
15
|
+
readonly ujp: "ujp";
|
|
16
|
+
readonly bizbox: "bizbox";
|
|
17
|
+
};
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.cjs';
|
|
8
9
|
import type { EInvoicingSubmissionMetadata } from './eInvoicingSubmissionMetadata.cjs';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission status
|
|
@@ -78,5 +79,7 @@ export interface EInvoicingSubmission {
|
|
|
78
79
|
delivered_at?: string | null;
|
|
79
80
|
created_at: string;
|
|
80
81
|
updated_at: string;
|
|
82
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
81
83
|
network?: string;
|
|
84
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
82
85
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.js';
|
|
8
9
|
import type { EInvoicingSubmissionMetadata } from './eInvoicingSubmissionMetadata.js';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission status
|
|
@@ -78,5 +79,7 @@ export interface EInvoicingSubmission {
|
|
|
78
79
|
delivered_at?: string | null;
|
|
79
80
|
created_at: string;
|
|
80
81
|
updated_at: string;
|
|
82
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
81
83
|
network?: string;
|
|
84
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
82
85
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.cjs';
|
|
8
9
|
import type { EInvoicingSubmissionDetailMetadata } from './eInvoicingSubmissionDetailMetadata.cjs';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission detail including generated UBL XML
|
|
@@ -82,5 +83,7 @@ export interface EInvoicingSubmissionDetail {
|
|
|
82
83
|
delivered_at?: string | null;
|
|
83
84
|
created_at: string;
|
|
84
85
|
updated_at: string;
|
|
86
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
85
87
|
network?: string;
|
|
88
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
86
89
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { EInvoicingDeliveryRoute } from './eInvoicingDeliveryRoute.js';
|
|
8
9
|
import type { EInvoicingSubmissionDetailMetadata } from './eInvoicingSubmissionDetailMetadata.js';
|
|
9
10
|
/**
|
|
10
11
|
* E-invoice submission detail including generated UBL XML
|
|
@@ -82,5 +83,7 @@ export interface EInvoicingSubmissionDetail {
|
|
|
82
83
|
delivered_at?: string | null;
|
|
83
84
|
created_at: string;
|
|
84
85
|
updated_at: string;
|
|
86
|
+
/** Delivery network, e.g. peppol or france_e_invoicing. */
|
|
85
87
|
network?: string;
|
|
88
|
+
delivery_route?: EInvoicingDeliveryRoute | null;
|
|
86
89
|
}
|
|
@@ -533,6 +533,7 @@ export * from './eetFiscalizationResponseStatus.cjs';
|
|
|
533
533
|
export * from './eInvoiceDeliveryAddress.cjs';
|
|
534
534
|
export * from './eInvoicingCustomerSearchRequest.cjs';
|
|
535
535
|
export * from './eInvoicingCustomerSearchResult.cjs';
|
|
536
|
+
export * from './eInvoicingDeliveryRoute.cjs';
|
|
536
537
|
export * from './eInvoicingEnrollment.cjs';
|
|
537
538
|
export * from './eInvoicingEnrollmentAuthorizationResponse.cjs';
|
|
538
539
|
export * from './eInvoicingEnrollmentChannel.cjs';
|
|
@@ -533,6 +533,7 @@ export * from './eetFiscalizationResponseStatus.js';
|
|
|
533
533
|
export * from './eInvoiceDeliveryAddress.js';
|
|
534
534
|
export * from './eInvoicingCustomerSearchRequest.js';
|
|
535
535
|
export * from './eInvoicingCustomerSearchResult.js';
|
|
536
|
+
export * from './eInvoicingDeliveryRoute.js';
|
|
536
537
|
export * from './eInvoicingEnrollment.js';
|
|
537
538
|
export * from './eInvoicingEnrollmentAuthorizationResponse.js';
|
|
538
539
|
export * from './eInvoicingEnrollmentChannel.js';
|
|
@@ -286,7 +286,8 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
286
286
|
- Draft and deleted documents and voided credit notes are excluded. A voided invoice is excluded together with the credit note created when it was voided if both fall in the same period. If that credit note falls in another period, the invoice is reported in its own period and the credit note in its own. A voided invoice without such a credit note is excluded
|
|
287
287
|
- Domestic outgoing advances are included as separate KIR rows and their allocated net/VAT amounts are subtracted from the linked final invoice. For intra-EU B2B supplies, goods prepayments are omitted and not deducted; only the classified service component is reported in P10 and deducted from the final invoice. A fully prepaid reportable service still emits the final reconciliation row with P10 empty/zero
|
|
288
288
|
- Third-country outgoing documents use the persisted item tax treatment: bases with an explicit 0% tax row map to P7, while no-tax net amounts (including unrated summary bases) map to P27. Mixed documents are split between both fields. Product/service classification and customer geography are not substitutes for tax treatment; the legacy `export` transaction type remains an explicit goods-export marker and maps to P7
|
|
289
|
-
-
|
|
289
|
+
- An explicit 0% base on a domestic or intra-EU B2C outgoing document is an exempt supply without the right to deduct; it is reported in P9 and excluded from P7
|
|
290
|
+
- A domestic or intra-EU B2C outgoing base without a VAT rate fails closed with guidance to set the correct VAT rate, use 0% with an exemption note (e.g. Art. 42 ZDDV-1) for exempt supplies, or correct the entity's VAT status; so do tax-summary bases that do not reconcile with the net total
|
|
290
291
|
- The selected month or quarter includes the complete final calendar day
|
|
291
292
|
- Customer identity fields P5/P6/P6DS are omitted for end consumers
|
|
292
293
|
- KIR P2/P4 are the issued-document date. An invoice issued before 2026-11-01 is selected by its issue date. An invoice issued from 2026-11-01 is selected by its VAT tax point: the end of the service period (`date_service_to`, else `date_service`, else `date`), or the payment date when one payment received before the service covers the whole total. A part prepayment keeps the default tax point and is returned as a warning by the VAT return preview. An invoice issued after the KIR cut-off of its tax-point period is selected by its issue date, and the preview warns when it charges VAT. Credit notes and advance invoices are selected by their issue date
|
|
@@ -303,7 +304,7 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
303
304
|
- An explicit 0% tax row with a non-zero base is an exempt purchase and maps to KPR P14 for a standard taxpayer. No tax rows are not equivalent to 0%: non-VAT-supplier purchases are excluded, while an otherwise reportable expense without tax metadata fails validation
|
|
304
305
|
- Cross-border supplier-charged foreign VAT is excluded. Mixing it with Slovenian-reportable reverse-charge VAT is rejected as ambiguous
|
|
305
306
|
- Fixed-asset KPR columns P12/P13 (taxed) and P15/P16 (exempt) are reported only for expenses explicitly linked to a fixed asset of the register (real estate: P12/P15, other assets: P13/P16). The value is the linked taxed or exempt base capped at the linked assets' acquisition cost. When the expense carries non-deductible VAT, that VAT is taken out of the acquisition cost first: linked assets that cover the whole expense (their cost reaches the expense net plus its non-deductible VAT, within 1 cent) report the whole base; otherwise the cost is reduced to its share without VAT (cost × base ÷ (base + non-deductible VAT)), which requires a single VAT rate and deductible share across the expense. A purchase with non-deductible VAT that mixes VAT rates or deductibility is rejected with HTTP 422. A purchase linked to both real-estate and other assets, or mixing taxed and exempt bases, is rejected with HTTP 422. Customs imports remain unsupported, and capitalization is never inferred from supplier geography, item descriptions, or financial categories
|
|
306
|
-
-
|
|
307
|
+
- Domestic or intra-EU B2C bases without a VAT rate, tax summaries that do not reconcile with the net total, unknown transaction types, unsupported tax rates, missing EUR conversions, and amounts outside the FURS XSD bounds are rejected with HTTP 422 instead of producing an unsafe filing
|
|
307
308
|
- A 422 caused by document data lists the affected documents in `cause.documents` (`number`, `type`, `reason`), up to 100, with the full count in `cause.total_documents`
|
|
308
309
|
- Entity must have a valid 8-digit Slovenian tax number (SI prefix is automatically removed)
|
|
309
310
|
|
|
@@ -286,7 +286,8 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
286
286
|
- Draft and deleted documents and voided credit notes are excluded. A voided invoice is excluded together with the credit note created when it was voided if both fall in the same period. If that credit note falls in another period, the invoice is reported in its own period and the credit note in its own. A voided invoice without such a credit note is excluded
|
|
287
287
|
- Domestic outgoing advances are included as separate KIR rows and their allocated net/VAT amounts are subtracted from the linked final invoice. For intra-EU B2B supplies, goods prepayments are omitted and not deducted; only the classified service component is reported in P10 and deducted from the final invoice. A fully prepaid reportable service still emits the final reconciliation row with P10 empty/zero
|
|
288
288
|
- Third-country outgoing documents use the persisted item tax treatment: bases with an explicit 0% tax row map to P7, while no-tax net amounts (including unrated summary bases) map to P27. Mixed documents are split between both fields. Product/service classification and customer geography are not substitutes for tax treatment; the legacy `export` transaction type remains an explicit goods-export marker and maps to P7
|
|
289
|
-
-
|
|
289
|
+
- An explicit 0% base on a domestic or intra-EU B2C outgoing document is an exempt supply without the right to deduct; it is reported in P9 and excluded from P7
|
|
290
|
+
- A domestic or intra-EU B2C outgoing base without a VAT rate fails closed with guidance to set the correct VAT rate, use 0% with an exemption note (e.g. Art. 42 ZDDV-1) for exempt supplies, or correct the entity's VAT status; so do tax-summary bases that do not reconcile with the net total
|
|
290
291
|
- The selected month or quarter includes the complete final calendar day
|
|
291
292
|
- Customer identity fields P5/P6/P6DS are omitted for end consumers
|
|
292
293
|
- KIR P2/P4 are the issued-document date. An invoice issued before 2026-11-01 is selected by its issue date. An invoice issued from 2026-11-01 is selected by its VAT tax point: the end of the service period (`date_service_to`, else `date_service`, else `date`), or the payment date when one payment received before the service covers the whole total. A part prepayment keeps the default tax point and is returned as a warning by the VAT return preview. An invoice issued after the KIR cut-off of its tax-point period is selected by its issue date, and the preview warns when it charges VAT. Credit notes and advance invoices are selected by their issue date
|
|
@@ -303,7 +304,7 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
303
304
|
- An explicit 0% tax row with a non-zero base is an exempt purchase and maps to KPR P14 for a standard taxpayer. No tax rows are not equivalent to 0%: non-VAT-supplier purchases are excluded, while an otherwise reportable expense without tax metadata fails validation
|
|
304
305
|
- Cross-border supplier-charged foreign VAT is excluded. Mixing it with Slovenian-reportable reverse-charge VAT is rejected as ambiguous
|
|
305
306
|
- Fixed-asset KPR columns P12/P13 (taxed) and P15/P16 (exempt) are reported only for expenses explicitly linked to a fixed asset of the register (real estate: P12/P15, other assets: P13/P16). The value is the linked taxed or exempt base capped at the linked assets' acquisition cost. When the expense carries non-deductible VAT, that VAT is taken out of the acquisition cost first: linked assets that cover the whole expense (their cost reaches the expense net plus its non-deductible VAT, within 1 cent) report the whole base; otherwise the cost is reduced to its share without VAT (cost × base ÷ (base + non-deductible VAT)), which requires a single VAT rate and deductible share across the expense. A purchase with non-deductible VAT that mixes VAT rates or deductibility is rejected with HTTP 422. A purchase linked to both real-estate and other assets, or mixing taxed and exempt bases, is rejected with HTTP 422. Customs imports remain unsupported, and capitalization is never inferred from supplier geography, item descriptions, or financial categories
|
|
306
|
-
-
|
|
307
|
+
- Domestic or intra-EU B2C bases without a VAT rate, tax summaries that do not reconcile with the net total, unknown transaction types, unsupported tax rates, missing EUR conversions, and amounts outside the FURS XSD bounds are rejected with HTTP 422 instead of producing an unsafe filing
|
|
307
308
|
- A 422 caused by document data lists the affected documents in `cause.documents` (`number`, `type`, `reason`), up to 100, with the full count in `cause.total_documents`
|
|
308
309
|
- Entity must have a valid 8-digit Slovenian tax number (SI prefix is automatically removed)
|
|
309
310
|
|
|
@@ -708,7 +708,7 @@ export declare const SearchEInvoicingCustomerResponse: zod.ZodObject<{
|
|
|
708
708
|
}, zod.z.core.$strip>>;
|
|
709
709
|
}, zod.z.core.$strip>;
|
|
710
710
|
/**
|
|
711
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
711
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
712
712
|
* @summary Send document
|
|
713
713
|
*/
|
|
714
714
|
export declare const SendEInvoicingDocumentParams: zod.ZodObject<{
|
|
@@ -841,6 +841,7 @@ export declare const ListEInvoicingSubmissionsResponse: zod.ZodObject<{
|
|
|
841
841
|
created_at: zod.z.ZodISODateTime;
|
|
842
842
|
updated_at: zod.z.ZodISODateTime;
|
|
843
843
|
network: zod.ZodOptional<zod.ZodString>;
|
|
844
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
844
845
|
}, zod.z.core.$strip>>;
|
|
845
846
|
pagination: zod.ZodObject<{
|
|
846
847
|
total: zod.ZodNumber;
|
|
@@ -903,6 +904,7 @@ export declare const GetEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
903
904
|
created_at: zod.z.ZodISODateTime;
|
|
904
905
|
updated_at: zod.z.ZodISODateTime;
|
|
905
906
|
network: zod.ZodOptional<zod.ZodString>;
|
|
907
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
906
908
|
}, zod.z.core.$strip>;
|
|
907
909
|
/**
|
|
908
910
|
* Retry a failed or rejected e-invoice submission.
|
|
@@ -956,4 +958,5 @@ export declare const RetryEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
956
958
|
created_at: zod.z.ZodISODateTime;
|
|
957
959
|
updated_at: zod.z.ZodISODateTime;
|
|
958
960
|
network: zod.ZodOptional<zod.ZodString>;
|
|
961
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
959
962
|
}, zod.z.core.$strip>;
|
|
@@ -708,7 +708,7 @@ export declare const SearchEInvoicingCustomerResponse: zod.ZodObject<{
|
|
|
708
708
|
}, zod.z.core.$strip>>;
|
|
709
709
|
}, zod.z.core.$strip>;
|
|
710
710
|
/**
|
|
711
|
-
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address.
|
|
711
|
+
* Send an invoice or credit note over the entity's configured network. For French entities this also routes B2C and international B2B sales through the required e-reporting process. Supply delivery_address when the physical delivery address differs from the buyer address. Slovenian senders invoicing a Slovenian customer with a valid Slovenian tax number may omit the Peppol address (or give only the VAT-derived 9949 address): candidates are tried in order — the explicit address, the customer's tax number under scheme 9949 with and without the SI prefix (for example 9949:SI12345678, then 9949:12345678), UJP (known budget users only), then the bizBox gateway (9949:bizbox) — and the first registered recipient supporting the document type is used. UJP and bizBox route to the recipient by its Slovenian tax number, which the customer must therefore have. The chosen route is returned as delivery_route.
|
|
712
712
|
* @summary Send document
|
|
713
713
|
*/
|
|
714
714
|
export declare const SendEInvoicingDocumentParams: zod.ZodObject<{
|
|
@@ -841,6 +841,7 @@ export declare const ListEInvoicingSubmissionsResponse: zod.ZodObject<{
|
|
|
841
841
|
created_at: zod.z.ZodISODateTime;
|
|
842
842
|
updated_at: zod.z.ZodISODateTime;
|
|
843
843
|
network: zod.ZodOptional<zod.ZodString>;
|
|
844
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
844
845
|
}, zod.z.core.$strip>>;
|
|
845
846
|
pagination: zod.ZodObject<{
|
|
846
847
|
total: zod.ZodNumber;
|
|
@@ -903,6 +904,7 @@ export declare const GetEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
903
904
|
created_at: zod.z.ZodISODateTime;
|
|
904
905
|
updated_at: zod.z.ZodISODateTime;
|
|
905
906
|
network: zod.ZodOptional<zod.ZodString>;
|
|
907
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
906
908
|
}, zod.z.core.$strip>;
|
|
907
909
|
/**
|
|
908
910
|
* Retry a failed or rejected e-invoice submission.
|
|
@@ -956,4 +958,5 @@ export declare const RetryEInvoicingSubmissionByIdResponse: zod.ZodObject<{
|
|
|
956
958
|
created_at: zod.z.ZodISODateTime;
|
|
957
959
|
updated_at: zod.z.ZodISODateTime;
|
|
958
960
|
network: zod.ZodOptional<zod.ZodString>;
|
|
961
|
+
delivery_route: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"direct">, zod.ZodLiteral<"ujp">, zod.ZodLiteral<"bizbox">, zod.ZodLiteral<null>]>>>;
|
|
959
962
|
}, zod.z.core.$strip>;
|
|
@@ -338,7 +338,8 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
338
338
|
- Draft and deleted documents and voided credit notes are excluded. A voided invoice is excluded together with the credit note created when it was voided if both fall in the same period. If that credit note falls in another period, the invoice is reported in its own period and the credit note in its own. A voided invoice without such a credit note is excluded
|
|
339
339
|
- Domestic outgoing advances are included as separate KIR rows and their allocated net/VAT amounts are subtracted from the linked final invoice. For intra-EU B2B supplies, goods prepayments are omitted and not deducted; only the classified service component is reported in P10 and deducted from the final invoice. A fully prepaid reportable service still emits the final reconciliation row with P10 empty/zero
|
|
340
340
|
- Third-country outgoing documents use the persisted item tax treatment: bases with an explicit 0% tax row map to P7, while no-tax net amounts (including unrated summary bases) map to P27. Mixed documents are split between both fields. Product/service classification and customer geography are not substitutes for tax treatment; the legacy `export` transaction type remains an explicit goods-export marker and maps to P7
|
|
341
|
-
-
|
|
341
|
+
- An explicit 0% base on a domestic or intra-EU B2C outgoing document is an exempt supply without the right to deduct; it is reported in P9 and excluded from P7
|
|
342
|
+
- A domestic or intra-EU B2C outgoing base without a VAT rate fails closed with guidance to set the correct VAT rate, use 0% with an exemption note (e.g. Art. 42 ZDDV-1) for exempt supplies, or correct the entity's VAT status; so do tax-summary bases that do not reconcile with the net total
|
|
342
343
|
- The selected month or quarter includes the complete final calendar day
|
|
343
344
|
- Customer identity fields P5/P6/P6DS are omitted for end consumers
|
|
344
345
|
- KIR P2/P4 are the issued-document date. An invoice issued before 2026-11-01 is selected by its issue date. An invoice issued from 2026-11-01 is selected by its VAT tax point: the end of the service period (`date_service_to`, else `date_service`, else `date`), or the payment date when one payment received before the service covers the whole total. A part prepayment keeps the default tax point and is returned as a warning by the VAT return preview. An invoice issued after the KIR cut-off of its tax-point period is selected by its issue date, and the preview warns when it charges VAT. Credit notes and advance invoices are selected by their issue date
|
|
@@ -355,7 +356,7 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
355
356
|
- An explicit 0% tax row with a non-zero base is an exempt purchase and maps to KPR P14 for a standard taxpayer. No tax rows are not equivalent to 0%: non-VAT-supplier purchases are excluded, while an otherwise reportable expense without tax metadata fails validation
|
|
356
357
|
- Cross-border supplier-charged foreign VAT is excluded. Mixing it with Slovenian-reportable reverse-charge VAT is rejected as ambiguous
|
|
357
358
|
- Fixed-asset KPR columns P12/P13 (taxed) and P15/P16 (exempt) are reported only for expenses explicitly linked to a fixed asset of the register (real estate: P12/P15, other assets: P13/P16). The value is the linked taxed or exempt base capped at the linked assets' acquisition cost. When the expense carries non-deductible VAT, that VAT is taken out of the acquisition cost first: linked assets that cover the whole expense (their cost reaches the expense net plus its non-deductible VAT, within 1 cent) report the whole base; otherwise the cost is reduced to its share without VAT (cost × base ÷ (base + non-deductible VAT)), which requires a single VAT rate and deductible share across the expense. A purchase with non-deductible VAT that mixes VAT rates or deductibility is rejected with HTTP 422. A purchase linked to both real-estate and other assets, or mixing taxed and exempt bases, is rejected with HTTP 422. Customs imports remain unsupported, and capitalization is never inferred from supplier geography, item descriptions, or financial categories
|
|
358
|
-
-
|
|
359
|
+
- Domestic or intra-EU B2C bases without a VAT rate, tax summaries that do not reconcile with the net total, unknown transaction types, unsupported tax rates, missing EUR conversions, and amounts outside the FURS XSD bounds are rejected with HTTP 422 instead of producing an unsafe filing
|
|
359
360
|
- A 422 caused by document data lists the affected documents in `cause.documents` (`number`, `type`, `reason`), up to 100, with the full count in `cause.total_documents`
|
|
360
361
|
- Entity must have a valid 8-digit Slovenian tax number (SI prefix is automatically removed)
|
|
361
362
|
|
|
@@ -338,7 +338,8 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
338
338
|
- Draft and deleted documents and voided credit notes are excluded. A voided invoice is excluded together with the credit note created when it was voided if both fall in the same period. If that credit note falls in another period, the invoice is reported in its own period and the credit note in its own. A voided invoice without such a credit note is excluded
|
|
339
339
|
- Domestic outgoing advances are included as separate KIR rows and their allocated net/VAT amounts are subtracted from the linked final invoice. For intra-EU B2B supplies, goods prepayments are omitted and not deducted; only the classified service component is reported in P10 and deducted from the final invoice. A fully prepaid reportable service still emits the final reconciliation row with P10 empty/zero
|
|
340
340
|
- Third-country outgoing documents use the persisted item tax treatment: bases with an explicit 0% tax row map to P7, while no-tax net amounts (including unrated summary bases) map to P27. Mixed documents are split between both fields. Product/service classification and customer geography are not substitutes for tax treatment; the legacy `export` transaction type remains an explicit goods-export marker and maps to P7
|
|
341
|
-
-
|
|
341
|
+
- An explicit 0% base on a domestic or intra-EU B2C outgoing document is an exempt supply without the right to deduct; it is reported in P9 and excluded from P7
|
|
342
|
+
- A domestic or intra-EU B2C outgoing base without a VAT rate fails closed with guidance to set the correct VAT rate, use 0% with an exemption note (e.g. Art. 42 ZDDV-1) for exempt supplies, or correct the entity's VAT status; so do tax-summary bases that do not reconcile with the net total
|
|
342
343
|
- The selected month or quarter includes the complete final calendar day
|
|
343
344
|
- Customer identity fields P5/P6/P6DS are omitted for end consumers
|
|
344
345
|
- KIR P2/P4 are the issued-document date. An invoice issued before 2026-11-01 is selected by its issue date. An invoice issued from 2026-11-01 is selected by its VAT tax point: the end of the service period (`date_service_to`, else `date_service`, else `date`), or the payment date when one payment received before the service covers the whole total. A part prepayment keeps the default tax point and is returned as a warning by the VAT return preview. An invoice issued after the KIR cut-off of its tax-point period is selected by its issue date, and the preview warns when it charges VAT. Credit notes and advance invoices are selected by their issue date
|
|
@@ -355,7 +356,7 @@ when a period has no applicable records, as required for a joint eDavki submissi
|
|
|
355
356
|
- An explicit 0% tax row with a non-zero base is an exempt purchase and maps to KPR P14 for a standard taxpayer. No tax rows are not equivalent to 0%: non-VAT-supplier purchases are excluded, while an otherwise reportable expense without tax metadata fails validation
|
|
356
357
|
- Cross-border supplier-charged foreign VAT is excluded. Mixing it with Slovenian-reportable reverse-charge VAT is rejected as ambiguous
|
|
357
358
|
- Fixed-asset KPR columns P12/P13 (taxed) and P15/P16 (exempt) are reported only for expenses explicitly linked to a fixed asset of the register (real estate: P12/P15, other assets: P13/P16). The value is the linked taxed or exempt base capped at the linked assets' acquisition cost. When the expense carries non-deductible VAT, that VAT is taken out of the acquisition cost first: linked assets that cover the whole expense (their cost reaches the expense net plus its non-deductible VAT, within 1 cent) report the whole base; otherwise the cost is reduced to its share without VAT (cost × base ÷ (base + non-deductible VAT)), which requires a single VAT rate and deductible share across the expense. A purchase with non-deductible VAT that mixes VAT rates or deductibility is rejected with HTTP 422. A purchase linked to both real-estate and other assets, or mixing taxed and exempt bases, is rejected with HTTP 422. Customs imports remain unsupported, and capitalization is never inferred from supplier geography, item descriptions, or financial categories
|
|
358
|
-
-
|
|
359
|
+
- Domestic or intra-EU B2C bases without a VAT rate, tax summaries that do not reconcile with the net total, unknown transaction types, unsupported tax rates, missing EUR conversions, and amounts outside the FURS XSD bounds are rejected with HTTP 422 instead of producing an unsafe filing
|
|
359
360
|
- A 422 caused by document data lists the affected documents in `cause.documents` (`number`, `type`, `reason`), up to 100, with the full count in `cause.total_documents`
|
|
360
361
|
- Entity must have a valid 8-digit Slovenian tax number (SI prefix is automatically removed)
|
|
361
362
|
|