@spaceinvoices/js-sdk 18.20.0 → 18.22.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.
@@ -209,7 +209,7 @@ export declare const getDeleteCustomerUrl: (id: string) => string;
209
209
  export declare const deleteCustomer: (id: string, options?: RequestInit) => Promise<deleteCustomerResponse>;
210
210
  /**
211
211
  * Which items, in what quantity and for what net amount were sold to this customer in a date range.
212
- Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, voided and deleted documents are excluded. A voided invoice counts as if it never happened, so every credit note issued against it (including its cancellation credit note) is excluded too.
212
+ Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, deleted documents, voided credit notes and voided advance invoices are excluded. A voided invoice is counted together with the credit note that reverses it, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice. Any other voided invoice counts as if it never happened, together with its cancellation credit note, and any other credit note issued against a voided invoice is excluded too.
213
213
  Items are grouped by catalog item ID when available, or by case-insensitive name. Amounts are in entity currency, rows are ordered by gross amount (total_with_tax, highest first); totals.quantity_net is null when the items use different units. The period may span up to 20 years.
214
214
  Also available for soft-deleted customers. To download the same data as a spreadsheet use the sales-per-item export with customer_id.
215
215
  * @summary Get items sold to a customer
@@ -209,7 +209,7 @@ export declare const getDeleteCustomerUrl: (id: string) => string;
209
209
  export declare const deleteCustomer: (id: string, options?: RequestInit) => Promise<deleteCustomerResponse>;
210
210
  /**
211
211
  * Which items, in what quantity and for what net amount were sold to this customer in a date range.
212
- Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, voided and deleted documents are excluded. A voided invoice counts as if it never happened, so every credit note issued against it (including its cancellation credit note) is excluded too.
212
+ Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, deleted documents, voided credit notes and voided advance invoices are excluded. A voided invoice is counted together with the credit note that reverses it, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice. Any other voided invoice counts as if it never happened, together with its cancellation credit note, and any other credit note issued against a voided invoice is excluded too.
213
213
  Items are grouped by catalog item ID when available, or by case-insensitive name. Amounts are in entity currency, rows are ordered by gross amount (total_with_tax, highest first); totals.quantity_net is null when the items use different units. The period may span up to 20 years.
214
214
  Also available for soft-deleted customers. To download the same data as a spreadsheet use the sales-per-item export with customer_id.
215
215
  * @summary Get items sold to a customer
@@ -53,7 +53,7 @@ export declare const exportDocuments: (params: ExportDocumentsParams, options?:
53
53
  * Export aggregated sales data per item (product/service) for a given date range.
54
54
  Includes quantities sold/returned, average price, and totals.
55
55
  Aggregates across invoices, credit notes, and advance invoices.
56
- Voided invoices are excluded together with every credit note issued against them (including their cancellation credit notes).
56
+ A voided invoice is counted together with the credit note that reverses it (sold and returned), so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice neither document counts, as before. Voided invoices without a reversing credit note, and any other credit note issued against a voided invoice, are excluded.
57
57
  Items are grouped by catalog item ID when available, or by exact name match.
58
58
  * @summary Export sales per item for a period
59
59
  */
@@ -53,7 +53,7 @@ export declare const exportDocuments: (params: ExportDocumentsParams, options?:
53
53
  * Export aggregated sales data per item (product/service) for a given date range.
54
54
  Includes quantities sold/returned, average price, and totals.
55
55
  Aggregates across invoices, credit notes, and advance invoices.
56
- Voided invoices are excluded together with every credit note issued against them (including their cancellation credit notes).
56
+ A voided invoice is counted together with the credit note that reverses it (sold and returned), so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice neither document counts, as before. Voided invoices without a reversing credit note, and any other credit note issued against a voided invoice, are excluded.
57
57
  Items are grouped by catalog item ID when available, or by exact name match.
58
58
  * @summary Export sales per item for a period
59
59
  */
@@ -910,7 +910,7 @@ export type renderInvoicePreviewResponse = (renderInvoicePreviewResponseSuccess
910
910
  export declare const getRenderInvoicePreviewUrl: (params?: RenderInvoicePreviewParams) => string;
911
911
  export declare const renderInvoicePreview: (partialInvoicePreviewCompleteInvoicePreview: PartialInvoicePreview | CompleteInvoicePreview, params?: RenderInvoicePreviewParams, options?: RequestInit) => Promise<renderInvoicePreviewResponse>;
912
912
  /**
913
- * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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. For business corrections, create a credit note instead.
913
+ * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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 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.
914
914
  Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
915
915
  * @summary Void an invoice
916
916
  */
@@ -910,7 +910,7 @@ export type renderInvoicePreviewResponse = (renderInvoicePreviewResponseSuccess
910
910
  export declare const getRenderInvoicePreviewUrl: (params?: RenderInvoicePreviewParams) => string;
911
911
  export declare const renderInvoicePreview: (partialInvoicePreviewCompleteInvoicePreview: PartialInvoicePreview | CompleteInvoicePreview, params?: RenderInvoicePreviewParams, options?: RequestInit) => Promise<renderInvoicePreviewResponse>;
912
912
  /**
913
- * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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. For business corrections, create a credit note instead.
913
+ * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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 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.
914
914
  Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
915
915
  * @summary Void an invoice
916
916
  */
@@ -545,7 +545,7 @@ export type exportSloveniaVodXmlResponse = (exportSloveniaVodXmlResponseSuccess
545
545
  export declare const getExportSloveniaVodXmlUrl: () => string;
546
546
  export declare const exportSloveniaVodXml: (exportSloveniaVodXmlBody: ExportSloveniaVodXmlBody, options?: RequestInit) => Promise<exportSloveniaVodXmlResponse>;
547
547
  /**
548
- * Download miniMAX XML for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
548
+ * Download miniMAX XML for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range. A voided invoice is included together with the credit note that reverses it, each on its own date, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided documents without a reversing credit note, voided credit notes and voided advance invoices are excluded. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
549
549
  * @summary Export Slovenia miniMAX accounting XML
550
550
  */
551
551
  export type exportSloveniaMinimaxXmlResponse200 = {
@@ -586,7 +586,7 @@ export type exportSloveniaMinimaxXmlResponse = (exportSloveniaMinimaxXmlResponse
586
586
  export declare const getExportSloveniaMinimaxXmlUrl: () => string;
587
587
  export declare const exportSloveniaMinimaxXml: (exportSloveniaMinimaxXmlBody: ExportSloveniaMinimaxXmlBody, options?: RequestInit) => Promise<exportSloveniaMinimaxXmlResponse>;
588
588
  /**
589
- * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
589
+ * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export: a voided invoice is included together with the credit note that reverses it when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
590
590
  * @summary Export Slovenia VASCO accounting XML
591
591
  */
592
592
  export type exportSloveniaVascoXmlResponse200 = {
@@ -627,7 +627,7 @@ export type exportSloveniaVascoXmlResponse = (exportSloveniaVascoXmlResponseSucc
627
627
  export declare const getExportSloveniaVascoXmlUrl: () => string;
628
628
  export declare const exportSloveniaVascoXml: (exportSloveniaVascoXmlBody: ExportSloveniaVascoXmlBody, options?: RequestInit) => Promise<exportSloveniaVascoXmlResponse>;
629
629
  /**
630
- * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized, non-voided invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
630
+ * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. A voided invoice is included together with the credit note that reverses it, each on its own date, when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided invoices without a reversing credit note, voided credit notes and voided expenses are excluded. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
631
631
  * @summary Export QuickBooks Online import files
632
632
  */
633
633
  export type exportQuickbooksCsvResponse200 = {
@@ -545,7 +545,7 @@ export type exportSloveniaVodXmlResponse = (exportSloveniaVodXmlResponseSuccess
545
545
  export declare const getExportSloveniaVodXmlUrl: () => string;
546
546
  export declare const exportSloveniaVodXml: (exportSloveniaVodXmlBody: ExportSloveniaVodXmlBody, options?: RequestInit) => Promise<exportSloveniaVodXmlResponse>;
547
547
  /**
548
- * Download miniMAX XML for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
548
+ * Download miniMAX XML for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range. A voided invoice is included together with the credit note that reverses it, each on its own date, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided documents without a reversing credit note, voided credit notes and voided advance invoices are excluded. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
549
549
  * @summary Export Slovenia miniMAX accounting XML
550
550
  */
551
551
  export type exportSloveniaMinimaxXmlResponse200 = {
@@ -586,7 +586,7 @@ export type exportSloveniaMinimaxXmlResponse = (exportSloveniaMinimaxXmlResponse
586
586
  export declare const getExportSloveniaMinimaxXmlUrl: () => string;
587
587
  export declare const exportSloveniaMinimaxXml: (exportSloveniaMinimaxXmlBody: ExportSloveniaMinimaxXmlBody, options?: RequestInit) => Promise<exportSloveniaMinimaxXmlResponse>;
588
588
  /**
589
- * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
589
+ * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export: a voided invoice is included together with the credit note that reverses it when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
590
590
  * @summary Export Slovenia VASCO accounting XML
591
591
  */
592
592
  export type exportSloveniaVascoXmlResponse200 = {
@@ -627,7 +627,7 @@ export type exportSloveniaVascoXmlResponse = (exportSloveniaVascoXmlResponseSucc
627
627
  export declare const getExportSloveniaVascoXmlUrl: () => string;
628
628
  export declare const exportSloveniaVascoXml: (exportSloveniaVascoXmlBody: ExportSloveniaVascoXmlBody, options?: RequestInit) => Promise<exportSloveniaVascoXmlResponse>;
629
629
  /**
630
- * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized, non-voided invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
630
+ * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. A voided invoice is included together with the credit note that reverses it, each on its own date, when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided invoices without a reversing credit note, voided credit notes and voided expenses are excluded. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
631
631
  * @summary Export QuickBooks Online import files
632
632
  */
633
633
  export type exportQuickbooksCsvResponse200 = {
@@ -462,7 +462,7 @@ export declare const DeleteCustomerHeader: zod.ZodObject<{
462
462
  }, zod.z.core.$strip>;
463
463
  /**
464
464
  * Which items, in what quantity and for what net amount were sold to this customer in a date range.
465
- Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, voided and deleted documents are excluded. A voided invoice counts as if it never happened, so every credit note issued against it (including its cancellation credit note) is excluded too.
465
+ Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, deleted documents, voided credit notes and voided advance invoices are excluded. A voided invoice is counted together with the credit note that reverses it, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice. Any other voided invoice counts as if it never happened, together with its cancellation credit note, and any other credit note issued against a voided invoice is excluded too.
466
466
  Items are grouped by catalog item ID when available, or by case-insensitive name. Amounts are in entity currency, rows are ordered by gross amount (total_with_tax, highest first); totals.quantity_net is null when the items use different units. The period may span up to 20 years.
467
467
  Also available for soft-deleted customers. To download the same data as a spreadsheet use the sales-per-item export with customer_id.
468
468
  * @summary Get items sold to a customer
@@ -462,7 +462,7 @@ export declare const DeleteCustomerHeader: zod.ZodObject<{
462
462
  }, zod.z.core.$strip>;
463
463
  /**
464
464
  * Which items, in what quantity and for what net amount were sold to this customer in a date range.
465
- Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, voided and deleted documents are excluded. A voided invoice counts as if it never happened, so every credit note issued against it (including its cancellation credit note) is excluded too.
465
+ Counts finalized invoices and advance invoices that are not applied to a live invoice; credit notes are subtracted. Drafts, deleted documents, voided credit notes and voided advance invoices are excluded. A voided invoice is counted together with the credit note that reverses it, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice. Any other voided invoice counts as if it never happened, together with its cancellation credit note, and any other credit note issued against a voided invoice is excluded too.
466
466
  Items are grouped by catalog item ID when available, or by case-insensitive name. Amounts are in entity currency, rows are ordered by gross amount (total_with_tax, highest first); totals.quantity_net is null when the items use different units. The period may span up to 20 years.
467
467
  Also available for soft-deleted customers. To download the same data as a spreadsheet use the sales-per-item export with customer_id.
468
468
  * @summary Get items sold to a customer
@@ -39,7 +39,7 @@ export declare const ExportDocumentsHeader: zod.ZodObject<{
39
39
  * Export aggregated sales data per item (product/service) for a given date range.
40
40
  Includes quantities sold/returned, average price, and totals.
41
41
  Aggregates across invoices, credit notes, and advance invoices.
42
- Voided invoices are excluded together with every credit note issued against them (including their cancellation credit notes).
42
+ A voided invoice is counted together with the credit note that reverses it (sold and returned), so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice neither document counts, as before. Voided invoices without a reversing credit note, and any other credit note issued against a voided invoice, are excluded.
43
43
  Items are grouped by catalog item ID when available, or by exact name match.
44
44
  * @summary Export sales per item for a period
45
45
  */
@@ -39,7 +39,7 @@ export declare const ExportDocumentsHeader: zod.ZodObject<{
39
39
  * Export aggregated sales data per item (product/service) for a given date range.
40
40
  Includes quantities sold/returned, average price, and totals.
41
41
  Aggregates across invoices, credit notes, and advance invoices.
42
- Voided invoices are excluded together with every credit note issued against them (including their cancellation credit notes).
42
+ A voided invoice is counted together with the credit note that reverses it (sold and returned), so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice neither document counts, as before. Voided invoices without a reversing credit note, and any other credit note issued against a voided invoice, are excluded.
43
43
  Items are grouped by catalog item ID when available, or by exact name match.
44
44
  * @summary Export sales per item for a period
45
45
  */
@@ -32140,7 +32140,7 @@ export declare const RenderInvoicePreviewBody: zod.ZodUnion<readonly [zod.ZodObj
32140
32140
  }, zod.z.core.$strip>>>>;
32141
32141
  }, zod.z.core.$strip>]>;
32142
32142
  /**
32143
- * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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. For business corrections, create a credit note instead.
32143
+ * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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 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.
32144
32144
  Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
32145
32145
  * @summary Void an invoice
32146
32146
  */
@@ -32140,7 +32140,7 @@ export declare const RenderInvoicePreviewBody: zod.ZodUnion<readonly [zod.ZodObj
32140
32140
  }, zod.z.core.$strip>>>>;
32141
32141
  }, zod.z.core.$strip>]>;
32142
32142
  /**
32143
- * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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. For business corrections, create a credit note instead.
32143
+ * Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. 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 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.
32144
32144
  Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
32145
32145
  * @summary Void an invoice
32146
32146
  */
@@ -879,7 +879,7 @@ export declare const ExportSloveniaVodXmlBody: zod.ZodObject<{
879
879
  date_to: zod.z.ZodISODate;
880
880
  }, zod.z.core.$strip>;
881
881
  /**
882
- * Download miniMAX XML for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
882
+ * Download miniMAX XML for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range. A voided invoice is included together with the credit note that reverses it, each on its own date, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided documents without a reversing credit note, voided credit notes and voided advance invoices are excluded. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
883
883
  * @summary Export Slovenia miniMAX accounting XML
884
884
  */
885
885
  export declare const ExportSloveniaMinimaxXmlHeader: zod.ZodObject<{
@@ -890,7 +890,7 @@ export declare const ExportSloveniaMinimaxXmlBody: zod.ZodObject<{
890
890
  date_to: zod.z.ZodISODate;
891
891
  }, zod.z.core.$strip>;
892
892
  /**
893
- * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
893
+ * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export: a voided invoice is included together with the credit note that reverses it when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
894
894
  * @summary Export Slovenia VASCO accounting XML
895
895
  */
896
896
  export declare const ExportSloveniaVascoXmlHeader: zod.ZodObject<{
@@ -901,7 +901,7 @@ export declare const ExportSloveniaVascoXmlBody: zod.ZodObject<{
901
901
  date_to: zod.z.ZodISODate;
902
902
  }, zod.z.core.$strip>;
903
903
  /**
904
- * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized, non-voided invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
904
+ * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. A voided invoice is included together with the credit note that reverses it, each on its own date, when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided invoices without a reversing credit note, voided credit notes and voided expenses are excluded. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
905
905
  * @summary Export QuickBooks Online import files
906
906
  */
907
907
  export declare const ExportQuickbooksCsvQueryParams: zod.ZodObject<{
@@ -879,7 +879,7 @@ export declare const ExportSloveniaVodXmlBody: zod.ZodObject<{
879
879
  date_to: zod.z.ZodISODate;
880
880
  }, zod.z.core.$strip>;
881
881
  /**
882
- * Download miniMAX XML for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
882
+ * Download miniMAX XML for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range. A voided invoice is included together with the credit note that reverses it, each on its own date, so the pair nets to zero in the document currency (amounts converted at each document's own exchange rate can differ), when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided documents without a reversing credit note, voided credit notes and voided advance invoices are excluded. Advances carry VAT records; linked final invoices reconcile previously reported VAT and settle the configured advance account. Bank/cash payments are booked separately. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error. Re-importing the same date range may duplicate entries in miniMAX; import each document once.
883
883
  * @summary Export Slovenia miniMAX accounting XML
884
884
  */
885
885
  export declare const ExportSloveniaMinimaxXmlHeader: zod.ZodObject<{
@@ -890,7 +890,7 @@ export declare const ExportSloveniaMinimaxXmlBody: zod.ZodObject<{
890
890
  date_to: zod.z.ZodISODate;
891
891
  }, zod.z.core.$strip>;
892
892
  /**
893
- * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized, non-voided issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
893
+ * Download a single windows-1250 VASCO KN 2.1 XML file (Prenos Verzija 2.1) for finalized issued and received invoices, credit notes and advance invoices in an inclusive document-date range (the same selection as the miniMAX export: a voided invoice is included together with the credit note that reverses it when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before). Amounts are in EUR. Advance invoices carry their VAT-book records on a zero-amount advance-account entry; linked final invoices settle the advance account. Payments are not exported. The 5% VAT rate, OSS destination-VAT documents and customs imports are not supported by VASCO KN 2.1 and reject the export. Source data must contain product/service classifications and reconcilable tax and EUR amounts. Invalid or unsupported accounting data rejects the entire export with an actionable 422 error, as does a range with no exportable entries (no finalized issued or received documents with postings). The first export of a partner without a Slovenian 8-digit tax number assigns it a permanent VASCO partner code (100000000 upwards) that later exports reuse. Re-importing the same date range duplicates entries in VASCO; import each document once.
894
894
  * @summary Export Slovenia VASCO accounting XML
895
895
  */
896
896
  export declare const ExportSloveniaVascoXmlHeader: zod.ZodObject<{
@@ -901,7 +901,7 @@ export declare const ExportSloveniaVascoXmlBody: zod.ZodObject<{
901
901
  date_to: zod.z.ZodISODate;
902
902
  }, zod.z.core.$strip>;
903
903
  /**
904
- * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized, non-voided invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
904
+ * Download a ZIP of CSV files for QuickBooks Online import: `invoices.csv` (invoice import layout), `credit-notes.csv` (same layout, for manual entry because QuickBooks cannot import credit memos) and `bills.csv` (bill import layout, built from expenses). Includes finalized invoices, credit notes and expenses whose document date falls in the inclusive range; expenses without a document date use their received date. A voided invoice is included together with the credit note that reverses it, each on its own date, when the invoice was voided after this rule took effect and, at the time of voiding, had no advance payment or advance invoice application (including removed ones) and no link with an advance invoice; for any other voided invoice the credit note is exported alone, as before. Voided invoices without a reversing credit note, voided credit notes and voided expenses are excluded. Advance invoices are excluded because final invoices carry the full amount. Each line keeps the document currency and a tax-exclusive amount with its tax amount; the tax code column holds the rate (for example `22%`, or `22% RC` for reverse charge) for mapping to QuickBooks tax codes during import. Dates use DD/MM/YYYY, or MM/DD/YYYY for US entities. Bill lines use the line's financial category as the account, otherwise `Uncategorized Expense`. Files are split at 100 documents or 1,000 rows (for example `invoices-01.csv`, `invoices-02.csv`) to fit QuickBooks import limits; a set with no documents still contains a header-only file. QuickBooks-specific validation failures return 422 with a `cause.code`: `quickbooks_export_too_many_documents` (more than 10,000 documents in range), `quickbooks_export_unsupported_expense_type` (the range includes supplier credit notes or advance invoices), `quickbooks_export_document_too_many_lines` (a single document renders more than 1,000 rows and cannot be split without breaking its grouping on import), or `quickbooks_export_missing_exchange_rate` (a crypto-denominated document has neither converted amounts nor a stored exchange rate, so it cannot be converted to the entity currency). If the selected period contains an issued invoice with early-payment terms, or the entity has any early-payment discount-adjustment history, the export is unsupported and returns a message-only 422 with no `cause.code`.
905
905
  * @summary Export QuickBooks Online import files
906
906
  */
907
907
  export declare const ExportQuickbooksCsvQueryParams: zod.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaceinvoices/js-sdk",
3
- "version": "18.20.0",
3
+ "version": "18.22.0",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Space Invoices API",
5
5
  "author": "Space Invoices <support@spaceinvoices.com>",
6
6
  "license": "MIT",