# API Reference

Source: https://developer.avalara.com/goods-calculation-en/fbn0558773382805/

# API Reference

Use these AvaTax Brazil API endpoints to simulate, create, retrieve, and delete transactions.

## Top calculation endpoints

Use these AvaTax Brazil endpoints to simulate tax calculations and manage transactions.

## Simulation

This transaction is responsible for simulating a calculation, but it does not save the transaction in our database.

POST: https://avataxbr.sandbox.avalarabrasil.com.br/v3/simulations

## Calculation

This transaction is responsible for simulating a calculation, and also saving the transaction in our database.

POST: https://avataxbr.sandbox.avalarabrasil.com.br/v3/calculations

## Transaction

This transaction is responsible for simulating a calculation, and also saving the transaction in our database.

POST: https://avataxbr.sandbox.avalarabrasil.com.br/v3/transactions

## Retrieve transactions

This transaction is responsible for retrieving a list of the transaction according to the message type.

GET: https://avataxbr.sandbox.avalarabrasil.com.br/v3/transactions/{messageType}

## Retrieve a single transaction

This transaction is responsible for retrieving a transaction according to a specific document code.

GET: https://avataxbr.sandbox.avalarabrasil.com.br/v3/transactions/{messageType}/{documentCode}

## Delete a transaction

This transaction is responsible for removing/deleting a transaction according to a specific document code.

DELETE: https://avataxbr.sandbox.avalarabrasil.com.br/v3/transactions/{messageType}/{documentCode}