Skip to main content

Invoice Schema

Schemas

InvoiceHeader

The core invoice object used for both standard and recurring invoices.

PropertyTypeDescription
idintegerInvoice ID
client_idintegerAssociated client ID
client_namestringClient display name
sitenumberintegerSite ID
site_namestringSite display name
invoicenumberstringInvoice number
thirdpartyinvoicenumberstringThird-party system invoice number
postedbooleanWhether the invoice has been posted to accounting
invoice_datedatetimeInvoice date
duedatedatetimePayment due date
schedule_datedatetimeScheduled invoice date
dateposteddatetimeDate posted to accounting
last_modifieddatetimeLast modification timestamp
invoice_type_codestringInvoice type code
invoicetypeintegerInvoice type ID
paymentstatusintegerPayment status code
amountpaidnumberTotal amount paid
amountduenumberTotal amount due
amount_remainingnumberRemaining balance
totalnumberInvoice total (read-only)
tax_totalnumberTotal tax amount
revenuenumberRevenue amount
currencystringCurrency symbol
currency_codeintegerCurrency code ID
currency_conversion_ratenumberConversion rate to base currency
contract_idintegerAssociated contract ID
contract_refstringContract reference
ticket_idintegerAssociated ticket ID
salesorder_idintegerAssociated sales order ID
purchaseorder_idintegerAssociated purchase order ID
recurring_invoice_idintegerAssociated recurring invoice template ID
is_recurring_invoicebooleanWhether this is a recurring invoice template
schedule_idintegerSchedule ID for recurring creation
periodintegerBilling period
period_typeintegerPeriod type code
nextcreationdatedatetimeNext date a recurring invoice will be created
lastcreateddatetimeDate recurring invoice was last created
paymenttermsintegerPayment terms code
datepaiddatetimeDate payment was received
datesentdatetimeDate invoice was sent
approval_statusintegerApproval status code
voidedbooleanWhether the invoice has been voided
referencestringInvoice reference
notes_1 / notes_2 / notes_3stringInvoice notes fields
internal_notestringInternal-only note
order_numberstringOrder number
cust_order_numberstringCustomer order/PO number
payment_refstringPayment reference
take_auto_paymentbooleanWhether to auto-charge payment on due date
include_in_autopaybooleanInclude in automatic payment run
billingcategoryintegerBilling category ID
linesarray[InvoiceDetail]Invoice line items
paymentsarray[InvoicePayment_List]Payment records against this invoice
customfieldsarray[CustomField]Custom field values
invoice_totalsobjectTotals breakdown object
xeroid / qboid / kashflowidstring/integerThird-party accounting system IDs
credit_totalnumberTotal credit note value
credit_outstandingnumberOutstanding credit
credit_usednumberCredit already applied

InvoiceHeader_View

Paginated list response wrapper for invoice list endpoints.

PropertyTypeDescription
page_nointegerCurrent page number
page_sizeintegerPage size
record_countintegerTotal record count
invoicesarray[InvoiceHeader]Invoice records
stripe_payment_method_idstringDefault Stripe payment method ID for the client
stripe_payment_method_namestringStripe payment method display name
stripe_customer_idstringStripe customer ID
columnsarrayView column configuration

InvoiceDetail

A line item on an invoice or recurring invoice template.

PropertyTypeDescription
idintegerLine item ID
ihidintegerParent invoice header ID
item_codestringItem/product code
item_shortdescriptionstringShort description
item_longdescriptionstringLong description
nominal_codestringNominal/GL account code
tax_codestringTax code
qty_ordernumberQuantity
unit_pricenumberUnit price
net_amountnumberNet line amount
tax_amountnumberTax amount
tax_ratenumberTax rate percentage
unit_costnumberUnit cost price
discount_percnumberDiscount percentage
asset_idintegerLinked asset ID
contract_idintegerLinked contract ID
ticket_idintegerLinked ticket ID
recurring_invoice_idintegerLinked recurring invoice ID
is_meterbooleanWhether line is a meter-based charge
period_typeintegerBilling period type
startdate / enddatedatetimeLine coverage period
prorata_next_invoicebooleanWhether to pro-rate on next invoice
onetimechargebooleanWhether this is a one-time charge on a recurring invoice
isinactivebooleanWhether the line is inactive
net_totalnumberNet total (read-only)
total_taxnumberTotal tax amount
total_pricenumberTotal price including tax
customfieldsarray[CustomField]Custom field values

InvoicePayment_List

A payment record applied against an invoice.

PropertyTypeDescription
idintegerPayment record ID
invoice_idintegerInvoice this payment is applied to
datedatetimePayment date
amountnumberPayment amount
methodintegerPayment method code
statusintegerPayment status code
typeintegerPayment type code
intent_idstringPayment gateway intent ID (e.g. Stripe PaymentIntent ID)
intent_datedatetimeDate the payment intent was created
intent_responsestringRaw response from payment gateway
webhook_payloadstringWebhook payload that triggered the payment record
webhook_received_datedatetimeDate/time the webhook was received
client_idintegerClient ID
client_namestringClient display name
referencestringPayment reference
payment_methodintegerPayment method ID
payment_method_namestringPayment method display name
credit_note_idintegerLinked credit note ID
thirdpartyidstringThird-party payment system ID
postedbooleanWhether payment has been posted to accounting
dateposteddatetimeDate posted to accounting
xero_id / qbo_id / myob_idstring/integerAccounting integration IDs

InvoiceChange

An audit record for a change made to an invoice.

PropertyTypeDescription
idintegerChange record ID
invoice_idintegerInvoice that was changed
field_idintegerID of the changed field
field_namestringName of the changed field
old_valuestringValue before the change
new_valuestringValue after the change
whostringUser who made the change
datetimedatetimeTimestamp of the change
invoice_line_idintegerAffected invoice line ID (if applicable)
type_idintegerChange type ID

Tax

A tax rate record.

PropertyTypeDescription
idintegerTax rate ID
namestringTax rate name
codestringTax code
valuenumberTax percentage value
is_compositebooleanWhether this is a composite (combined) tax rate
linked_ratesarray[Tax]Component rates for composite taxes
xero_tenant_id / kashflow_tenant_id / qbo_company_idstring/integerAccounting integration tenant IDs
category_codestringTax category code

TaxRule

A rule that determines which tax applies based on conditions.

PropertyTypeDescription
idintegerRule ID
namestringRule name
taxidintegerApplied tax rate ID
sequenceintegerEvaluation sequence order
tax_namestringTax rate name
tax_conditionsarray[TaxRuleConditions]Conditions that trigger this rule

Currency

A currency definition.

PropertyTypeDescription
idintegerCurrency ID
namestringCurrency name
symbolstringCurrency symbol (e.g. $)
codestringISO currency code (e.g. USD)
conversion_ratenumberConversion rate relative to base currency
last_updateddatetimeWhen the rate was last updated
historyarray[CurrencyHistory]Historical rate records

Costcentres

A cost centre for financial categorization.

PropertyTypeDescription
idintegerCost centre ID
namestringCost centre name
chargeablebooleanWhether this cost centre is chargeable
addr1addr4stringAddress fields

Expense

An expense record linked to a ticket or action.

PropertyTypeDescription
idintegerExpense ID
agent_idintegerAgent who incurred the expense
fault_idintegerLinked ticket ID
actionnumberintegerLinked action number on the ticket
descriptionstringExpense description
amountnumberExpense amount
date_addeddatetimeDate recorded
date_reimburseddatetimeDate reimbursed
date_invoiceddatetimeDate added to an invoice
invoiceablebooleanWhether the expense can be invoiced to a client
ihidintegerInvoice header ID if invoiced
client_idintegerClient to invoice
site_idintegerAssociated site
reviewedbooleanWhether the expense has been reviewed
customfieldsarray[CustomField]Custom field values