Skip to main content

MobileInvoiceItem

One invoice line as the buyer app shows it, drawn the same way as an order line.

type MobileInvoiceItem {
customFields: JSON
discountAmount: Float
discountPercent: Float
imageUrl: String
lineTotal: Float!
listDiscountPercentage: Float
listLineTotal: Float
listSavings: Float
originalUnitPrice: Float
productId: ID!
productName: String!
quantity: Float!
unitLabel: String
unitPrice: Float!
uomId: ID
variantId: ID!
variantLabel: String
}

Fields​

MobileInvoiceItem.customFields ● JSON scalar​

The organization's own fields on this invoice line that the buyer may see, keyed by field key.

MobileInvoiceItem.discountAmount ● Float scalar​

The discount on the line.

MobileInvoiceItem.discountPercent ● Float scalar​

The discount on the line, in percent.

MobileInvoiceItem.imageUrl ● String scalar​

The URL of the product image.

MobileInvoiceItem.lineTotal ● Float! non-null scalar​

The line total, before tax.

MobileInvoiceItem.listDiscountPercentage ● Float scalar​

The saving against the list price as a percent, exact; show it half-up to 2 dp. Never rebuild it from rounded prices. Absent = 0.

MobileInvoiceItem.listLineTotal ● Float scalar​

The line at the variant's LIST price: the price the product page and the admin console show. Server-measured against the line's net total; absent when the line has no saving (read as 0).

MobileInvoiceItem.listSavings ● Float scalar​

listLineTotal minus the line's net total: the full saving against the list price, a scheme discount stacked on a sale price included. Absent = 0.

MobileInvoiceItem.originalUnitPrice ● Float scalar​

The price of one unit before discount. Only set when it is above the charged price.

MobileInvoiceItem.productId ● ID! non-null scalar​

The ID of the product.

MobileInvoiceItem.productName ● String! non-null scalar​

The name of the product.

MobileInvoiceItem.quantity ● Float! non-null scalar​

Billed quantity. Float, not Int: an invoice line can be a fractional weight or measure.

MobileInvoiceItem.unitLabel ● String scalar​

The unit of measure.

MobileInvoiceItem.unitPrice ● Float! non-null scalar​

The price charged for one unit, after discount.

MobileInvoiceItem.uomId ● ID scalar​

The ID of the unit of measure.

MobileInvoiceItem.variantId ● ID! non-null scalar​

The ID of the product variant.

MobileInvoiceItem.variantLabel ● String scalar​

The label of the variant.

Member Of​

MobileInvoice object