Business Unit and Associate Role Messages

GraphQL output types for Messages that represent a change or an action performed on a Business Unit or Associate Role.

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

Business Unit Messages

BusinessUnitCreated

Generated after a successful Create BusinessUnit request.
businessUnit​
The Business Unit that was created.
type​
String​

BusinessUnitAddressAdded

Generated after a successful Add Address update action.
address​
The address that was added to the Business Unit.
type​
String​

BusinessUnitAddressChanged

Generated after a successful Change Address update action.
address​

Updated address of the Business Unit.

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

BusinessUnitAddressRemoved

Generated after a successful Remove Address update action.
address​
The address that was removed from the Business Unit.
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

BusinessUnitAssociateAdded

Generated after a successful Add Associate update action.
associate​
The Associate that was added to the Business Unit.
type​
String​

Associate

associateRoleAssignments​

Roles assigned to the Associate within a Business Unit.

customerRef​
The Customer that acts as an Associate in the Business Unit.
customer​
The Customer that acts as an Associate in the Business Unit.

AssociateRoleAssignment

associateRoleRef​

Role the Associate holds within a Business Unit.

associateRole​

Role the Associate holds within a Business Unit.

inheritance​

Determines whether the AssociateRoleAssignment can be inherited by child Business Units.

Can be Disabled, or Enabled​

AssociateInheritanceMode

Disabled
Enabled

BusinessUnitAssociatesSet

Generated after a successful Set Associates update action.
associates​
Array of Associate​
The list of Associates that was updated on the Business Unit.
type​
String​

Associate

associateRoleAssignments​

Roles assigned to the Associate within a Business Unit.

customerRef​
The Customer that acts as an Associate in the Business Unit.
customer​
The Customer that acts as an Associate in the Business Unit.

AssociateRoleAssignment

associateRoleRef​

Role the Associate holds within a Business Unit.

associateRole​

Role the Associate holds within a Business Unit.

inheritance​

Determines whether the AssociateRoleAssignment can be inherited by child Business Units.

Can be Disabled, or Enabled​

AssociateInheritanceMode

Disabled
Enabled

BusinessUnitAssociateChanged

Generated after a successful Change Associate update action.
associate​
The Associate that was updated.
type​
String​

Associate

associateRoleAssignments​

Roles assigned to the Associate within a Business Unit.

customerRef​
The Customer that acts as an Associate in the Business Unit.
customer​
The Customer that acts as an Associate in the Business Unit.

AssociateRoleAssignment

associateRoleRef​

Role the Associate holds within a Business Unit.

associateRole​

Role the Associate holds within a Business Unit.

inheritance​

Determines whether the AssociateRoleAssignment can be inherited by child Business Units.

Can be Disabled, or Enabled​

AssociateInheritanceMode

Disabled
Enabled

BusinessUnitAssociateModeChanged

Generated after a successful Change Associate Mode update action.
associateMode​
BusinessUnitAssociateMode of the Business Unit after the Change Associate Mode update action.
Can be Explicit, or ExplicitAndFromParent​
oldAssociateMode​
BusinessUnitAssociateMode of the Business Unit before the Change Associate Mode update action.
Can be Explicit, or ExplicitAndFromParent​
type​
String​

BusinessUnitAssociateMode

Explicit
ExplicitAndFromParent

BusinessUnitAssociateRemoved

Generated after a successful Remove Associate update action.
associate​
The Associate that was removed from the Business Unit.
type​
String​

Associate

associateRoleAssignments​

Roles assigned to the Associate within a Business Unit.

customerRef​
The Customer that acts as an Associate in the Business Unit.
customer​
The Customer that acts as an Associate in the Business Unit.

AssociateRoleAssignment

associateRoleRef​

Role the Associate holds within a Business Unit.

associateRole​

Role the Associate holds within a Business Unit.

inheritance​

Determines whether the AssociateRoleAssignment can be inherited by child Business Units.

Can be Disabled, or Enabled​

AssociateInheritanceMode

Disabled
Enabled

BusinessUnitApprovalRuleModeChanged

Generated after a successful Change Approval Rule Mode update action.
approvalRuleMode​
BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.
Can be Explicit, or ExplicitAndFromParent​
oldApprovalRuleMode​
BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.
Can be Explicit, or ExplicitAndFromParent​
type​
String​

BusinessUnitApprovalRuleMode

Explicit
ExplicitAndFromParent

BusinessUnitParentChanged

Generated after a successful Change Parent Unit update action.
oldParentUnit​
Parent unit of the Business Unit before the Change Parent Unit update action.
newParentUnit​
Parent unit of the Business Unit after the Change Parent Unit update action.
oldParentUnitRef​
Parent unit of the Business Unit before the Change Parent Unit update action.
newParentUnitRef​
Parent unit of the Business Unit after the Change Parent Unit update action.
type​
String​

BusinessUnitTypeSet BETA

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
oldUnitType​
Type of the Business Unit before the Set Unit Type update action.
Can be Company, or Division​
unitType​
Type of the Business Unit after the Set Unit Type update action.
Can be Company, or Division​
parentUnit​
Parent unit of the Business Unit after the Set Unit Type update action.
oldParentUnit​
Parent unit of the Business Unit before the Set Unit Type update action.
parentUnitRef​
Parent unit of the Business Unit after the Set Unit Type update action.
oldParentUnitRef​
Parent unit of the Business Unit before the Set Unit Type update action.
type​
String​

BusinessUnitType

Company
Division

BusinessUnitTopLevelUnitSet BETA

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
oldTopLevelUnit​
Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
topLevelUnit​
Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
oldTopLevelUnitRef​
Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.
topLevelUnitRef​
Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.
type​
String​

BusinessUnitStoreAdded

Generated after a successful Add Store update action.
store​
The Store that was added to the Business Unit.
storeRef​
The Store that was added to the Business Unit.
type​
String​

BusinessUnitStoresSet

Generated after a successful Set Stores update action.
stores​
Array of Store​
Stores of the Business Unit after the Set Stores update action.
storesRef​
Array of KeyReference​
Stores of the Business Unit after the Set Stores update action.
type​
String​

BusinessUnitStoreModeChanged

The inheritedStores, oldInheritedStores, inheritedStoresRef, and oldInheritedStoresRef fields are only available in GraphQL.
storeMode​
String​
oldStoreMode​
String​
stores​
Array of Store​
oldStores​
Array of Store​
inheritedStores​
Array of Store​
oldInheritedStores​
Array of Store​
storesRef​
Array of KeyReference​
oldStoresRef​
Array of KeyReference​
inheritedStoresRef​
Array of KeyReference​
oldInheritedStoresRef​
Array of KeyReference​
type​
String​

BusinessUnitStoreRemoved

Generated after a successful Remove Store update action.
store​
The Store that was removed from the Business Unit.
storeRef​
The Store that was removed from the Business Unit.
type​
String​

BusinessUnitStatusChanged

The GraphQL field status corresponds to the field active in BusinessUnitStatusChangedMessage in REST.
status​
Can be Active, or Inactive​
type​
String​

BusinessUnitStatus

Active
Inactive

BusinessUnitBillingAddressAdded

Generated after a successful Add Billing Address Identifier update action.
address​
The address that was added to the Business Unit as billing address.
type​
String​

BusinessUnitBillingAddressRemoved

Generated after a successful Remove Billing Address Identifier update action.
address​
The address that was removed from the billing addresses of the Business Unit.
type​
String​

BusinessUnitDefaultBillingAddressSet

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

The address that was set as the default billing address.

type​
String​

BusinessUnitShippingAddressAdded

Generated after a successful Add Shipping Address Identifier update action.
address​
The address that was added to the Business Unit as shipping address.
type​
String​

BusinessUnitShippingAddressRemoved

Generated after a successful Remove Shipping Address Identifier update action.
address​
The address that was removed from shipping addresses of the Business Unit.
type​
String​

BusinessUnitDefaultShippingAddressSet

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

The address that was set as the default shipping address.

type​
String​

BusinessUnitContactEmailSet

Generated after a successful Set Contact Email update action.
contactEmail​
String​
The contact email that was updated on the Business Unit.
type​
String​

BusinessUnitCustomerGroupAssignmentAdded BETA

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
customerGroupAssignment​
Customer Group assigned to the Business Unit during the Add CustomerGroupAssignment update action.
type​
String​

BusinessUnitCustomerGroupAssignmentRemoved BETA

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
customerGroupAssignment​
Customer Group unassigned from the Business Unit during the Remove CustomerGroupAssignment update action.
type​
String​

BusinessUnitCustomerGroupAssignmentsSet BETA

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
customerGroupAssignments​
Customer Groups assigned to the Business Unit during the Set CustomerGroupAssignments update action.
oldCustomerGroupAssignments​
Customer Groups assigned to the Business Unit before the Set CustomerGroupAssignments update action.
type​
String​

BusinessUnitNameChanged

Generated after a successful Change Name update action.
name​
String​
Updated name of the Business Unit.
type​
String​

BusinessUnitDeleted

Generated after a successful Delete BusinessUnit request.
type​
String​

BusinessUnitCustomFieldAdded

Generated after adding a Custom Field to a Business Unit using the Set CustomField update action. If a Custom Field already exists with the same name, a BusinessUnitCustomFieldChanged 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​

BusinessUnitCustomFieldChanged

Generated after changing an existing Custom Field on a Business Unit 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​

BusinessUnitCustomFieldRemoved

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

Name of the Custom Field that was removed.

type​
String​

BusinessUnitCustomTypeSet

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

The Custom Fields that were set.

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

BusinessUnitCustomTypeRemoved

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

BusinessUnitAddressCustomFieldAdded

Generated after adding a Custom Field to an address of a Business Unit using the Set Address CustomField update action. If a Custom Field already exists with the same name, a BusinessUnitAddressCustomFieldChanged 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​

BusinessUnitAddressCustomFieldChanged

Generated after changing an existing Custom Field on an address of a Business Unit using the Set Address 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.
addressId​
String​
id of the Address of which the Custom Field was changed.
type​
String​

BusinessUnitAddressCustomFieldRemoved

Generated after removing a Custom Field from an address of a Business Unit using the Set Address CustomField 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​

BusinessUnitAddressCustomTypeSet

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

The Custom Fields that were set.

oldTypeId​
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​

BusinessUnitAddressCustomTypeRemoved

Generated after removing a Custom Type from an address of a Business Unit using the Set Custom Type in Address update action.
oldTypeId​
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​

Associate Role Messages

AssociateRoleCreated

Generated after a successful Create AssociateRole request.
associateRole​
The AssociateRole that was created.
type​
String​

AssociateRoleBuyerAssignableChanged

Generated after a successful Change BuyerAssignable update action.
buyerAssignable​
Boolean​
The new value of the buyerAssignable field of the AssociateRole.
type​
String​

AssociateRolePermissionAdded

Generated after a successful Add Permissions update action.
permission​

The Permission that was added to the AssociateRole.

Can be AcceptMyQuotes, AcceptOthersQuotes, AddChildUnits, CreateApprovalRules, CreateMyCarts, CreateMyOrdersFromMyCarts, CreateMyOrdersFromMyQuotes, CreateMyPaymentMethods, CreateMyQuoteRequestsFromMyCarts, CreateMyShoppingLists, CreateOrdersFromOthersCarts, CreateOrdersFromOthersQuotes, CreateOthersCarts, CreateOthersPaymentMethods, CreateOthersShoppingLists, CreateQuoteRequestsFromOthersCarts, DeclineMyQuotes, DeclineOthersQuotes, DeleteMyCarts, DeleteMyPaymentMethods, DeleteMyShoppingLists, DeleteOthersCarts, DeleteOthersPaymentMethods, DeleteOthersShoppingLists, ReassignMyQuotes, ReassignOthersQuotes, RenegotiateMyQuotes, RenegotiateOthersQuotes, UpdateApprovalFlows, UpdateApprovalRules, UpdateAssociates, UpdateBusinessUnitDetails, UpdateMyCarts, UpdateMyOrders, UpdateMyPaymentMethods, UpdateMyQuoteRequests, UpdateMyShoppingLists, UpdateOthersCarts, UpdateOthersOrders, UpdateOthersPaymentMethods, UpdateOthersQuoteRequests, UpdateOthersShoppingLists, UpdateParentUnit, ViewMyCarts, ViewMyOrders, ViewMyPaymentMethods, ViewMyQuoteRequests, ViewMyQuotes, ViewMyShoppingLists, ViewOthersCarts, ViewOthersOrders, ViewOthersPaymentMethods, ViewOthersQuoteRequests, ViewOthersQuotes, or ViewOthersShoppingLists​
type​
String​

Permission

AcceptMyQuotes
AcceptOthersQuotes
AddChildUnits
CreateApprovalRules
CreateMyCarts
CreateMyOrdersFromMyCarts
CreateMyOrdersFromMyQuotes
CreateMyPaymentMethods
CreateMyQuoteRequestsFromMyCarts
CreateMyShoppingLists
CreateOrdersFromOthersCarts
CreateOrdersFromOthersQuotes
CreateOthersCarts
CreateOthersPaymentMethods
CreateOthersShoppingLists
CreateQuoteRequestsFromOthersCarts
DeclineMyQuotes
DeclineOthersQuotes
DeleteMyCarts
DeleteMyPaymentMethods
DeleteMyShoppingLists
DeleteOthersCarts
DeleteOthersPaymentMethods
DeleteOthersShoppingLists
ReassignMyQuotes
ReassignOthersQuotes
RenegotiateMyQuotes
RenegotiateOthersQuotes
UpdateApprovalFlows
UpdateApprovalRules
UpdateAssociates
UpdateBusinessUnitDetails
UpdateMyCarts
UpdateMyOrders
UpdateMyPaymentMethods
UpdateMyQuoteRequests
UpdateMyShoppingLists
UpdateOthersCarts
UpdateOthersOrders
UpdateOthersPaymentMethods
UpdateOthersQuoteRequests
UpdateOthersShoppingLists
UpdateParentUnit
ViewMyCarts
ViewMyOrders
ViewMyPaymentMethods
ViewMyQuoteRequests
ViewMyQuotes
ViewMyShoppingLists
ViewOthersCarts
ViewOthersOrders
ViewOthersPaymentMethods
ViewOthersQuoteRequests
ViewOthersQuotes
ViewOthersShoppingLists

AssociateRolePermissionRemoved

Generated after a successful Remove Permissions update action.
permission​

The Permission that was removed from the AssociateRole.

Can be AcceptMyQuotes, AcceptOthersQuotes, AddChildUnits, CreateApprovalRules, CreateMyCarts, CreateMyOrdersFromMyCarts, CreateMyOrdersFromMyQuotes, CreateMyPaymentMethods, CreateMyQuoteRequestsFromMyCarts, CreateMyShoppingLists, CreateOrdersFromOthersCarts, CreateOrdersFromOthersQuotes, CreateOthersCarts, CreateOthersPaymentMethods, CreateOthersShoppingLists, CreateQuoteRequestsFromOthersCarts, DeclineMyQuotes, DeclineOthersQuotes, DeleteMyCarts, DeleteMyPaymentMethods, DeleteMyShoppingLists, DeleteOthersCarts, DeleteOthersPaymentMethods, DeleteOthersShoppingLists, ReassignMyQuotes, ReassignOthersQuotes, RenegotiateMyQuotes, RenegotiateOthersQuotes, UpdateApprovalFlows, UpdateApprovalRules, UpdateAssociates, UpdateBusinessUnitDetails, UpdateMyCarts, UpdateMyOrders, UpdateMyPaymentMethods, UpdateMyQuoteRequests, UpdateMyShoppingLists, UpdateOthersCarts, UpdateOthersOrders, UpdateOthersPaymentMethods, UpdateOthersQuoteRequests, UpdateOthersShoppingLists, UpdateParentUnit, ViewMyCarts, ViewMyOrders, ViewMyPaymentMethods, ViewMyQuoteRequests, ViewMyQuotes, ViewMyShoppingLists, ViewOthersCarts, ViewOthersOrders, ViewOthersPaymentMethods, ViewOthersQuoteRequests, ViewOthersQuotes, or ViewOthersShoppingLists​
type​
String​

Permission

AcceptMyQuotes
AcceptOthersQuotes
AddChildUnits
CreateApprovalRules
CreateMyCarts
CreateMyOrdersFromMyCarts
CreateMyOrdersFromMyQuotes
CreateMyPaymentMethods
CreateMyQuoteRequestsFromMyCarts
CreateMyShoppingLists
CreateOrdersFromOthersCarts
CreateOrdersFromOthersQuotes
CreateOthersCarts
CreateOthersPaymentMethods
CreateOthersShoppingLists
CreateQuoteRequestsFromOthersCarts
DeclineMyQuotes
DeclineOthersQuotes
DeleteMyCarts
DeleteMyPaymentMethods
DeleteMyShoppingLists
DeleteOthersCarts
DeleteOthersPaymentMethods
DeleteOthersShoppingLists
ReassignMyQuotes
ReassignOthersQuotes
RenegotiateMyQuotes
RenegotiateOthersQuotes
UpdateApprovalFlows
UpdateApprovalRules
UpdateAssociates
UpdateBusinessUnitDetails
UpdateMyCarts
UpdateMyOrders
UpdateMyPaymentMethods
UpdateMyQuoteRequests
UpdateMyShoppingLists
UpdateOthersCarts
UpdateOthersOrders
UpdateOthersPaymentMethods
UpdateOthersQuoteRequests
UpdateOthersShoppingLists
UpdateParentUnit
ViewMyCarts
ViewMyOrders
ViewMyPaymentMethods
ViewMyQuoteRequests
ViewMyQuotes
ViewMyShoppingLists
ViewOthersCarts
ViewOthersOrders
ViewOthersPaymentMethods
ViewOthersQuoteRequests
ViewOthersQuotes
ViewOthersShoppingLists

AssociateRolePermissionsSet

Generated after a successful Set Permissions update action.
permissions​
Array of Permission​

Permission assigned to the AssociateRole.

Can be AcceptMyQuotes, AcceptOthersQuotes, AddChildUnits, CreateApprovalRules, CreateMyCarts, CreateMyOrdersFromMyCarts, CreateMyOrdersFromMyQuotes, CreateMyPaymentMethods, CreateMyQuoteRequestsFromMyCarts, CreateMyShoppingLists, CreateOrdersFromOthersCarts, CreateOrdersFromOthersQuotes, CreateOthersCarts, CreateOthersPaymentMethods, CreateOthersShoppingLists, CreateQuoteRequestsFromOthersCarts, DeclineMyQuotes, DeclineOthersQuotes, DeleteMyCarts, DeleteMyPaymentMethods, DeleteMyShoppingLists, DeleteOthersCarts, DeleteOthersPaymentMethods, DeleteOthersShoppingLists, ReassignMyQuotes, ReassignOthersQuotes, RenegotiateMyQuotes, RenegotiateOthersQuotes, UpdateApprovalFlows, UpdateApprovalRules, UpdateAssociates, UpdateBusinessUnitDetails, UpdateMyCarts, UpdateMyOrders, UpdateMyPaymentMethods, UpdateMyQuoteRequests, UpdateMyShoppingLists, UpdateOthersCarts, UpdateOthersOrders, UpdateOthersPaymentMethods, UpdateOthersQuoteRequests, UpdateOthersShoppingLists, UpdateParentUnit, ViewMyCarts, ViewMyOrders, ViewMyPaymentMethods, ViewMyQuoteRequests, ViewMyQuotes, ViewMyShoppingLists, ViewOthersCarts, ViewOthersOrders, ViewOthersPaymentMethods, ViewOthersQuoteRequests, ViewOthersQuotes, or ViewOthersShoppingLists​
type​
String​

Permission

AcceptMyQuotes
AcceptOthersQuotes
AddChildUnits
CreateApprovalRules
CreateMyCarts
CreateMyOrdersFromMyCarts
CreateMyOrdersFromMyQuotes
CreateMyPaymentMethods
CreateMyQuoteRequestsFromMyCarts
CreateMyShoppingLists
CreateOrdersFromOthersCarts
CreateOrdersFromOthersQuotes
CreateOthersCarts
CreateOthersPaymentMethods
CreateOthersShoppingLists
CreateQuoteRequestsFromOthersCarts
DeclineMyQuotes
DeclineOthersQuotes
DeleteMyCarts
DeleteMyPaymentMethods
DeleteMyShoppingLists
DeleteOthersCarts
DeleteOthersPaymentMethods
DeleteOthersShoppingLists
ReassignMyQuotes
ReassignOthersQuotes
RenegotiateMyQuotes
RenegotiateOthersQuotes
UpdateApprovalFlows
UpdateApprovalRules
UpdateAssociates
UpdateBusinessUnitDetails
UpdateMyCarts
UpdateMyOrders
UpdateMyPaymentMethods
UpdateMyQuoteRequests
UpdateMyShoppingLists
UpdateOthersCarts
UpdateOthersOrders
UpdateOthersPaymentMethods
UpdateOthersQuoteRequests
UpdateOthersShoppingLists
UpdateParentUnit
ViewMyCarts
ViewMyOrders
ViewMyPaymentMethods
ViewMyQuoteRequests
ViewMyQuotes
ViewMyShoppingLists
ViewOthersCarts
ViewOthersOrders
ViewOthersPaymentMethods
ViewOthersQuoteRequests
ViewOthersQuotes
ViewOthersShoppingLists

AssociateRoleNameSet

Generated after a successful Set Name update action.
name​
String​
Updated name of the AssociateRole.
type​
String​

AssociateRoleDeleted

Generated after a successful Delete AssociateRole request.
type​
String​