---
title: "MailingAddressInput"
description: "The input fields to create or update a mailing address."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/mailing-address-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/mailing-address-input.md'
---
# MailingAddressInput

The input fields to create or update a mailing address.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`MailingAddressInput`

## Input Fields

* `company`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Company Name

* `province`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Province, state, or district name . Please use province code.

* `countryCode`

  [CountryCode](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/enums/country-code.md)

  The code of the country or region, two letters

* `lastName`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The last name of the customer.

* `zip`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  postal code

* `address2`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Detailed address 2

* `phone`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  A  phone number for the customer.
  For example, +16134785874.

* `provinceCode`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The code for the address area, or zone. For example, NY in New York, USA.

* `address1`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Detailed Address

* `city`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  City or town name

* `country`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The name of the country. Please use country code instead.

* `district`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  district

* `town`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Street

* `firstName`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The first name of the customer.

## Schema Definition

```graphql
input MailingAddressInput { 
	company: String
	province: String
	countryCode: CountryCode
	lastName: String
	zip: String
	address2: String
	phone: String
	provinceCode: String
	address1: String
	city: String
	country: String
	district: String
	town: String
	firstName: String 
}
```

## Input field from

* [CustomerInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-input.md).addresses

  Customer Address

## Error Handling

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

