---
title: "MailingAddress"
description: "客户默认地址"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/mailing-address'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/mailing-address.md'
---
# MailingAddress

客户默认地址

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

## Type Signature

`MailingAddress`

## Fields

* `address1`

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

  地址1

* `address2`

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

  地址2

* `city`

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

  城市

* `cityCode`

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

  城市编码

* `company`

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

  公司名称

* `country`

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

  国家

* `countryCode`

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

  国家编码

* `district`

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

  区/县

* `districtCode`

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

  区/县编码

* `firstName`

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

  名称

* `id`

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

  地址id

* `lastName`

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

  姓

* `name`

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

  用户昵称

* `phone`

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

  电话号码

* `province`

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

  省

* `provinceCode`

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

  省编码

* `zip`

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

  邮政编码

## Schema Definition

```graphql
type MailingAddress { 
	address1: String
	address2: String
	city: String
	cityCode: String
	company: String
	country: String
	countryCode: String
	district: String
	districtCode: String
	firstName: String
	id: ID!
	lastName: String
	name: String
	phone: String
	province: String
	provinceCode: String
	zip: String 
}
```

## Field from

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

  默认地址信息

* [CustomerAddressUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/objects/customer-address-update-payload.md).customerAddress

  客户地址信息

* [CustomerAddressCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/objects/customer-address-create-payload.md).customerAddress

  客户地址信息

* [AddressConnection](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/address-connection.md).nodes

  节点列表

* [AddressEdge](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/address-edge.md).node

  客户地址节点信息

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

