accountSetDefaultAddress Mutation
Sets a default address for the authenticated user.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer’s address was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: [])
accountSetDefaultAddress(id: ID!, type: AddressTypeEnum!): AccountSetDefaultAddress
Returns
Show return type
type AccountSetDefaultAddress {
user: User
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
}Arguments
id
id · ID!
ID of the address to set as default.
type
type · AddressTypeEnum!
The type of address.
Schema: Saleor 3.23.43. Download SDL.