Skip to main content

CustomerPastPurchase

One row of the partner's purchase history (Quick order tab).

type CustomerPastPurchase {
currency: String
lastOrderedAt: DateTime!
lastUnitPrice: Float!
maxOrderQuantity: Float
minOrderQuantity: Float!
orderMultiple: Float!
productId: ID!
productName: String!
sku: String
timesOrdered: Int!
uomCode: String
uomId: ID!
variantId: ID!
variantName: String
}

Fields​

CustomerPastPurchase.currency ● String scalar​

ISO 4217 currency code.

CustomerPastPurchase.lastOrderedAt ● DateTime! non-null scalar​

When the customer last ordered it.

CustomerPastPurchase.lastUnitPrice ● Float! non-null scalar​

What the buyer was charged per unit on the most recent order line — the net price after the line's discount, in currency (historical, display-only; the cart reprices on add).

CustomerPastPurchase.maxOrderQuantity ● Float scalar​

The largest quantity for one line in this unit. Empty means no cap.

CustomerPastPurchase.minOrderQuantity ● Float! non-null scalar​

The smallest quantity for one line in this unit. The stricter of the variant's minimum and the pack's own wins, as when an order is created.

CustomerPastPurchase.orderMultiple ● Float! non-null scalar​

Quantities step by this, counted from 0. 1 or less means no whole-number step.

CustomerPastPurchase.productId ● ID! non-null scalar​

The ID of the product.

CustomerPastPurchase.productName ● String! non-null scalar​

The name of the product.

CustomerPastPurchase.sku ● String scalar​

The SKU of the variant.

CustomerPastPurchase.timesOrdered ● Int! non-null scalar​

How many times the customer ordered it.

CustomerPastPurchase.uomCode ● String scalar​

The unit of measure.

CustomerPastPurchase.uomId ● ID! non-null scalar​

The ID of the unit of measure.

CustomerPastPurchase.variantId ● ID! non-null scalar​

The ID of the product variant.

CustomerPastPurchase.variantName ● String scalar​

The variant's own label, such as model and colour.

Member Of​

CustomerPastPurchaseConnection object