LineItem
A LineItem is an individual charge on an Invoice. Each line item has a type, quantity, rate, and subtotal.
Implements: Node
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
lineType | LINEITEMTYPE | Charge type |
description | String | Description of the charge |
units | Int | Number of units |
rate | Float | Unit price |
subTotal | Float | Line subtotal |
absorb | Boolean | If true, reduces other line items up to this amount |
notAbsorbable | Boolean | If true, always charged even with absorb items |
LINEITEMTYPE
| Value | Description |
|---|---|
APISEND | API send charges |
AUTOMATEDSEND | Automated send charges |
BULKSEND | Bulk send charges |
EMBED | Embed charges |
FIXED | Fixed fee |
PERSEND | Per-send charges |
PERSUPPORTEDUSER | Per supported user |
PERUSER | Per user charges |
WEBSITESEND | Website 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
}
}
}
}