OrderLine
One item on an order: what was bought, how many, and at what price on the day.
type OrderLine {
product: Product
sku: String!
name: String!
quantity: Int!
unitPrice: Money!
lineTotal: Money!
}
Fields
OrderLine.product ● Product object
The catalogue product this line was sold from.
**Returns:**
The product, or null when it is no longer in the merchant's catalogue — the line still records what was sold.
OrderLine.sku ● String! non-null scalar
The stock-keeping unit as it was recorded on the order.
OrderLine.name ● String! non-null scalar
The product name as it was printed on the customer's receipt.
OrderLine.quantity ● Int! non-null scalar
How many units of this product the customer bought. Always at least one.
OrderLine.unitPrice ● Money! non-null object
What one unit cost the customer on the day the order was placed.
OrderLine.lineTotal ● Money! non-null object
What this line came to: the unit price multiplied by the quantity.
Member Of
Order object