---
title: UserErrorsCustomerAddressUserErrorsCode - Customer API
description: >-
  Possible error codes that can be returned by
  `UserErrorsCustomerAddressUserErrors`.
api_version: unstable
api_name: customer
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/unstable/enums/UserErrorsCustomerAddressUserErrorsCode
  md: >-
    https://shopify.dev/docs/api/customer/unstable/enums/UserErrorsCustomerAddressUserErrorsCode.md
---

# User​Errors​Customer​Address​User​Errors​Code

enum

Possible error codes that can be returned by `UserErrorsCustomerAddressUserErrors`.

## Valid values

* ADDRESS\_​ARGUMENT\_​EMPTY

  The provided address argument is empty.

* ADDRESS\_​ID\_​DOES\_​NOT\_​EXIST

  The provided address ID doesn't exist.

* ADDRESS1\_​MISSING

  The Address1 field is missing.

* CONTAINS\_​HTML\_​TAGS

  Input contains HTML tags.

* COUNTRY\_​NOT\_​EXIST

  The provided country doesn't exist.

* CUSTOMER\_​ADDRESS\_​ALREADY\_​EXISTS

  The provided customer address already exists.

* DELETING\_​CUSTOMER\_​DEFAULT\_​ADDRESS\_​NOT\_​ALLOWED

  The default address of the customer can't be deleted before setting another one as default.

* DEMOTING\_​CUSTOMER\_​DEFAULT\_​ADDRESS\_​NOT\_​ALLOWED

  Demoting the default address of the customer isn't allowed.

* INVALID

  The provided address field isn't valid.

* INVALID\_​FOR\_​COUNTRY

  The provided value is invalid for the country.

* INVALID\_​FOR\_​COUNTRY\_​AND\_​PROVINCE

  The provided value is invalid for the country and province.

* INVALID\_​TERRITORY\_​CODE

  The provided Territory Code isn't valid.

* PHONE\_​NUMBER\_​NOT\_​VALID

  The provided phone number isn't valid.

* REQUIRED

  The field is required.

* TERRITORY\_​CODE\_​MISSING

  The Territory Code field is missing.

* TOO\_​LONG

  The provided address field is too long.

* ZONE\_​CODE\_​MISSING

  The Zone Code field is missing.

***

## Fields

* [User​Errors​Customer​Address​User​Errors.code](https://shopify.dev/docs/api/customer/unstable/objects/UserErrorsCustomerAddressUserErrors#field-UserErrorsCustomerAddressUserErrors.fields.code)

  OBJECT

  The error codes that are provided for failed address mutations.

***

## Map

### Fields with this enum

* [User​Errors​Customer​Address​User​Errors.code](https://shopify.dev/docs/api/customer/unstable/objects/UserErrorsCustomerAddressUserErrors#field-UserErrorsCustomerAddressUserErrors.fields.code)
