Skip to content

businessUnitDefaultAddressUpdate

Mutationin Business units

Set the business unit's default shipping and/or billing address by referencing an existing address in its address book. At least one of the two ids is required.

Arguments

ArgumentTypeDescription
businessUnitIdID!
shippingAddressIdID
billingAddressIdID

Returns

BusinessUnitDefaultAddressUpdateResponse!

FieldTypeDescription
businessUnitBusinessUnitUpdated business unit information with the modified default addresses
businessUnitErrors[BusinessUnitDefaultAddressUpdateError!]Error details if the default address update failed

Example

mutation {
businessUnitDefaultAddressUpdate(
businessUnitId: "bu-123"
shippingAddressId: "addr-123"
billingAddressId: "addr-456"
) {
businessUnit {
id
defaultShippingAddress {
id
}
billingAddress {
id
}
}
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/sfccNot resolved

Used by

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