businessUnitDefaultAddressUpdate
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
| Argument | Type | Description |
|---|---|---|
businessUnitId | ID! | |
shippingAddressId | ID | |
billingAddressId | ID |
Returns
BusinessUnitDefaultAddressUpdateResponse!
| Field | Type | Description |
|---|---|---|
businessUnit | BusinessUnit | Updated 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 } } }}{ "data": { "businessUnitDefaultAddressUpdate": { "businessUnit": { "id": "id-1", "defaultShippingAddress": { "id": "id-1" }, "billingAddress": { "id": "id-1" } }, "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 | Not resolved |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-organization:
BusinessUnitDefaultAddressUpdate

