GraphQL output types for Messages that represent a change or an action performed on a Customer, Customer Token, or Customer Group.

Each type on this page implements MessagePayload and is returned in the payload field of a Message. For when each Message is generated, see Customer Messages.

Customer Messages

CustomerCreated

Generated after a successful Create Customer request.
customer​
Customer that was created.
type​
String​

CustomerDeleted

Generated after a successful Delete Customer request.
email​
String​

The email address of the Customer that was deleted.

type​
String​

CustomerAddressChanged

Generated after a successful Change Address update action.
address​
Address that was set during the Change Address update action.
addressRoles​
Array of AddressRole​

Indicates if the address was used for shipping or billing purposes.

Can be Billing, or Shipping​
type​
String​

AddressRole

Billing
Shipping

CustomerEmailChanged

Generated after a successful Change Email update action.
email​
String​
The email that was set during the Change Email update action.
oldEmail​
String​
The email that was set before the Change Email update action.
type​
String​

CustomerEmailVerified

Generated after a successful Verify Customer's Email request.
type​
String​

CustomerFirstNameSet

Generated after a successful Set First Name update action.
firstName​
String​
The firstName that was set during the Set First Name update action.
type​
String​

CustomerLastNameSet

Generated after a successful Set Last Name update action.
lastName​
String​
The lastName that was set during the Set Last Name update action.
type​
String​

CustomerTitleSet

Generated after a successful Set Title update action.
title​
String​
The title that was set during the Set Title update action.
type​
String​

CustomerCompanyNameSet

Generated after a successful Set Company Name update action.
companyName​
String​
The companyName that was set during the Set Company Name update action.
type​
String​

CustomerDateOfBirthSet

Generated after a successful Set Date of Birth update action.
dateOfBirth​
Date​
The dateOfBirth that was set during the Set Date of Birth update action.
type​
String​

CustomerExternalIdSet

Generated after a successful Set External ID update action.
externalId​
String​

The identifier that was set.

type​
String​

CustomerGroupSet

Generated after a successful Set Customer Group update action.
customerGroup​
Customer Group that was set during the Set Customer Group update action.
customerGroupRef​
Customer Group that was set during the Set Customer Group update action.
type​
String​

CustomerAddressRemoved

Generated after a successful Remove Address update action.
address​
Address that was removed during the Remove Address update action.
addressRoles​
Array of AddressRole​

Indicates if the address was used for shipping or billing purposes.

Can be Billing, or Shipping​
type​
String​

AddressRole

Billing
Shipping

CustomerAddressAdded

Generated after a successful Add Address update action.
address​
Address that was added during the Add Address update action.
type​
String​

CustomerBillingAddressAdded

Generated after a successful Add Billing Address ID update action.
address​
The address that was added to the Customer billingAddressIds.
type​
String​

CustomerBillingAddressRemoved

Generated after a successful Remove Billing Address ID update action.
address​
The address that was removed from the Customer billingAddressIds.
type​
String​

CustomerShippingAddressAdded

Generated after a successful Add Shipping Address ID update action.
address​
The address that was added to the Customer shippingAddressIds.
type​
String​

CustomerShippingAddressRemoved

Generated after a successful Remove Shipping Address ID update action.
address​
The address that was removed from the Customer shippingAddressIds.
type​
String​

CustomerDefaultShippingAddressSet

Generated after a successful Set Default Shipping Address update action.
address​

The address that was set as the default shipping address.

type​
String​

CustomerDefaultBillingAddressSet

Generated after a successful Set Default Billing Address update action.
address​

The address that was set as the default billing address.

type​
String​

CustomerStoresSet

Generated after a successful Set Stores update action.
stores​
Array of Store​
The Stores the Customer is associated with after the Set Stores update action.
oldStores​
Array of Store​
The Stores the Customer was associated with before the Set Stores update action.
storesRef​
Array of KeyReference​
The Stores the Customer is associated with after the Set Stores update action.
oldStoresRef​
Array of KeyReference​
The Stores the Customer was associated with before the Set Stores update action.
type​
String​

CustomerPasswordUpdated

Generated after a successful Reset Customer's Password, Reset Customer's Password in a Store, Change Customer's Password, or Change Customer's Password in a Store request. This Message is also produced during equivalent requests to the My Customer Profile endpoint.
reset​
Boolean​
Whether the Customer's password was updated during the Reset password or Change password flow.
type​
String​

CustomerCustomFieldAdded

Generated after adding a Custom Field to a Customer using the Set CustomField update action. If a Custom Field already exists with the same name, a CustomerCustomFieldChanged Message is generated instead.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
type​
String​

CustomerCustomFieldChanged

Generated after changing an existing Custom Field on a Customer using the Set CustomField update action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
previousValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the name on the Customer before, a Customer Custom Field Added Message is generated instead.
type​
String​

CustomerCustomFieldRemoved

Generated after removing a Custom Field from a Customer using the Set CustomField update action.
name​
String​

Name of the Custom Field that was removed.

type​
String​

CustomerCustomTypeSet

Generated after adding a Custom Type to a Customer using the Set Custom Type update action.
customFields​

The Custom Fields that have been set.

previousTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
type​
String​

CustomerCustomTypeRemoved

Generated after removing a Custom Type from a Customer using the Set Custom Type update action with empty parameters.
previousTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
type​
String​

CustomerAddressCustomFieldAdded

Generated after adding a Custom Field to an Address of a Customer using the Set CustomField in Address update action. If a Custom Field already exists with the same name, a CustomerAddressCustomFieldChanged Message is generated instead.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
addressId​
String​
id of the Address to which the Custom Field was added.
type​
String​

CustomerAddressCustomFieldChanged

Generated after changing an existing Custom Field on an Address of a Customer using the Set CustomField in Address update action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
previousValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the name on the Customer Address before, a Customer Address Custom Field Added Message is generated instead.
addressId​
String​
id of the Address of which the Custom Field was changed.
type​
String​

CustomerAddressCustomFieldRemoved

Generated after removing a Custom Field from an Address of a Customer using the Set CustomField in Address update action.
name​
String​

Name of the Custom Field that was removed.

addressId​
String​
id of the Address from which the Custom Field was removed.
type​
String​

CustomerAddressCustomTypeSet

Generated after adding a Custom Type to an Address of a Customer using the Set Custom Type in Address update action.
customFields​

The Custom Fields that have been set.

previousTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
addressId​
String​
id of the Address on which the Custom Field was set.
type​
String​

CustomerAddressCustomTypeRemoved

Generated after removing a Custom Type from an Address of a Customer using the Set Custom Type in Address update action.
previousTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
addressId​
String​
id of the Address from which the Custom Type was removed.
type​
String​

Customer Token Messages

CustomerEmailTokenCreated

Generated after a successful Create email token for Customer or Create email token for Customer in Store request. The resource property of the Message is a CustomerEmailTokenReference.
customerId​
String​

Unique identifier of the Customer.

value​
String​

Value of the token, present only if the token's validity is 60 minutes or less.

invalidateOlderTokens​
Boolean​

Whether all email tokens issued previously for the Customer are invalidated.

expiresAt​

Date and time (UTC) the email token expires.

type​
String​

CustomerPasswordTokenCreated

Generated after a successful Create password reset token for Customer or Create password reset token for Customer in Store request. The resource property of the Message is a CustomerPasswordTokenReference.
customerId​
String​

Unique identifier of the Customer.

value​
String​

Value of the token, present only if the token's validity is 60 minutes or less.

invalidateOlderTokens​
Boolean​

Whether all password tokens issued previously for the Customer are invalidated.

expiresAt​

Date and time (UTC) the password token expires.

type​
String​

Customer Group assignment Messages

These Messages are generated by Customer updates, not Customer Group updates.

CustomerGroupAssignmentAdded

Generated after a successful Add CustomerGroupAssignment update action.
customerGroupAssignment​
Customer Group assigned to the Customer during the Add CustomerGroupAssignment update action.
type​
String​

CustomerGroupAssignmentRemoved

Generated after a successful Remove CustomerGroupAssignment update action.
customerGroupAssignment​
Customer Group removed during the Remove CustomerGroupAssignment update action.
type​
String​

CustomerGroupAssignmentsSet

Generated after a successful Set CustomerGroupAssignments update action.
customerGroupAssignments​
Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action.
oldCustomerGroupAssignments​
Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action.
type​
String​

Customer Group Messages

CustomerGroupCustomFieldAdded

Generated after adding a Custom Field to a Customer Group using the Set CustomField update action. If a Custom Field already exists with the same name, a CustomerGroupCustomFieldChanged Message is generated instead.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
type​
String​

CustomerGroupCustomFieldChanged

Generated after changing an existing Custom Field on a Customer Group using the Set CustomField update action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
oldValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action.
type​
String​

CustomerGroupCustomFieldRemoved

Generated after removing a Custom Field from a Customer Group using the Set CustomField update action.
name​
String​

Name of the Custom Field that was removed.

type​
String​

CustomerGroupCustomTypeSet

Generated after adding a Custom Type to a Customer Group using the Set Custom Type update action.
customFields​

The Custom Fields that have been set.

oldTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
type​
String​

CustomerGroupCustomTypeRemoved

Generated after removing a Custom Type from a Customer Group using the Set Custom Type update action with empty parameters.
oldTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
type​
String​