Skip to main content

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.
type AccountSetDefaultAddress {
user: User
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!
}

Fields

AccountSetDefaultAddress.user ● User object users

An updated user instance.

AccountSetDefaultAddress.accountErrors ● [AccountError!]! deprecated non-null object users

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

AccountSetDefaultAddress.errors ● [AccountError!]! non-null object users

Returned By

accountSetDefaultAddress mutation