Skip to main content

LineItem

A LineItem is an individual charge on an Invoice. Each line item has a type, quantity, rate, and subtotal.

Implements: Node

Fields

FieldTypeDescription
idID!Unique identifier
lineTypeLINEITEMTYPECharge type
descriptionStringDescription of the charge
unitsIntNumber of units
rateFloatUnit price
subTotalFloatLine subtotal
absorbBooleanIf true, reduces other line items up to this amount
notAbsorbableBooleanIf true, always charged even with absorb items

LINEITEMTYPE

ValueDescription
APISENDAPI send charges
AUTOMATEDSENDAutomated send charges
BULKSENDBulk send charges
EMBEDEmbed charges
FIXEDFixed fee
PERSENDPer-send charges
PERSUPPORTEDUSERPer supported user
PERUSERPer user charges
WEBSITESENDWebsite send charges

Query

LineItems are accessed via Invoice.lineItemConnection:

query GetInvoiceLineItems($invoiceId: ID) {
invoice(id: $invoiceId) {
lineItemConnection {
lineItems {
id
lineType
description
rate
units
subTotal
absorb
notAbsorbable
}
}
}
}

Export This Article

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