API Docs / Schemas / InvoiceDto

InvoiceDto

Invoice data retrieved from third-party accounting platforms (Xero, QuickBooks, FreeAgent, etc.).
Used for displaying client invoice information and tracking outstanding balances within Sodium.

Properties

Name Type Description
idstring

Platform-specific invoice identifier (unique within the accounting platform)

Platform-specific invoice identifier (unique within the accounting platform)

numberstring

Invoice number (as displayed in the accounting platform)

Invoice number (as displayed in the accounting platform)

customerIdstring

Platform-specific customer identifier

Platform-specific customer identifier

customerNamestring

Customer/client name from the accounting platform

Customer/client name from the accounting platform

totalAmountnumber

Total invoice amount including tax

Total invoice amount including tax

netAmountnumber

Net amount before tax

Net amount before tax

taxAmountnumber

Tax (VAT) amount

Tax (VAT) amount

amountDuenumber

Outstanding amount still due (may be less than TotalAmount if partially paid)

Outstanding amount still due (may be less than TotalAmount if partially paid)

datestring

Invoice date (when the invoice was issued)

Invoice date (when the invoice was issued)

dueDatestring

Payment due date (null if no due date specified)

Payment due date (null if no due date specified)

statusenum

Unknown Draft Unpaid Paid Overdue Void PartiallyPaid

Unknown Draft Unpaid Paid Overdue Void PartiallyPaid

currencystring

Invoice currency code (e.g., "GBP", "USD", "EUR")

Invoice currency code (e.g., "GBP", "USD", "EUR")

externalUrlstring

Direct link to view the invoice in the accounting platform

Direct link to view the invoice in the accounting platform

isPdfAvailableboolean

Whether a PDF can be downloaded for this invoice via the /pdf endpoint

Whether a PDF can be downloaded for this invoice via the /pdf endpoint

platformDataobject

Platform-specific data that doesn't fit into the common model

Platform-specific data that doesn't fit into the common model

JSON Example

{
  "id": "string",
  "number": "string",
  "customerId": "string",
  "customerName": "string",
  "totalAmount": 0
}

Contained in Schemas