# Address type


A postal address in a partner's address book.

The `id` names this version of the address. When a user edits an address that a document uses,
MAX makes a new version with a new id, and the document keeps the old one.

## Fields

### id

[`UUID!`](/chameleoon-max/type/uuid)

The MAX id of this version of the address, not of the address across its edits.

### label

`String`

The partner's own name for the address, for example "Warehouse Nitra".

### isDefault

`Boolean!`

Whether it is the partner's default address of its kind.

### recipient

`String`

The recipient's name.

### company

`String`

The company that the address is for, when it is not the partner itself.

### district

`String`

The part of the city or the district.

### regionCode

`String`

The region's code, kept beside its name in `region`.

### houseNumber

`String`

The house number, kept apart. `street` carries it too.

### street

`String!`

The street and house number.

### street2

`String`

A second address line.

### city

`String!`

The city.

### postalCode

`String!`

The postal code.

### region

`String`

The region or state.

### countryCode

`String!`

The country, as an ISO 3166-1 alpha-2 code.

### phone

`String`

The phone number that the carrier calls at this address.

### email

`String`

The e-mail address that delivery notices for this address go to.

### externalRefs

[`ExternalRefConnection`](/chameleoon-max/type/external-ref-connection)

Arguments:

- `first`: `Int`
- `after`: `String`
- `last`: `Int`
- `before`: `String`

The ids that external sources know the address by.

- Sorted by external source code, then by parent id (references without a parent first), external id
  and the reference's own id.
- A connection, paged with `first`/`after` or `last`/`before`, at most 250 a page.
- Its cursors belong to this address's references and are refused anywhere else.
- The references name this version. When the address is edited, they move to the new version.
- It is read with the partner, so it requires the `partner.read` permission, not
  `integration.read`. Without `partner.read` it is null, with `FORBIDDEN_ROLE` at its path.

Null, with an error at its path, when its page cannot be read, for example because of a
cursor of another parent. The rest of the response is returned.

A page costs 2 + first (or last) × the cost of one node.

## Used by

- [`AddressConnection`](/chameleoon-max/type/address-connection)
- [`AddressEdge`](/chameleoon-max/type/address-edge)
