# reconcileTaxHistory refactor to ListTransactionsByCompany

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

# reconcileTaxHistory refactor to ListTransactionsByCompany

Compare the SOAP reconcileTaxHistory method with the RESTv2 ListTransactionsByCompany method, including field differences and examples.

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

SOAP

RESTv2

`CompanyCode`

N/A. The `companyCode` is included in the request URL.

`StartDate`

N/A

`EndDate`

N/A

`PageSize`

Use `$skip` and `$top` to provide pagination for larger datasets.

## Examples

**SOAP**

```
POST https://development.avalara.net/Tax/TaxSvc.asmx/v2
    {{accountId}} {{licenseKey}}    appTest Refactor SOAP API       {{companyCode}} 2021-09-01 2021-10-29 20   
```

**REST V2**

```
curl
  -X GET
  -H 'Accept: application/json'
  -H 'Authorization: Basic ${btoa(`:`)}'
  'https://sandbox-rest.avatax.com/api/v2/companies/{companyCode}/transactions'
```