Customer
Represents a customer, providing access to their personal, account, and order information.
Type Definition
type Customer {
id: Int
customerNumber: String
name: String
address: Address
tags: [String]
hasAccess: Boolean
username: String
firstName: String
lastName: String
language: Locale
currency: Currency
acceptsMarketing: Boolean
orderCount: Int
orderTotal: Float
refundCount: Int
refundTotal: Float
firstOrderDate: String
lastOrderDate: String
audiences: [String]
loyaltyDiscountProgress: LoyaltyDiscountProgress
}Fields
Relationships
The Customer type represents an individual customer within the system. It contains comprehensive profile information including personal details, contact preferences, and historical transaction data. Customers can be associated with multiple orders through the Cart and Review types, and their information is referenced in customer-related mutations through the CustomerCreatePayload type. Customer data also appears in comments through the Comment type.
Example
query {
customer {
id
customerNumber
name
firstName
lastName
username
address {
street
city
}
tags
hasAccess
acceptsMarketing
orderCount
orderTotal
refundCount
refundTotal
firstOrderDate
lastOrderDate
language
currency
audiences
loyaltyDiscountProgress {
currentProgress
nextTierThreshold
}
}
}Implements
This type does not implement any interfaces.