accountSetDefaultAddress Mutation
Sets a default address for the authenticated user.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer's address was updated.
accountSetDefaultAddress(
id: ID!
type: AddressTypeEnum!
): AccountSetDefaultAddress
Show return type
Arguments
id ● ID!
ID of the address to set as default.
type ● AddressTypeEnum!
The type of address.
Type
AccountSetDefaultAddress
Sets a default address for the authenticated user.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer's address was updated.