businessUnitSwitch
Set the active business context for B2B operations
Arguments
| Argument | Type | Description |
|---|---|---|
businessUnitId | ID! | |
storeKey | String! |
Returns
| Field | Type | Description |
|---|---|---|
successB2B | Boolean! | Indicates if setting active business context was successful |
businessUnitErrorsB2B | [BusinessUnitSwitchError!] | Error details if setting active business context failed |
Example
mutation { businessUnitSwitch( businessUnitId: "bu-123" storeKey: "nl-store" ) { success businessUnitErrors { ... on ValidationError { message } } }}{ "data": { "businessUnitSwitch": { "success": true, "businessUnitErrors": [ { "message": "Example" } ] } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Stub: answers Not implemented |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-organization:
BusinessUnitSwitch

