Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

accountSetDefaultAddress Mutation

Sets a default address for the authenticated user.

Requires one of the following permissions: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

AccountSetDefaultAddress

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.

Last updated on April 13, 2026

Was this page helpful?