---
title: "customerDefaultAddressUpdate"
description: "Default address settings for customers"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-default-address-update'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-default-address-update.md'
---
# customerDefaultAddressUpdate

Default address settings for customers

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CustomerDefaultAddressUpdatePayload`

## Arguments

* `addressId`

  [ID!](https://developer.shopline.com/docs/storefront-api/common/scalars/id.md)

  Address ID

* `customerAccessToken`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  Customer visit token

## Returns

* `customer`

  [Customer](https://developer.shopline.com/docs/storefront-api/customers/objects/customer.md)

  Customer Information

* `customerUserErrors`

  [[CustomerUserError!]!](https://developer.shopline.com/docs/storefront-api/customers/objects/customer-user-error.md)

  Error message

## Code Example

```graphql
mutation customerDefaultAddressUpdate($addressId: ID! $customerAccessToken: String! ) {
	customerDefaultAddressUpdate(addressId: $addressId, customerAccessToken: $customerAccessToken ) 
		 {
			# CustomerDefaultAddressUpdatePayload fields
		}
		
	}

```

## Variables

```json
{
  "addressId": {},
  "customerAccessToken": {}
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

