Customer
- Object
- Storefront
A shopper's account with the store: name, email, phone, saved addresses, orders, tags and marketing consent.
Implements HasMetafields.
Fields
| Field | Type | Description |
|---|---|---|
acceptsMarketing | Boolean! | |
addresses | MailingAddressConnection! | |
avatarUrl | String | |
createdAt | DateTime! | |
defaultAddress | MailingAddress | |
displayName | String! | |
email | String | |
firstName | String | |
id | ID! | |
lastName | String | |
metafield | Metafield | |
metafields | [Metafield]! |
|
numberOfOrders | UnsignedInt64! | |
orders | OrderConnection! | |
phone | String | |
socialLoginProvider | SocialLoginProvider | |
tags | [String!]! | |
updatedAt | DateTime! | |
tanqoryExtPendingEmail | String | The new email the customer asked for with customerUpdate, waiting for them to confirm it from the link mailed to that address; null when no change is waiting or its link has expired. |
tanqoryExtOrder | Order | One of this customer's own orders by its ID (gid://tanqory/Order/<uuid>); null for any other order. Private token only.
|
tanqoryExtSubscriptionContracts | [TanqoryExtSubscriptionContract!]! | The customer's subscription contracts, newest first (A-09). Private token only. |
tanqoryExtCompanyLocations | [TanqoryExtCompanyLocation!]! | The B2B company locations the customer has a role at (A-23). Private token only. |
tanqoryExtCompanyLocation | TanqoryExtCompanyLocation | One of those locations by id (a CompanyLocation gid), or null when the customer may not buy for it. Private token only.
|
tanqoryExtStoreCreditAccounts | [TanqoryExtStoreCreditAccount!]! | The customer's store credit accounts and balances (A-24). Private token only. |
tanqoryExtMarketingConsent | TanqoryExtCustomerMarketingConsent! | Email, SMS and WhatsApp marketing consent (A-05). Email consent is changed with customerUpdate(acceptsMarketing). Private token only. |
Returned by
customerquery
Used in fields
CartBuyerIdentity.customerCustomerActivateByUrlPayload.customerCustomerActivatePayload.customerCustomerCreatePayload.customerCustomerDefaultAddressUpdatePayload.customerCustomerResetByUrlPayload.customerCustomerResetPayload.customerCustomerUpdatePayload.customerQueryRoot.customerTanqoryExtCustomerEmailChangeConfirmPayload.customer