---
title: "customerAddressCreate"
description: "customer address create"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-address-create'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-address-create.md'
---
# customerAddressCreate

customer address create

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

## Type Signature

`CustomerAddressCreatePayload`

## Arguments

* `customerAccessToken`

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

  Customer visit token

* `address`

  [MailingAddressInput!](https://developer.shopline.com/docs/storefront-api/common-objects/inputs/mailing-address-input.md)

  Address information

## Returns

* `customerAddress`

  [MailingAddress](https://developer.shopline.com/docs/storefront-api/common-objects/objects/mailing-address.md)

  Customer Address

* `customerUserErrors`

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

  Error Message

## Code Example

```graphql
mutation customerAddressCreate($customerAccessToken: String! $address: MailingAddressInput! ) {
	customerAddressCreate(customerAccessToken: $customerAccessToken, address: $address ) 
		 {
			# CustomerAddressCreatePayload fields
		}
		
	}

```

## Variables

```json
{
  "address": {
    "address1": {},
    "address2": "",
    "city": "",
    "cityCode": "",
    "company": "",
    "country": "",
    "countryCode": "",
    "district": "",
    "districtCode": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "province": "",
    "provinceCode": "",
    "zip": ""
  },
  "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).

