@spaceinvoices/js-sdk 15.0.0 → 16.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/generated/credit-notes/credit-notes.d.cts +1 -1
  2. package/dist/generated/credit-notes/credit-notes.d.ts +1 -1
  3. package/dist/generated/invoices/invoices.d.cts +1 -1
  4. package/dist/generated/invoices/invoices.d.ts +1 -1
  5. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +0 -5
  6. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +0 -5
  7. package/dist/generated/model/transactionTypeCheckResponse.d.cts +1 -1
  8. package/dist/generated/model/transactionTypeCheckResponse.d.ts +1 -1
  9. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +0 -5
  10. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +0 -5
  11. package/dist/generated/model/webhookResponseEventsItem.d.cts +0 -5
  12. package/dist/generated/model/webhookResponseEventsItem.d.ts +0 -5
  13. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +0 -5
  14. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +0 -5
  15. package/dist/generated/transaction-type/transaction-type.d.cts +1 -1
  16. package/dist/generated/transaction-type/transaction-type.d.ts +1 -1
  17. package/dist/generated-zod/credit-notes/credit-notes.d.cts +1 -1
  18. package/dist/generated-zod/credit-notes/credit-notes.d.ts +1 -1
  19. package/dist/generated-zod/invoices/invoices.d.cts +1 -1
  20. package/dist/generated-zod/invoices/invoices.d.ts +1 -1
  21. package/dist/generated-zod/transaction-type/transaction-type.d.cts +1 -1
  22. package/dist/generated-zod/transaction-type/transaction-type.d.ts +1 -1
  23. package/dist/generated-zod/webhooks/webhooks.d.cts +0 -30
  24. package/dist/generated-zod/webhooks/webhooks.d.ts +0 -30
  25. package/dist/index.cjs +3 -3
  26. package/dist/index.js +3 -3
  27. package/package.json +1 -1
@@ -320,7 +320,7 @@ export type getCreditNoteKsefStateResponse = (getCreditNoteKsefStateResponseSucc
320
320
  export declare const getGetCreditNoteKsefStateUrl: (id: string) => string;
321
321
  export declare const getCreditNoteKsefState: (id: string, options?: RequestInit) => Promise<getCreditNoteKsefStateResponse>;
322
322
  /**
323
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
323
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
324
324
  * @summary Submit or resume a KSeF invoice
325
325
  */
326
326
  export type submitCreditNoteToKsefResponse200 = {
@@ -320,7 +320,7 @@ export type getCreditNoteKsefStateResponse = (getCreditNoteKsefStateResponseSucc
320
320
  export declare const getGetCreditNoteKsefStateUrl: (id: string) => string;
321
321
  export declare const getCreditNoteKsefState: (id: string, options?: RequestInit) => Promise<getCreditNoteKsefStateResponse>;
322
322
  /**
323
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
323
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
324
324
  * @summary Submit or resume a KSeF invoice
325
325
  */
326
326
  export type submitCreditNoteToKsefResponse200 = {
@@ -320,7 +320,7 @@ export type getInvoiceKsefStateResponse = (getInvoiceKsefStateResponseSuccess |
320
320
  export declare const getGetInvoiceKsefStateUrl: (id: string) => string;
321
321
  export declare const getInvoiceKsefState: (id: string, options?: RequestInit) => Promise<getInvoiceKsefStateResponse>;
322
322
  /**
323
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
323
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
324
324
  * @summary Submit or resume a KSeF invoice
325
325
  */
326
326
  export type submitInvoiceToKsefResponse200 = {
@@ -320,7 +320,7 @@ export type getInvoiceKsefStateResponse = (getInvoiceKsefStateResponseSuccess |
320
320
  export declare const getGetInvoiceKsefStateUrl: (id: string) => string;
321
321
  export declare const getInvoiceKsefState: (id: string, options?: RequestInit) => Promise<getInvoiceKsefStateResponse>;
322
322
  /**
323
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
323
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
324
324
  * @summary Submit or resume a KSeF invoice
325
325
  */
326
326
  export type submitInvoiceToKsefResponse200 = {
@@ -12,7 +12,6 @@ export declare const CreateWebhookBodyEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const CreateWebhookBodyEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const CreateWebhookBodyEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const CreateWebhookBodyEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -12,7 +12,6 @@ export declare const CreateWebhookBodyEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const CreateWebhookBodyEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const CreateWebhookBodyEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const CreateWebhookBodyEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -44,7 +44,7 @@ export interface TransactionTypeCheckResponse {
44
44
  warning_code?: TransactionTypeCheckResponseWarningCode;
45
45
  /** Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid. */
46
46
  warning_last_valid_date?: string;
47
- /** False when issuer is not a tax subject (transaction treated as B2C) */
47
+ /** False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer) */
48
48
  is_tax_subject?: boolean;
49
49
  /**
50
50
  * Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type.
@@ -44,7 +44,7 @@ export interface TransactionTypeCheckResponse {
44
44
  warning_code?: TransactionTypeCheckResponseWarningCode;
45
45
  /** Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid. */
46
46
  warning_last_valid_date?: string;
47
- /** False when issuer is not a tax subject (transaction treated as B2C) */
47
+ /** False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer) */
48
48
  is_tax_subject?: boolean;
49
49
  /**
50
50
  * Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type.
@@ -12,7 +12,6 @@ export declare const UpdateWebhookBodyEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const UpdateWebhookBodyEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const UpdateWebhookBodyEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const UpdateWebhookBodyEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -12,7 +12,6 @@ export declare const UpdateWebhookBodyEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const UpdateWebhookBodyEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const UpdateWebhookBodyEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const UpdateWebhookBodyEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -12,7 +12,6 @@ export declare const WebhookResponseEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const WebhookResponseEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const WebhookResponseEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const WebhookResponseEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -12,7 +12,6 @@ export declare const WebhookResponseEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const WebhookResponseEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const WebhookResponseEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const WebhookResponseEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -12,7 +12,6 @@ export declare const WebhookWithSecretEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const WebhookWithSecretEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const WebhookWithSecretEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const WebhookWithSecretEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -12,7 +12,6 @@ export declare const WebhookWithSecretEventsItem: {
12
12
  readonly invoicesent: "invoice.sent";
13
13
  readonly invoicepaid: "invoice.paid";
14
14
  readonly invoiceoverdue: "invoice.overdue";
15
- readonly invoicecancelled: "invoice.cancelled";
16
15
  readonly invoicedeleted: "invoice.deleted";
17
16
  readonly invoicerestored: "invoice.restored";
18
17
  readonly invoicevoided: "invoice.voided";
@@ -36,7 +35,6 @@ export declare const WebhookWithSecretEventsItem: {
36
35
  readonly estimaterestored: "estimate.restored";
37
36
  readonly credit_notecreated: "credit_note.created";
38
37
  readonly credit_noteupdated: "credit_note.updated";
39
- readonly credit_noteissued: "credit_note.issued";
40
38
  readonly credit_notevoided: "credit_note.voided";
41
39
  readonly credit_notedeleted: "credit_note.deleted";
42
40
  readonly credit_noterestored: "credit_note.restored";
@@ -83,7 +81,6 @@ export declare const WebhookWithSecretEventsItem: {
83
81
  readonly order_integrationdeleted: "order_integration.deleted";
84
82
  readonly delivery_notecreated: "delivery_note.created";
85
83
  readonly delivery_notesent: "delivery_note.sent";
86
- readonly delivery_notecancelled: "delivery_note.cancelled";
87
84
  readonly delivery_notevoided: "delivery_note.voided";
88
85
  readonly delivery_notedeleted: "delivery_note.deleted";
89
86
  readonly delivery_noterestored: "delivery_note.restored";
@@ -115,14 +112,12 @@ export declare const WebhookWithSecretEventsItem: {
115
112
  readonly documentsent: "document.sent";
116
113
  readonly documentpaid: "document.paid";
117
114
  readonly documentoverdue: "document.overdue";
118
- readonly documentcancelled: "document.cancelled";
119
115
  readonly documentdeleted: "document.deleted";
120
116
  readonly documentrestored: "document.restored";
121
117
  readonly documentvoided: "document.voided";
122
118
  readonly documentfinalized: "document.finalized";
123
119
  readonly documentaccepted: "document.accepted";
124
120
  readonly documentrejected: "document.rejected";
125
- readonly documentissued: "document.issued";
126
121
  readonly documentapplied: "document.applied";
127
122
  readonly 'invoice*': "invoice.*";
128
123
  readonly 'customer*': "customer.*";
@@ -37,7 +37,7 @@ A UK customer's tax number with a GB or XI prefix that VIES does not cover gets
37
37
  When customer.is_end_consumer is true, forces B2C classification for non-EU transactions even if the customer has a tax number. For intra-EU transactions, VIES validation takes precedence.
38
38
 
39
39
  **Non-Tax Subjects:**
40
- When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge).
40
+ When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge). The exception is a Polish issuer (country PL): its transaction type follows the buyer like a VAT payer's (EU buyer with a VAT number checked in VIES: intra_eu_b2b, or intra_eu_b2c when VIES rejects it; non-EU buyer with a tax number: 3w_b2b), because KSeF needs the buyer's status. Reverse charge is never applied (reverse_charge_applies is false) and the response keeps is_tax_subject false.
41
41
 
42
42
  **Entity VIES setting:**
43
43
  When the request selects an entity (X-Entity-Id header or an entity-scoped API key) whose `tax_rules.eu.vies_validate_vat` is false, no VIES request and no UK VAT number check is made and the customer tax number is trusted as provided, the same as when saving a document for that entity. The same applies to a UK entity whose `tax_rules.uk.validate_vat_number` is false. Without an entity, VIES validation runs as before.
@@ -37,7 +37,7 @@ A UK customer's tax number with a GB or XI prefix that VIES does not cover gets
37
37
  When customer.is_end_consumer is true, forces B2C classification for non-EU transactions even if the customer has a tax number. For intra-EU transactions, VIES validation takes precedence.
38
38
 
39
39
  **Non-Tax Subjects:**
40
- When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge).
40
+ When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge). The exception is a Polish issuer (country PL): its transaction type follows the buyer like a VAT payer's (EU buyer with a VAT number checked in VIES: intra_eu_b2b, or intra_eu_b2c when VIES rejects it; non-EU buyer with a tax number: 3w_b2b), because KSeF needs the buyer's status. Reverse charge is never applied (reverse_charge_applies is false) and the response keeps is_tax_subject false.
41
41
 
42
42
  **Entity VIES setting:**
43
43
  When the request selects an entity (X-Entity-Id header or an entity-scoped API key) whose `tax_rules.eu.vies_validate_vat` is false, no VIES request and no UK VAT number check is made and the customer tax number is trusted as provided, the same as when saving a document for that entity. The same applies to a UK entity whose `tax_rules.uk.validate_vat_number` is false. Without an entity, VIES validation runs as before.
@@ -10102,7 +10102,7 @@ export declare const GetCreditNoteKsefStateResponse: zod.ZodObject<{
10102
10102
  recovery_available: zod.ZodOptional<zod.ZodBoolean>;
10103
10103
  }, zod.z.core.$strip>;
10104
10104
  /**
10105
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10105
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10106
10106
  * @summary Submit or resume a KSeF invoice
10107
10107
  */
10108
10108
  export declare const submitCreditNoteToKsefPathIdRegExp: RegExp;
@@ -10102,7 +10102,7 @@ export declare const GetCreditNoteKsefStateResponse: zod.ZodObject<{
10102
10102
  recovery_available: zod.ZodOptional<zod.ZodBoolean>;
10103
10103
  }, zod.z.core.$strip>;
10104
10104
  /**
10105
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10105
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10106
10106
  * @summary Submit or resume a KSeF invoice
10107
10107
  */
10108
10108
  export declare const submitCreditNoteToKsefPathIdRegExp: RegExp;
@@ -10602,7 +10602,7 @@ export declare const GetInvoiceKsefStateResponse: zod.ZodObject<{
10602
10602
  recovery_available: zod.ZodOptional<zod.ZodBoolean>;
10603
10603
  }, zod.z.core.$strip>;
10604
10604
  /**
10605
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10605
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10606
10606
  * @summary Submit or resume a KSeF invoice
10607
10607
  */
10608
10608
  export declare const submitInvoiceToKsefPathIdRegExp: RegExp;
@@ -10602,7 +10602,7 @@ export declare const GetInvoiceKsefStateResponse: zod.ZodObject<{
10602
10602
  recovery_available: zod.ZodOptional<zod.ZodBoolean>;
10603
10603
  }, zod.z.core.$strip>;
10604
10604
  /**
10605
- * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or domestic documents from VAT-exempt sellers whose invoice tax clause states the exemption's legal basis. See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10605
+ * Submit an issued Polish B2B invoice or credit note within the supported KSeF scope: standard online documents from active-VAT sellers, or documents from VAT-exempt (art. 113) sellers: domestic invoices, and cross-border invoices to business buyers, meaning documents whose transaction_type is intra_eu_b2b (an EU buyer with a VAT number that VIES did not reject) or 3w_b2b (a non-EU buyer with a tax number), where every line has classification product or service. The invoice tax clause, stating the exemption's legal basis, is required when the document has exempt (zw) lines: every domestic document and any cross-border goods line; a cross-border services-only document needs none (services are reported as outside Polish VAT). A clause longer than 256 characters is always refused. Exempt sellers cannot submit invoices to consumers abroad or to buyers whose EU VAT number VIES rejected (intra_eu_b2c, 3w_b2c). See the Poland compliance guide for currency and scope rules. Advances, offline24 and domestic totals above PLN 15,000 are outside this route. KSeF is required unless an explicit exemption reason is configured; disabling KSeF does not bypass that obligation. Uses the existing reservation on repeat calls. Ambiguous dispatches reconcile without resending; rejected invoices are terminal. Returns 422 with code KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; the submission stays queued with error_code KSEF_AUTH_FAILED and resumes automatically once the token is replaced. No request body.
10606
10606
  * @summary Submit or resume a KSeF invoice
10607
10607
  */
10608
10608
  export declare const submitInvoiceToKsefPathIdRegExp: RegExp;
@@ -37,7 +37,7 @@ A UK customer's tax number with a GB or XI prefix that VIES does not cover gets
37
37
  When customer.is_end_consumer is true, forces B2C classification for non-EU transactions even if the customer has a tax number. For intra-EU transactions, VIES validation takes precedence.
38
38
 
39
39
  **Non-Tax Subjects:**
40
- When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge).
40
+ When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge). The exception is a Polish issuer (country PL): its transaction type follows the buyer like a VAT payer's (EU buyer with a VAT number checked in VIES: intra_eu_b2b, or intra_eu_b2c when VIES rejects it; non-EU buyer with a tax number: 3w_b2b), because KSeF needs the buyer's status. Reverse charge is never applied (reverse_charge_applies is false) and the response keeps is_tax_subject false.
41
41
 
42
42
  **Entity VIES setting:**
43
43
  When the request selects an entity (X-Entity-Id header or an entity-scoped API key) whose `tax_rules.eu.vies_validate_vat` is false, no VIES request and no UK VAT number check is made and the customer tax number is trusted as provided, the same as when saving a document for that entity. The same applies to a UK entity whose `tax_rules.uk.validate_vat_number` is false. Without an entity, VIES validation runs as before.
@@ -37,7 +37,7 @@ A UK customer's tax number with a GB or XI prefix that VIES does not cover gets
37
37
  When customer.is_end_consumer is true, forces B2C classification for non-EU transactions even if the customer has a tax number. For intra-EU transactions, VIES validation takes precedence.
38
38
 
39
39
  **Non-Tax Subjects:**
40
- When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge).
40
+ When issuer.is_tax_subject is false, all transactions are treated as B2C (no VIES validation, no reverse charge). The exception is a Polish issuer (country PL): its transaction type follows the buyer like a VAT payer's (EU buyer with a VAT number checked in VIES: intra_eu_b2b, or intra_eu_b2c when VIES rejects it; non-EU buyer with a tax number: 3w_b2b), because KSeF needs the buyer's status. Reverse charge is never applied (reverse_charge_applies is false) and the response keeps is_tax_subject false.
41
41
 
42
42
  **Entity VIES setting:**
43
43
  When the request selects an entity (X-Entity-Id header or an entity-scoped API key) whose `tax_rules.eu.vies_validate_vat` is false, no VIES request and no UK VAT number check is made and the customer tax number is trusted as provided, the same as when saving a document for that entity. The same applies to a UK entity whose `tax_rules.uk.validate_vat_number` is false. Without an entity, VIES validation runs as before.