Skip to content

businessUnitSwitch

Mutationin Business units

Set the active business context for B2B operations

Arguments

ArgumentTypeDescription
businessUnitIdID!
storeKeyString!

Returns

BusinessUnitSwitchResponse!

FieldTypeDescription
successB2BBoolean!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
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: