Skip to main content

AccountInvoiceLineItem

Single line item on an account invoice (e.g. a per-transaction fee, fixed plan fee, or VAT row).

  • When unitType is money, unitAmount is in the invoice currency's minor units and amount = quantity * unitAmount.
  • When unitType is percent, unitAmount is a percentage applied to quantity (a base amount in minor units) and amount = quantity * unitAmount / 100.
type AccountInvoiceLineItem {
name: String!
quantity: Int!
unitAmount: Float!
unitType: UnitType!
currency: Currencies!
amount: Int!
}

Fields

AccountInvoiceLineItem.name ● String! non-null scalar

Line item description.

AccountInvoiceLineItem.quantity ● Int! non-null scalar

Number of units, or the base amount in minor units when unitType is percent.

AccountInvoiceLineItem.unitAmount ● Float! non-null scalar

Per-unit price in minor units (money) or percentage value (percent).

AccountInvoiceLineItem.unitType ● UnitType! non-null enum

Whether unitAmount is a monetary value or a percentage.

AccountInvoiceLineItem.currency ● Currencies! non-null enum

ISO 4217 currency code for this line.

AccountInvoiceLineItem.amount ● Int! non-null scalar

Computed line total in minor units.

Member Of

AccountInvoice object