12,000+Tax jurisdictions
190+Countries supported
54B+Transactions per year
200,000+Customers
Integrate real-time tax calculation, e-invoicing, and end-to-end compliance into your product with Avalara’s REST APIs and SDKs.
Configure your IDE with MCP servers
Discover Avalara APIs and
capabilities
Turn tax compliance use case into code
Choose how you want to connect — call the REST APIs directly or get started fast.
npm install avalaraimport { AvalaraClient } from "avalara";
const client = new AvalaraClient({
apiKey: process.env.AVALARA_API_KEY!,
authorization: process.env.AVALARA_AUTH!,
});
// Calculate sales tax on an order
const tax = await client.avatax.transactions.createTransaction({
body: {
type: "SalesInvoice",
companyCode: "DEFAULT",
customerCode: "ABC",
addresses: { singleLocation: { line1: "2000 Main St", city: "Irvine", region: "CA", country: "US", postalCode: "92614" } },
lines: [{ quantity: 1, amount: 100, itemCode: "Y0001" }],
commit: true,
},
});
console.log(tax.totalTax);Avalara’s developer platform brings end-to-end tax compliance together in one suite of REST APIs — calculation, e-invoicing, exemption certificates, information returns, and more. Explore the capabilities below, then dive into any API from the reference.
Spin up a free Avalara sandbox and make your first API call today.