# HppCatalogOrderLine

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

One product on a catalog order: the catalog facts snapshotted when the order was built, the page's
presentation rules for it, and the quantity currently chosen. The unit price is the price the
payer was shown; it never changes after the snapshot, whatever happens to the catalog.

## Fields
- `productId` (string(uuid)): The catalog product this line sells.
- `displayOrder` (integer(int32)): Position in the payer-facing list.
- `name` (string): Display name at snapshot time. (nullable)
- `unitPrice` (number(double)): Price per unit at snapshot time.
- `allowFractionalQuantity` (boolean): Whether a non-integer quantity is allowed.
- `minimumQuantity` (number(double)): The smallest quantity a payer may buy: the larger of the catalog's floor and the page's own.
- `maximumQuantity` (number(double)): The largest quantity a payer may buy: the smaller of the catalog's ceiling, the page's own and  the platform cap.
- `isOptional` (boolean): `true` for an add-on the payer may leave out.
- `allowQuantityChange` (boolean): Whether the payer may change `quantity`.
- `defaultQuantity` (number(double)): The quantity the page configured for this product (or the link overrode it to): what a  fixed-quantity line always sells, and what an optional line returns to when re-selected.
- `quantity` (number(double)): The quantity currently on the order. Starts at the page's default (or the link's own  override) and, once the payer submits, holds what they chose. Zero on an optional line the  payer left out.
- `isTaxable` (boolean): Whether the product is taxable.
- `description` (string): Optional longer description at snapshot time. (nullable)
- `productCode` (string): Optional SKU at snapshot time. (nullable)
- `unitOfMeasure` (string): Optional unit label at snapshot time. (nullable)
- `taxCode` (string): Optional tax code at snapshot time. (nullable)
- `taxAmount` (number(double)): Tax attributed to this line. Zero until a tax mode attributes one; the platform's tax modes  are a separate concern and this line only carries their answer. (nullable)
- `discountAmount` (number(double)): Discount attributed to this line. Zero until a promotion is apportioned; the promotion comes  off the order subtotal as a whole today. (nullable)
- `lineTotal` (number(double)): `unitPrice` times `quantity`, rounded to cents. Recomputed by the  policy whenever the quantity changes; stored so a reader of the document does not have to. (nullable)

## See also

- [All documentation](https://devportal.demo.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
