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 a customer entity within the system and contains structured information about their profile, account status, and transaction history. It includes personal identifiers, contact information, language and currency preferences, and aggregated order and refund data. The address field references the Address type for detailed location information, the language field references the Locale type for language preferences, the currency field references the Currency type for preferred transaction currency, and the loyaltyDiscountProgress field references the LoyaltyDiscountProgress type for loyalty program tracking.
Example
query {
customer(id: 12345) {
id
customerNumber
name
firstName
lastName
email
username
hasAccess
acceptsMarketing
orderCount
orderTotal
refundCount
refundTotal
firstOrderDate
lastOrderDate
address {
street
city
country
}
language {
code
}
currency {
code
}
tags
audiences
loyaltyDiscountProgress {
currentTier
progress
}
}
}Implements
This type does not implement any interfaces.