> This page is for Documentation, version Refactor guides.
> For other versions, use one of these documentation indexes:
> - Integration guides (default): https://avalara.ferndocs.com/docs/integration-guides/llms.txt
> - Refactor guides: https://avalara.ferndocs.com/docs/refactor-guides/llms.txt
> - Get certified: https://avalara.ferndocs.com/docs/get-certified/llms.txt
> - Agent to Agent (A2A): https://avalara.ferndocs.com/docs/agent-to-agent-a2a/llms.txt
> - AI use cases: https://avalara.ferndocs.com/docs/ai-use-cases/llms.txt
> - API versioning: https://avalara.ferndocs.com/docs/api-versioning/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://avalara.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://avalara.ferndocs.com/_mcp/server.

# Refactor examples

Compare field differences between `validateAddress` (RESTv1) and `ResolveAddress` (RESTv2) and learn how to migrate.

The table below shows the differences in the fields between [validateAddress](https://developer.avalara.com/api-reference/avatax/rest/v1/methods/validateAddress/) (RESTv1) and [ResolveAddress](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Addresses/ResolveAddress/) (RESTv2). The example below the table shows how to migrate from RESTv1 to RESTv2.

RESTv1

RESTv2

`TextCase`

`textCase`

`Line1`

`line1`

`Line2`

`line2`

`Line3`

`line3`

`City`

`city`

`Region`

`region`

`Country`

`country`

`PostalCode`

`postalCode`

`Latitude`

`latitude`

`Longitude`

`longitude`

## Examples

**RESTv1 example**

```
curl
  -X GET
  -H 'Accept: application/json'
  -H' Authorization: Basic ${btoa(`:`)}'
  'https://development.avalara.net/1.0/address/validate?Line1&Line2&Line3&City&Region&Country&PostalCode'
```

**RESTv2 example**

```
curl
  -X GET
  -H 'Accept: application/json'
  -H 'Authorization: Basic ${btoa(`:`)}'
  -H 'Content-Type: application/json'
  'https://sandbox-rest.avatax.com/api/v2/addresses/resolve?line1=255 S King St&city=Seattle®ion=WA&country=US&postalCode=98104'
```

> **Note**
>
> Part of the **RESTV1 To RESTV2 Refactor Guide**. [Open the full "Refactor examples" section on Avalara](https://developer.avalara.com/restv1-to-restv2-refactor-guide/gca2405707126696/).