# SOAP to RESTv2 API mapping

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

# SOAP to RESTv2 API mapping

Compare SOAP and RESTv2 APIs to understand their mappings, purposes, and usage details.

The table below shows the mappings between SOAP and RESTv2 APIs.

Service

SOAP API

RESTv2 API

Purpose

Comments

Modify committed transaction records

[adjustTax](https://developer.avalara.com/api-reference/avatax/soap/methods/adjustTax/)

[AdjustTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/AdjustTransaction/)

Used for changing an existing transaction.

Use this for transactions that already exist and aren't locked. This can't be used for locked transactions.

Void documents

[cancelTax](https://developer.avalara.com/api-reference/avatax/soap/methods/cancelTax/)

[VoidTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/VoidTransaction/)

Voids or deletes a transaction

Use the `DocVoided` code or the `DocDeleted`, depending on the document's status (saved, posted, committed, uncommitted).

Committing a document

[commitTax](https://developer.avalara.com/api-reference/avatax/soap/methods/commitTax/)

[CommitTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CommitTransaction/)

Changes a transaction's status to committed.

Perform a tax calculation on a document

[getTax](https://developer.avalara.com/api-reference/avatax/soap/methods/getTax/)

[CreateTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/)

Creates a new transaction document.

Refer to the [getTax refactor to CreateTransaction](https://developer.avalara.com/soap-to-restv2-refactor-guide/soap-restv2-mapping/example-gettax.htm) topic for a mapping of the fields in SOAP and RESTv2.

Retrieve document history

[getTaxHistory](https://developer.avalara.com/api-reference/avatax/soap/methods/getTaxHistory/)

[GetTransactionByCode](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/GetTransactionByCode/)

Used for retrieving details of a committed transaction

Retrieve all entitlements for a single user

[isAuthorized](https://developer.avalara.com/api-reference/avatax/soap/methods/isAuthorized/)

[GetAccount](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Accounts/GetAccount/)

Queries users and subscriptions available on an account.

Test connectivity

[ping](https://developer.avalara.com/api-reference/avatax/soap/methods/ping/)

[Ping](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Utilities/Ping/)

Tests the connectivity of AvaTax and verifies authentication.

Perform multiple actions against a transaction

[postTax](https://developer.avalara.com/api-reference/avatax/soap/methods/postTax/)

[SettleTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/SettleTransaction/)

Validates a transaction's values (comparing with host system values) before committing. Users can also change the document code, commit the transaction, and/or verify the transaction with this request.

SettleTransaction includes the [VerifyTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/VerifyTransaction/) function. For integrations with posting processes, we recommend SettleTransaction.

Retrieve transactions for a company

[reconcileTaxHistory](https://developer.avalara.com/api-reference/avatax/soap/methods/reconcileTaxHistory/)

[ListTransactionsByCompany](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/ListTransactionsByCompany/)

Returns all transactions for a specific company.

Address validation

[validateAddress](https://developer.avalara.com/api-reference/avatax/soap/methods/validateAddress/)

[ResolveAddress](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Addresses/ResolveAddress/)

Resolves an address against Avalara's address validation system.

Offline tax content API

N/A

[BuildTaxContentFile](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/TaxContent/BuildTaxContentFile/)

Builds a multilocation tax content file containing a matrix of taxes that would be charged in transactions when you sell items at any of your locations.

Because tax rates may change based on decisions made by various tax authorities, we recommend that users of this tax content API download new data every day.