Skip to main content
Version: 3.x

accountSetDefaultAddress

Sets a default address for the authenticated user.

Requires AUTHENTICATED_USERpermission.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer's address was updated.
accountSetDefaultAddress(
id: ID!
type: AddressTypeEnum!
): AccountSetDefaultAddress

Arguments

accountSetDefaultAddress.id ● ID! non-null scalar

ID of the address to set as default.

accountSetDefaultAddress.type ● AddressTypeEnum! non-null enum

The type of address.

Type

AccountSetDefaultAddress object

Sets a default address for the authenticated user.

Requires AUTHENTICATED_USERpermission.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer's address was updated.

Was this page helpful?