CustomerPurchaseHistoryItem
What a customer has bought of one product or variant, across their orders.
type CustomerPurchaseHistoryItem {
lastOrderedAt: DateTime!
lastQty: Float!
lastUnitPrice: Float!
lastUomId: ID
orderCount: Int!
productId: ID!
productName: String!
sku: String
totalQty: Float!
variantId: ID
variantName: String
}
Fields
CustomerPurchaseHistoryItem.lastOrderedAt ● DateTime! non-null scalar
When it was most recently ordered.
CustomerPurchaseHistoryItem.lastQty ● Float! non-null scalar
Quantity on the most recent order.
CustomerPurchaseHistoryItem.lastUnitPrice ● Float! non-null scalar
Unit price on the most recent order.
CustomerPurchaseHistoryItem.lastUomId ● ID scalar
The ID of the unit of measure on the most recent order.
CustomerPurchaseHistoryItem.orderCount ● Int! non-null scalar
Number of orders containing it.
CustomerPurchaseHistoryItem.productId ● ID! non-null scalar
The ID of the product.
CustomerPurchaseHistoryItem.productName ● String! non-null scalar
Name of the product.
CustomerPurchaseHistoryItem.sku ● String scalar
SKU of the product or variant.
CustomerPurchaseHistoryItem.totalQty ● Float! non-null scalar
Total quantity ordered across those orders.
CustomerPurchaseHistoryItem.variantId ● ID scalar
The ID of the product variant.
CustomerPurchaseHistoryItem.variantName ● String scalar
Name of the product variant, if any.
Returned By
customerPurchaseHistory query