customer

The currently logged in customer.

Returns

an optional Object
entityIdInteger
The ID of the customer.
companyString
The company name of the customer.
customerGroupIdInteger
The customer group id of the customer.
emailString
The email address of the customer.
firstNameString
The first name of the customer.
lastNameString
The last name of the customer.
notesString
The notes of the customer.
phoneString
The phone number of the customer.
taxExemptCategoryString
The tax exempt category of the customer.
addressCountInteger
Customer addresses count.
attributeCountInteger
Customer attributes count.
storeCreditlist of Objects
Customer store credit.
attributesObject
Customer attributes.
wishlistsObject
Customer wishlists.
formFieldslist of Objects
The form field values of the customer.
addressesObject
Customer addresses.
metafieldsObject
Metafield data related to a customer.
isSubscribedToNewsletterBoolean
Indicates whether the customer is subscribed to the store's newsletter.
customerGroupNameString
The customer group name of the customer.
ordersObject
The Orders for the customer.