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
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.
String
The e-mail address that delivery notices for this address go to.
externalRefs
Arguments:
first:Intafter:Stringlast:Intbefore: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/afterorlast/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.readpermission, notintegration.read. Withoutpartner.readit is null, withFORBIDDEN_ROLEat 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.