Skip to main content

MobileOrderItem

One line of an order.

type MobileOrderItem {
acceptAlternativeIfUnavailable: Boolean!
customFields: JSON
discountAmount: Float
discountPercent: Float
discounts: [MobileDiscountLine!]!
imageUrl: String
lineTotal: Float!
listDiscountPercentage: Float
listLineTotal: Float
listSavings: Float
originalUnitPrice: Float
productId: ID!
productName: String!
qtyRules: LineQtyRules
quantity: Float!
unitLabel: String
unitPrice: Float!
uomId: ID
variantId: ID!
variantLabel: String
}

Fields​

MobileOrderItem.acceptAlternativeIfUnavailable ● Boolean! non-null scalar​

True when the buyer agreed that a substitute may ship if the item becomes unavailable. It is saved when the order is placed and read-only here.

MobileOrderItem.customFields ● JSON scalar​

The organization's own fields on this order line that the buyer may see, keyed by field key. Null when the line was read from a snapshot without them.

MobileOrderItem.discountAmount ● Float scalar​

The discount charged on the line.

MobileOrderItem.discountPercent ● Float scalar​

The discount on the line, in percent.

MobileOrderItem.discounts ● [MobileDiscountLine!]! non-null object​

Per-line discount attribution — the split the cart bill showed. Empty when the line has no discount scheme lines (legacy orders too); clients render the list as-is and never re-derive it from unitPrice/originalUnitPrice.

MobileOrderItem.imageUrl ● String scalar​

The URL of the product image.

MobileOrderItem.lineTotal ● Float! non-null scalar​

The line total.

MobileOrderItem.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.

MobileOrderItem.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).

MobileOrderItem.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.

MobileOrderItem.originalUnitPrice ● Float scalar​

The price of one unit before discount, saved when the order was placed.

MobileOrderItem.productId ● ID! non-null scalar​

The ID of the product.

MobileOrderItem.productName ● String! non-null scalar​

The name of the product.

MobileOrderItem.qtyRules ● LineQtyRules object​

The smallest, largest and step quantity for this line.

MobileOrderItem.quantity ● Float! non-null scalar​

Ordered quantity in the line's pack units (fractional only for non-count packs, e.g. 1.5 KG).

MobileOrderItem.unitLabel ● String scalar​

The unit of measure.

MobileOrderItem.unitPrice ● Float! non-null scalar​

The price charged for one unit, after discount.

MobileOrderItem.uomId ● ID scalar​

The ID of the unit of measure.

MobileOrderItem.variantId ● ID! non-null scalar​

The ID of the product variant.

MobileOrderItem.variantLabel ● String scalar​

The label of the variant.

Member Of​

MobileOrder object