GraphQL output types for Messages that represent a change or an action performed on a Customer, Customer Token, or Customer Group.
payload field of a Message. For when each Message is generated, see Customer Messages.Customer Messages
CustomerCreated
CustomerDeleted
emailString | The email address of the Customer that was deleted. |
typeString |
CustomerAddressChanged
address | Address that was set during the Change Address update action. |
addressRolesArray of AddressRole | Indicates if the address was used for shipping or billing purposes. Can beBilling, or Shipping |
typeString |
AddressRole
BillingShipping
CustomerEmailChanged
emailString | The email that was set during the Change Email update action. |
oldEmailString | The email that was set before the Change Email update action. |
typeString |
CustomerEmailVerified
typeString |
CustomerFirstNameSet
firstNameString | The firstName that was set during the Set First Name update action. |
typeString |
CustomerLastNameSet
lastNameString | The lastName that was set during the Set Last Name update action. |
typeString |
CustomerTitleSet
CustomerCompanyNameSet
companyNameString | The companyName that was set during the Set Company Name update action. |
typeString |
CustomerDateOfBirthSet
dateOfBirthDate | The dateOfBirth that was set during the Set Date of Birth update action. |
typeString |
CustomerExternalIdSet
externalIdString | The identifier that was set. |
typeString |
CustomerGroupSet
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. |
typeString |
CustomerAddressRemoved
address | Address that was removed during the Remove Address update action. |
addressRolesArray of AddressRole | Indicates if the address was used for shipping or billing purposes. Can beBilling, or Shipping |
typeString |
AddressRole
BillingShipping
CustomerAddressAdded
address | Address that was added during the Add Address update action. |
typeString |
CustomerBillingAddressAdded
CustomerBillingAddressRemoved
CustomerShippingAddressAdded
CustomerShippingAddressRemoved
CustomerDefaultShippingAddressSet
address | The address that was set as the default shipping address. |
typeString |
CustomerDefaultBillingAddressSet
address | The address that was set as the default billing address. |
typeString |
CustomerStoresSet
storesArray of Store | |
oldStoresArray of Store | |
storesRefArray of KeyReference | |
oldStoresRefArray of KeyReference | |
typeString |
CustomerPasswordUpdated
resetBoolean | Whether the Customer's password was updated during the Reset password or Change password flow. |
typeString |
CustomerCustomFieldAdded
nameString | Name of the Custom Field that was added. |
valueJson | The added CustomFieldValue based on the FieldType. |
typeString |
CustomerCustomFieldChanged
nameString | Name of the Custom Field that changed. |
valueJson | |
previousValueJson | 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. |
typeString |
CustomerCustomFieldRemoved
nameString | Name of the Custom Field that was removed. |
typeString |
CustomerCustomTypeSet
customFields | The Custom Fields that have been set. |
previousTypeIdString | id of the previous Custom Type. Absent if there was no previous Custom Type present. |
typeString |
CustomerCustomTypeRemoved
previousTypeIdString | id of the Custom Type that was removed. Absent if there was no previous Custom Type present. |
typeString |
CustomerAddressCustomFieldAdded
nameString | Name of the Custom Field that was added. |
valueJson | The added CustomFieldValue based on the FieldType. |
addressIdString | id of the Address to which the Custom Field was added. |
typeString |
CustomerAddressCustomFieldChanged
nameString | Name of the Custom Field that changed. |
valueJson | |
previousValueJson | 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. |
addressIdString | id of the Address of which the Custom Field was changed. |
typeString |
CustomerAddressCustomFieldRemoved
nameString | Name of the Custom Field that was removed. |
addressIdString | id of the Address from which the Custom Field was removed. |
typeString |
CustomerAddressCustomTypeSet
customFields | The Custom Fields that have been set. |
previousTypeIdString | id of the previous Custom Type. Absent if there was no previous Custom Type present. |
addressIdString | id of the Address on which the Custom Field was set. |
typeString |
CustomerAddressCustomTypeRemoved
previousTypeIdString | id of the Custom Type that was removed. Absent if there was no previous Custom Type present. |
addressIdString | id of the Address from which the Custom Type was removed. |
typeString |
Customer Token Messages
CustomerEmailTokenCreated
resource property of the Message is a CustomerEmailTokenReference.customerIdString | Unique identifier of the Customer. |
valueString | Value of the token, present only if the token's validity is 60 minutes or less. |
invalidateOlderTokensBoolean | Whether all email tokens issued previously for the Customer are invalidated. |
expiresAt | Date and time (UTC) the email token expires. |
typeString |
CustomerPasswordTokenCreated
resource property of the Message is a CustomerPasswordTokenReference.customerIdString | Unique identifier of the Customer. |
valueString | Value of the token, present only if the token's validity is 60 minutes or less. |
invalidateOlderTokensBoolean | Whether all password tokens issued previously for the Customer are invalidated. |
expiresAt | Date and time (UTC) the password token expires. |
typeString |
Customer Group assignment Messages
These Messages are generated by Customer updates, not Customer Group updates.
CustomerGroupAssignmentAdded
customerGroupAssignment | Customer Group assigned to the Customer during the Add CustomerGroupAssignment update action. |
typeString |
CustomerGroupAssignmentRemoved
customerGroupAssignment | Customer Group removed during the Remove CustomerGroupAssignment update action. |
typeString |
CustomerGroupAssignmentsSet
customerGroupAssignmentsArray of CustomerGroupAssignment | Customer Groups assigned to the Customer during the Set CustomerGroupAssignments update action. |
oldCustomerGroupAssignmentsArray of CustomerGroupAssignment | Customer Groups assigned to the Customer before the Set CustomerGroupAssignments update action. |
typeString |
Customer Group Messages
CustomerGroupCustomFieldAdded
nameString | Name of the Custom Field that was added. |
valueJson | The added CustomFieldValue based on the FieldType. |
typeString |
CustomerGroupCustomFieldChanged
CustomerGroupCustomFieldRemoved
nameString | Name of the Custom Field that was removed. |
typeString |
CustomerGroupCustomTypeSet
customFields | The Custom Fields that have been set. |
oldTypeIdString | id of the previous Custom Type. Absent if there was no previous Custom Type present. |
typeString |
CustomerGroupCustomTypeRemoved
oldTypeIdString | id of the Custom Type that was removed. Absent if there was no previous Custom Type present. |
typeString |