# Send required header-level data elements for origin and destination addresses

Source: https://developer.avalara.com/address-validation/vlt5974509111652/

# Send required header-level data elements for origin and destination addresses

**Element type**: Required

**Endpoints/Models used**: [AddressesModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/AddressesModel/)

Your integration must provide a method for merchants to enter the origin and destination addresses at the document-level of transactions.

Whether to validate and resolve addresses at the document-level can be optional for merchants, but your integration must provide merchants with this option.

The example below shows a simple [CreateTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/) request where the origin and destination addresses are at the document-level.

**View example**:

```
{
    "lines": [
        {
            "number": "1",
            "quantity": 1,
            "amount": 100,
            "taxCode": "PS081282",
            "itemCode": "Y0001",
            "description": "Yarn"
        }
    ],
    "addresses": {
      "shipFrom": {
        "line1": "2000 Main Street",
        "city": "Irvine",
        "region": "CA",
        "country": "US",
        "postalCode": "92614"
      },
      "shipTo": {
        "line1": "1100 2nd Ave",
        "city": "Seattle",
        "region": "WA",
        "country": "US",
        "postalCode": "98101"
      }
    },
    "type": "SalesInvoice",
    "companyCode": "DEFAULT",
    "date": "2020-10-16",
    "code": "XYZ",
    "customerCode": "ABC",
    "commit": true,
    "currencyCode": "USD",
    "description": "Yarn"
}
```