---
title: "Invoice V3.1 · addressType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/726270025/Invoice%20V3.1%20%C2%B7%20addressType"
format: markdown
---
**Complex type** in namespace `http://www.onetrail.net` · part of [Invoice V3.1](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262)

## Diagram

![addressType diagram](media://0c261d3d-70f4-402d-8317-e662d6f81171)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **name** [required] | `xsd:string` | 1..1 |  |
| 2 | **addressLine1** | `xsd:string` | 0..1 |  |
| 3 | **addressLine2** | `xsd:string` | 0..1 |  |
| 4 | **addressLine3** | `xsd:string` | 0..1 |  |
| 5 | **cityName** | `xsd:string` | 0..1 |  |
| 6 | **nationalPostalCode** | `xsd:string` | 0..1 |  |
| 7 | **globalCountryCode** | `xsd:string` | 0..1 | [Reference](http://nl.wikipedia.org/wiki/ISO_3166-1): Please use ISO 3166-1, 2-letter country codes in capitals. |
| 8 | **contactName** | `xsd:string` | 0..1 |  |
| 9 | **emailAddress** | `xsd:string` | 0..1 |  |
| 10 | **telephoneNumber** | `xsd:string` | 0..1 |  |
| 11 | **facsimileNumber** | `xsd:string` | 0..1 |  |
| 12 | **accountNumber** | `xsd:string` | 0..1 | Buyer's reference number at the seller. Preferrably this would be a GLN (Global Location Number, formerly known as EAN address code). |
| 13 | **taxIdentifier** | `xsd:string` | 0..1 | Value Added Tax number, issued by the government. |
| 14 | **bankAccountNumber** | `xsd:string` | 0..1 |  |
| 15 | **IBAN** | `xsd:string` | 0..1 | International Bank Account Number. This references an individual account number for foreign payments. |
| 16 | **BIC** | `xsd:string` | 0..1 | Bank Identifier Code, formerly known as Swift address. This code references a specific bank for foreign payments. |

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@partnerID** | `xsd:string` | optional | Preferrably this would be an official GLN (Global Location Number, formerly known as EAN address code). This attribute is mandatory for TradingPartnerFrom and TradingPartnerTo. If one is not available, Onetrail TPN™ has a conversion service for your proprietary account numbers available. |
| **@type** | [addressTypeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-addressTypeType)  
8 code values | [required] | MANDATORY<br>- 'TradingPartnerFrom'
- 'TradingPartnerTo'
- 'BillFrom'
- 'BillTo'
- 'ShipTo' OPTIONAL
- 'ShipFrom' |

## Used by

- [invoiceLineType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725975206) / **address**
- [addressesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725450867) / **address**

<details>
<summary>XSD source</summary>

```xml
<xsd:complexType name="addressType">
        <xsd:sequence>
            <xsd:element name="name" type="xsd:string"/>
            <xsd:element name="addressLine1" type="xsd:string" minOccurs="0"/>
            <xsd:element name="addressLine2" type="xsd:string" minOccurs="0"/>
            <xsd:element name="addressLine3" type="xsd:string" minOccurs="0"/>
            <xsd:element name="cityName" type="xsd:string" minOccurs="0"/>
            <xsd:element name="nationalPostalCode" type="xsd:string" minOccurs="0"/>
            <xsd:element name="globalCountryCode" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation source="http://nl.wikipedia.org/wiki/ISO_3166-1" xml:lang="EN">Please use ISO 3166-1, 2-letter country codes in capitals.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="contactName" type="xsd:string" minOccurs="0"/>
            <xsd:element name="emailAddress" type="xsd:string" minOccurs="0"/>
            <xsd:element name="telephoneNumber" type="xsd:string" minOccurs="0"/>
            <xsd:element name="facsimileNumber" type="xsd:string" minOccurs="0"/>
            <xsd:element name="accountNumber" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Buyer's reference number at the seller.
Preferrably this would be a GLN (Global Location Number, formerly known as EAN address code).</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="taxIdentifier" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Value Added Tax number, issued by the government.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="bankAccountNumber" type="xsd:string" minOccurs="0"/>
            <xsd:element name="IBAN" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">International Bank Account Number.
This references an individual account number for foreign payments.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="BIC" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Bank Identifier Code, formerly known as Swift address.
This code references a specific bank for foreign payments.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
        <xsd:attribute name="partnerID" type="xsd:string" use="optional">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">Preferrably this would be an official GLN (Global Location Number, formerly known as EAN address code).
This attribute is mandatory for TradingPartnerFrom and TradingPartnerTo.
If one is not available, Onetrail TPN™ has a conversion service for your proprietary account numbers available.</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute name="type" type="addressTypeType" use="required">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">MANDATORY
- 'TradingPartnerFrom'
- 'TradingPartnerTo'
- 'BillFrom'
- 'BillTo'
- 'ShipTo'

OPTIONAL
- 'ShipFrom'</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>

```
</details>