Skip to main content

Sales invoice

Represents a sales invoice (AR invoice): billing to a customer with internal number, invoice and due dates, customer, optional links to sales order and delivery note (salesOrderId, deliveryNoteId, and human-readable numbers), currency, payment terms, invoiced lines, and totals. Suited to AR flows, e-invoicing downstream mapping, and closing the order–delivery–invoice chain.

Full JSON example

{
"id": "si_2Uv5Wx8Yz1Ab4",
"channel": "demoipaas",
"createdAt": "2026-01-24T10:15:00+00:00",
"updatedAt": "2026-01-24T10:15:00+00:00",
"number": "SI-2026-00402",
"status": "posted",
"invoiceDate": "2026-01-24",
"dueDate": "2026-02-23",
"customerId": "cust_4Fx7Gy0Hz3Ja6",
"salesOrderId": "so_8Km2Np5Qr8St1",
"salesOrderNumber": "SO-2026-0118",
"deliveryNoteId": "dn_7Jk1Lm4No7Pq0",
"deliveryNoteNumber": "DN-2026-0093",
"currency": "EUR",
"paymentTerms": "Net 30",
"lineItems": [
{
"position": 10,
"itemId": "itm_WIDGET_A",
"description": "Widget mod. A — conf. 24 pz",
"quantity": 48,
"unitPrice": 12.5,
"taxRate": 22,
"lineTotal": 600
}
],
"subtotal": 600,
"taxTotal": 132,
"grandTotal": 732,
"notes": null
}

Remarkable notes

  • The sample invoices part of the order (widget line), consistent with a partial delivery note; later invoices can cover other lines or services.
  • Some ERPs require split postings or separate handling for deposits—extend mapping as needed.
  • Keep customerId and line itemId values aligned with the destination customer and item master data.