# RESTv1 to RESTv2 header mapping

Source: https://developer.avalara.com/restv1-to-restv2-refactor-guide/eqm8525651286609/

# RESTv1 to RESTv2 header mapping

Understand the differences in headers and configuration between RESTv1 and RESTv2.

The following sections describe how headers and related configuration differ between RESTv1 and RESTv2.

## Security

The security configuration is the same in RESTv1 and RESTv2. Both versions use Basic authentication with:

-   Username and password

-   Account number and license key

## Profile header mapping

In RESTv1, client information is included in the request body.

In RESTv2, client information is sent using the `X-Avalara-Client` HTTP header.