# validateAddress refactor to ResolveAddress

Source: https://developer.avalara.com/soap-to-restv2-refactor-guide/sxu2581411924630/

# validateAddress refactor to ResolveAddress

Understand the differences between the validateAddress method in SOAP with the ResolveAddress method in RESTv2, including field differences and examples.

This example shows how to refactor from [validateAddress](https://developer.avalara.com/api-reference/avatax/soap/methods/validateAddress/) in SOAP to [ResolveAddress](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Addresses/ResolveAddress/) in RESTv2. It also includes a table showing the differences in the fields that are included in each API.

SOAP

RESTv2

`Coordinates`

N/A

`Taxability`

N/A

`TextCase`

`textCase`

`AddressCode`

N/A

`Line1`

`line1`

`Line2`

`line2`

`Line3`

`line3`

`City`

`city`

`Region`

`region`

`Country`

`country`

`PostalCode`

`postalCode`

`Latitude`

`latitude`

`Longitude`

`longitude`

`TaxRegionID`

N/A

## Examples

**SOAP**

```
POST https://development.avalara.net/address/addresssvc.asmx/v2
         Mark Boomerang SOAP API MBPRO       255 S King St Seattle WA 98104 0  Default true true   
```

**REST V2**

```
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'
```