Customer
- Object
- Customers and B2B
A person who buys from the store: contact details, addresses, marketing consent, orders, amount spent and notes.
Implements CommentEventSubject, HasEvents, HasMetafieldDefinitions, HasMetafields, HasStoreCreditAccounts, LegacyInteroperability, Node.
Fields
| Field | Type | Description |
|---|---|---|
addresses | [MailingAddress!]! | Deprecated
|
addressesV2 | MailingAddressConnection! | |
amountSpent | MoneyV2! | |
canDelete | Boolean! | |
companyContactProfiles | [CompanyContact!]! | |
createdAt | DateTime! | |
dataSaleOptOut | Boolean! | |
defaultAddress | MailingAddress | |
defaultEmailAddress | CustomerEmailAddress | |
defaultPhoneNumber | CustomerPhoneNumber | |
displayName | String! | |
email | String | Deprecated |
emailMarketingConsent | CustomerEmailMarketingConsentState | Deprecated |
events | EventConnection! | |
firstName | String | |
hasTimelineComment | Boolean! | Deprecated |
id | ID! | |
identityProviderSubjects | [IdentityProviderSubject!]! | |
image | Image! |
|
lastName | String | |
lastOrder | Order | |
legacyResourceId | UnsignedInt64! | |
lifetimeDuration | String! | |
locale | String! | |
market | Market | Deprecated |
mergeable | CustomerMergeable! | |
metafield | Metafield | |
metafieldDefinitions | MetafieldDefinitionConnection! | Deprecated
|
metafields | MetafieldConnection! | |
multipassIdentifier | String | |
note | String | |
numberOfOrders | UnsignedInt64! | |
orders | OrderConnection! | |
paymentMethods | CustomerPaymentMethodConnection! | |
phone | String | Deprecated |
productSubscriberStatus | CustomerProductSubscriberStatus! | |
smsMarketingConsent | CustomerSmsMarketingConsentState | Deprecated |
state | CustomerState! | |
statistics | CustomerStatistics! | |
storeCreditAccounts | StoreCreditAccountConnection! | |
subscriptionContracts | SubscriptionContractConnection! | |
tags | [String!]! | |
tanqoryExtStoreCreditCurrencies | [CurrencyCode!]! | The currencies store credit can be issued to this customer in: the currency of the customer's own market (by the default address country) first, then the store currency, then the other currencies the store's active markets sell in. |
taxExempt | Boolean! | |
taxExemptions | [TaxExemption!]! | |
taxSettings | TaxSettings! | |
unsubscribeUrl | URL! | Deprecated |
updatedAt | DateTime! | |
validEmailAddress | Boolean! | Deprecated |
verifiedEmail | Boolean! |
Returned by
customerquerycustomerByIdentifierquery
Used in fields
AbandonedCheckout.customerAbandonment.customerCalculatedDraftOrder.customerCompanyContact.customerCustomerAddTaxExemptionsPayload.customerCustomerConnection.nodesCustomerCreatePayload.customerCustomerEdge.nodeCustomerEmailMarketingConsentUpdatePayload.customerCustomerPaymentMethod.customerCustomerPaymentMethodSendUpdateEmailPayload.customerCustomerRemoveTaxExemptionsPayload.customerCustomerReplaceTaxExemptionsPayload.customerCustomerSendAccountInviteEmailPayload.customerCustomerSetPayload.customerCustomerSmsMarketingConsentUpdatePayload.customerCustomerUpdateDefaultAddressPayload.customerCustomerUpdatePayload.customerDiscountCustomers.customersDraftOrder.customerGiftCard.customerGiftCardRecipient.recipientOrder.customerPaymentInstrumentSendAddEmailPayload.customerQueryRoot.customerQueryRoot.customerByIdentifierSubscriptionBillingCycleEditedContract.customerSubscriptionCalculatedContract.customerSubscriptionContract.customerSubscriptionContractBase.customerSubscriptionDraft.customerTanqoryExtCustomerImportRowResult.customer