Skip to main content

Invoice

An Invoice records a billing transaction for an Organisation. Each invoice contains line items, tax calculations, and a short-lease URL to download the PDF.

Implements: Node

Fields

FieldTypeDescription
idID!Unique identifier
invoiceNumberIntInvoice number
createdAWSDateTimeWhen the invoice was created
supplyDateAWSDateTimeSupply date (if different from created)
currencyCURRENCYGBP, EURO, or USD
paymentSystemPAYMENTSYSTEMPayment method used
taxRateFloatTax rate applied
subTotalFloatSubtotal before tax
totalIncTaxFloatTotal including tax
creditReasonStringReason if this is a credit note
customerNameStringCustomer name at time of invoice
address1StringAddress line 1
address2StringAddress line 2
address3StringAddress line 3
address4StringAddress line 4
address5StringAddress line 5
postcodeStringPostal code
linkStringShort-lease URL to download the invoice PDF

Relationships

FieldTypeDescription
billingBillingThe billing record this invoice belongs to

Connections

lineItemConnection

Line items on this invoice. Supports cursor-based pagination.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor

Query

query GetInvoice($invoiceId: ID) {
invoice(id: $invoiceId) {
id
invoiceNumber
created
subTotal
totalIncTax
link
}
}

Example

Full invoice with line items (based on the Legalesign Console app):

query GetInvoiceDetails($invoiceId: ID) {
invoice(id: $invoiceId) {
id
created
supplyDate
currency
paymentSystem
invoiceNumber
taxRate
subTotal
totalIncTax
creditReason
customerName
address1
address2
address3
address4
address5
postcode
link
lineItemConnection {
lineItems {
id
lineType
description
rate
units
subTotal
absorb
notAbsorbable
}
}
}
}
  • Billing — parent billing record
  • LineItem — individual charges on the invoice

Export This Article

Save a copy of this page as PDF or plain text.