Saltar al contenido principal

AccountInvoiceLineItem

One line of an account invoice: a fee for a product, payment method or service. Tax is not a line item; it is in AccountInvoice.tax. unitType tells how quantity, unitAmount and amount relate. The invoice preview shows the lines as Name, Quantity, Fee and Amount.

type AccountInvoiceLineItem {
name: String!
quantity: Int!
unitAmount: Float!
unitType: UnitType!
currency: Currencies!
amount: Int!
}

Fields​

AccountInvoiceLineItem.name ● String! non-null scalar​

Line description, shown as Name. A line for one store starts with the store name in brackets, like [Store 1] .

AccountInvoiceLineItem.quantity ● Int! non-null scalar​

Number of units (money), or the base amount in the smallest currency unit (percent). Shown as Quantity.

AccountInvoiceLineItem.unitAmount ● Float! non-null scalar​

Price per unit in the smallest currency unit (money), or the rate in percent (percent). Shown as Fee.

AccountInvoiceLineItem.unitType ● UnitType! non-null enum​

How to read quantity and unitAmount.

AccountInvoiceLineItem.currency ● Currencies! non-null enum​

Three-letter ISO 4217 currency code of the line. Always EUR.

AccountInvoiceLineItem.amount ● Int! non-null scalar​

Line total, in the smallest currency unit. Can be negative. Shown as Amount.

Member Of​

AccountInvoice object