# Business Unit and Associate Role Messages

## GraphQL partial SDLs

This is a graphql reference page. In the llms.txt variant, those components link to the shared partial SDL key list instead of trying to resolve inline GraphQL reference content.

Fetch all available partial SDL keys first:

```text
GET https://docs.commercetools.com/apis/rest/content/by-id?id=ctp:gql-sphere:returnTypesList
```

Then fetch the one or more relevant partial SDL with a key from that list by calling the same endpoint with a schema ID:

```text
GET https://docs.commercetools.com/apis/rest/content/by-id?id=ctp:gql-sphere:schema:<key>
```

The response body is a JSON object keyed by the requested content ID. For example, the key-list request returns a `ctp:gql-sphere:returnTypesList` field and a schema request returns a `ctp:gql-sphere:schema:<key>` field.

**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](/api/graphql/messages.md#messagepayload) and is returned in the `payload` field of a [Message](/api/graphql/messages.md#message). For when each Message is generated, see [Business Unit and Associate Role Messages](/api/projects/messages/business-unit-associate-role-messages.md).

## Business Unit Messages

### BusinessUnitCreated

[fetch SDL for type BusinessUnitCreated](#graphql-partial-sdls).

### BusinessUnitAddressAdded

[fetch SDL for type BusinessUnitAddressAdded](#graphql-partial-sdls).

### BusinessUnitAddressChanged

[fetch SDL for type BusinessUnitAddressChanged](#graphql-partial-sdls).

### BusinessUnitAddressRemoved

[fetch SDL for type BusinessUnitAddressRemoved](#graphql-partial-sdls).

### BusinessUnitAssociateAdded

[fetch SDL for type BusinessUnitAssociateAdded](#graphql-partial-sdls).

### BusinessUnitAssociatesSet

[fetch SDL for type BusinessUnitAssociatesSet](#graphql-partial-sdls).

### BusinessUnitAssociateChanged

[fetch SDL for type BusinessUnitAssociateChanged](#graphql-partial-sdls).

### BusinessUnitAssociateModeChanged

[fetch SDL for type BusinessUnitAssociateModeChanged](#graphql-partial-sdls).

### BusinessUnitAssociateRemoved

[fetch SDL for type BusinessUnitAssociateRemoved](#graphql-partial-sdls).

### BusinessUnitApprovalRuleModeChanged

[fetch SDL for type BusinessUnitApprovalRuleModeChanged](#graphql-partial-sdls).

### BusinessUnitParentChanged

[fetch SDL for type BusinessUnitParentChanged](#graphql-partial-sdls).

### BusinessUnitTypeSet&#x20;

[fetch SDL for type BusinessUnitTypeSet](#graphql-partial-sdls).

### BusinessUnitTopLevelUnitSet&#x20;

[fetch SDL for type BusinessUnitTopLevelUnitSet](#graphql-partial-sdls).

### BusinessUnitStoreAdded

[fetch SDL for type BusinessUnitStoreAdded](#graphql-partial-sdls).

### BusinessUnitStoresSet

[fetch SDL for type BusinessUnitStoresSet](#graphql-partial-sdls).

### BusinessUnitStoreModeChanged

> The `inheritedStores`, `oldInheritedStores`, `inheritedStoresRef`, and `oldInheritedStoresRef` fields are only available in GraphQL.

[fetch SDL for type BusinessUnitStoreModeChanged](#graphql-partial-sdls).

### BusinessUnitStoreRemoved

[fetch SDL for type BusinessUnitStoreRemoved](#graphql-partial-sdls).

### BusinessUnitStatusChanged

> The GraphQL field `status` corresponds to the field `active` in [BusinessUnitStatusChangedMessage](/search.md?urn=ctp:api:type:BusinessUnitStatusChangedMessage) in REST.

[fetch SDL for type BusinessUnitStatusChanged](#graphql-partial-sdls).

### BusinessUnitBillingAddressAdded

[fetch SDL for type BusinessUnitBillingAddressAdded](#graphql-partial-sdls).

### BusinessUnitBillingAddressRemoved

[fetch SDL for type BusinessUnitBillingAddressRemoved](#graphql-partial-sdls).

### BusinessUnitDefaultBillingAddressSet

[fetch SDL for type BusinessUnitDefaultBillingAddressSet](#graphql-partial-sdls).

### BusinessUnitShippingAddressAdded

[fetch SDL for type BusinessUnitShippingAddressAdded](#graphql-partial-sdls).

### BusinessUnitShippingAddressRemoved

[fetch SDL for type BusinessUnitShippingAddressRemoved](#graphql-partial-sdls).

### BusinessUnitDefaultShippingAddressSet

[fetch SDL for type BusinessUnitDefaultShippingAddressSet](#graphql-partial-sdls).

### BusinessUnitContactEmailSet

[fetch SDL for type BusinessUnitContactEmailSet](#graphql-partial-sdls).

### BusinessUnitCustomerGroupAssignmentAdded&#x20;

[fetch SDL for type BusinessUnitCustomerGroupAssignmentAdded](#graphql-partial-sdls).

### BusinessUnitCustomerGroupAssignmentRemoved&#x20;

[fetch SDL for type BusinessUnitCustomerGroupAssignmentRemoved](#graphql-partial-sdls).

### BusinessUnitCustomerGroupAssignmentsSet&#x20;

[fetch SDL for type BusinessUnitCustomerGroupAssignmentsSet](#graphql-partial-sdls).

### BusinessUnitNameChanged

[fetch SDL for type BusinessUnitNameChanged](#graphql-partial-sdls).

### BusinessUnitDeleted

[fetch SDL for type BusinessUnitDeleted](#graphql-partial-sdls).

### BusinessUnitCustomFieldAdded

[fetch SDL for type BusinessUnitCustomFieldAdded](#graphql-partial-sdls).

### BusinessUnitCustomFieldChanged

[fetch SDL for type BusinessUnitCustomFieldChanged](#graphql-partial-sdls).

### BusinessUnitCustomFieldRemoved

[fetch SDL for type BusinessUnitCustomFieldRemoved](#graphql-partial-sdls).

### BusinessUnitCustomTypeSet

[fetch SDL for type BusinessUnitCustomTypeSet](#graphql-partial-sdls).

### BusinessUnitCustomTypeRemoved

[fetch SDL for type BusinessUnitCustomTypeRemoved](#graphql-partial-sdls).

### BusinessUnitAddressCustomFieldAdded

[fetch SDL for type BusinessUnitAddressCustomFieldAdded](#graphql-partial-sdls).

### BusinessUnitAddressCustomFieldChanged

[fetch SDL for type BusinessUnitAddressCustomFieldChanged](#graphql-partial-sdls).

### BusinessUnitAddressCustomFieldRemoved

[fetch SDL for type BusinessUnitAddressCustomFieldRemoved](#graphql-partial-sdls).

### BusinessUnitAddressCustomTypeSet

[fetch SDL for type BusinessUnitAddressCustomTypeSet](#graphql-partial-sdls).

### BusinessUnitAddressCustomTypeRemoved

[fetch SDL for type BusinessUnitAddressCustomTypeRemoved](#graphql-partial-sdls).

## Associate Role Messages

### AssociateRoleCreated

[fetch SDL for type AssociateRoleCreated](#graphql-partial-sdls).

### AssociateRoleBuyerAssignableChanged

[fetch SDL for type AssociateRoleBuyerAssignableChanged](#graphql-partial-sdls).

### AssociateRolePermissionAdded

[fetch SDL for type AssociateRolePermissionAdded](#graphql-partial-sdls).

### AssociateRolePermissionRemoved

[fetch SDL for type AssociateRolePermissionRemoved](#graphql-partial-sdls).

### AssociateRolePermissionsSet

[fetch SDL for type AssociateRolePermissionsSet](#graphql-partial-sdls).

### AssociateRoleNameSet

[fetch SDL for type AssociateRoleNameSet](#graphql-partial-sdls).

### AssociateRoleDeleted

[fetch SDL for type AssociateRoleDeleted](#graphql-partial-sdls).

## Related pages

- [Area overview page with navigation](/api.md)
- [Previous page: REST](/api/projects/messages/business-unit-associate-role-messages.md)
- [Search documentation and API specs](/search.md)