> This page is for Documentation, version Integration guides (default).
> For other versions, use one of these documentation indexes:
> - Integration guides (default): https://avalara.ferndocs.com/docs/integration-guides/llms.txt
> - Refactor guides: https://avalara.ferndocs.com/docs/refactor-guides/llms.txt
> - Get certified: https://avalara.ferndocs.com/docs/get-certified/llms.txt
> - Agent to Agent (A2A): https://avalara.ferndocs.com/docs/agent-to-agent-a2a/llms.txt
> - AI use cases: https://avalara.ferndocs.com/docs/ai-use-cases/llms.txt
> - API versioning: https://avalara.ferndocs.com/docs/api-versioning/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://avalara.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://avalara.ferndocs.com/_mcp/server.

# Design the transaction workflow

Getting a tax calculation is the main reason why developers use *AvaTax Brazil.* It does not matter if you are just looking to obtain a tax rate for a purchase or sale budget, or if you are looking to effect a transaction and save it in our database. At the moment you call our calculation engine, we will return the transaction and the taxes involved in it.

In general, the answer is to call the tax when you want to calculate taxes naturally.

[Previous](https://developer.avalara.com/for-review-only/en/leila-paul/services-calculation-en/design_experience)

[Next](https://developer.avalara.com/for-review-only/en/leila-paul/services-calculation-en/transaction_workflow/erp)

> **Note**
>
> Part of the **Services Calculation** integration guide. [Open the full "Design the transaction workflow" milestone on Avalara](https://developer.avalara.com/services-calculation-en/transaction_workflow/) to see every page in this section.