@scell/sdk 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,9 +44,10 @@ const apiClient = new ScellApiClient('your-api-key');
44
44
 
45
45
  ### Create an Invoice
46
46
 
47
+ > **Note:** Invoice numbers are automatically generated by Scell.io. Draft invoices receive a temporary number, and the definitive fiscal number is assigned when the invoice is submitted.
48
+
47
49
  ```typescript
48
50
  const { data: invoice } = await apiClient.invoices.create({
49
- invoice_number: 'FACT-2024-001',
50
51
  direction: 'outgoing',
51
52
  output_format: 'facturx',
52
53
  issue_date: '2024-01-15',
@@ -95,7 +96,6 @@ For non-French parties, SIRET is not required. Use VAT numbers for EU businesses
95
96
 
96
97
  ```typescript
97
98
  const { data: invoice } = await apiClient.invoices.create({
98
- invoice_number: 'INV-2026-042',
99
99
  issue_date: '2026-03-29',
100
100
  due_date: '2026-04-28',
101
101
  currency: 'EUR',
@@ -125,7 +125,6 @@ For non-EU buyers, use `buyer_legal_id` and `buyer_legal_id_scheme` in addition
125
125
 
126
126
  ```typescript
127
127
  const { data: invoice } = await apiClient.invoices.create({
128
- invoice_number: 'INV-2026-044',
129
128
  issue_date: '2026-03-29',
130
129
  due_date: '2026-04-28',
131
130
  currency: 'GBP',
package/dist/index.d.mts CHANGED
@@ -336,8 +336,6 @@ interface InvoiceLineInput {
336
336
  interface CreateInvoiceInput {
337
337
  /** Your external reference ID */
338
338
  external_id?: string | undefined;
339
- /** Invoice number (required) */
340
- invoice_number: string;
341
339
  /** Direction: outgoing (sale) or incoming (purchase) */
342
340
  direction: InvoiceDirection;
343
341
  /** Output format for electronic invoice */
package/dist/index.d.ts CHANGED
@@ -336,8 +336,6 @@ interface InvoiceLineInput {
336
336
  interface CreateInvoiceInput {
337
337
  /** Your external reference ID */
338
338
  external_id?: string | undefined;
339
- /** Invoice number (required) */
340
- invoice_number: string;
341
339
  /** Direction: outgoing (sale) or incoming (purchase) */
342
340
  direction: InvoiceDirection;
343
341
  /** Output format for electronic invoice */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scell/sdk",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Official TypeScript SDK for Scell.io - Electronic invoicing (Factur-X) and signatures (eIDAS) API",
5
5
  "author": "Scell.io <contact@scell.io>",
6
6
  "license": "MIT",
@@ -120,8 +120,6 @@ export interface InvoiceLineInput {
120
120
  export interface CreateInvoiceInput {
121
121
  /** Your external reference ID */
122
122
  external_id?: string | undefined;
123
- /** Invoice number (required) */
124
- invoice_number: string;
125
123
  /** Direction: outgoing (sale) or incoming (purchase) */
126
124
  direction: InvoiceDirection;
127
125
  /** Output format for electronic invoice */