Image 1 of 4
Image 2 of 4
Image 3 of 4
Image 4 of 4
Image 1 of 4
Image 2 of 4
Image 3 of 4
Image 4 of 4

Avatax Plugin

Product information

By Apago Inc

AvaTax calculates accurate US sales tax and international VAT and can prepare and remit tax returns, file reports, manage VAT registrations and other tax documents.

Updates and support
Save 20%
€67.17
/ month
billed annually
Updates and support
€84.00
/ month
Support by
Support languages
en
Integration type
Paid
Category
Payment & Tax
Compatible with
^2.1.0
Latest version
1.1.3
Last published
Sep 18, 2024

AvaTax Vendure Plugin

Overview

A plugin that interfaces your Vendure store with Avalara’s AvaTax platform for automated US sales tax calculation based on geolocation, item taxability, new legislation, tax regulations, and more.

This is a paid plugin. For production use, please purchase a license at https://vendure.io/marketplace.

Installation

yarn add @vendure-hub/apagoinc-avatax-plugin

Add all other dependencies required to compile the plugin’s UI

yarn add -D @vendure/ui-devkit react @types/react

Usage

  1. Add the AvataxPlugin to your VendureConfig plugins array.
import { AvataxPlugin } from "@vendure-hub/apagoinc-avatax-plugin"

export const config: VendureConfig = {
    // ...
    plugins: [
        // ...
        AvataxPlugin.init({
            licenseKey: "your-license-key"
        })
    ]
}
  1. Use the Vendure CLI to generate a database migration by running npx vendure migrate

  2. Add the plugin’s UI extensions to the AdminUiPlugin options in your VendureConfig.

import { compileUiExtensions } from "@vendure/ui-devkit/compiler"

export const config: VendureConfig = {
    // ...
    plugins: [
        // ...
        AdminUiPlugin.init({
            //
            app: compileUiExtensions({
                outputPath: path.join(__dirname, "admin-ui"),
                extensions: [AvataxPlugin.ui]
            })
        })
    ]
}

Read more about the Admin Ui extension and compilation from the Vendure docs.

  1. The plugin’s UI extensions are built using React and JSX. For the Admin UI to compile, add the jsx property to the compilerOptions in tsconfig.json file.
{
    "compilerOptions": {
        "jsx": "react"
    }
}
  1. Start the server and navigate to Settings > Avatax. Here you can configure the plugin with your Avalara credentials.

  2. Click Test Connection to validate your credentials and test the connection to the AvaTax API, then Save Credentials to persist them.

Features

  1. Admin UI extension with widgets to configure Avalara credentials, plugin preferences, company profiles and validate addresses.
  2. A custom TaxLineCalculationStrategy that fetches tax rates from the AvaTax API.
  3. Automated AvaTax transaction commits when orders transtion to the PaymentSettled state.
  4. A custom permission definition for plugin configuration access control.
  5. A verifyAddress mutation to verify addresses through the AvaTax API

Custom Fields

The plugins adds custom fields to the following entities;

Customer

entityUseCode: Customer Avalara Entity Use Code

ProductVariant

taxCode: Product Avalara Tax Code

Order

avataxInvoiceMessages: Invoice messaging returned by the AvaTax engine stored as a JSON string. These messages can be queried and displayed appropriately on invoices. Read More

Reference

Vendure
Get started

Create your first commerce experience with Vendure in less than 2 minutes

Vendure is a registered trademark. Our trademark policy ensures that our brand and products are protected. Feel free to reach out if you have any questions about our trademarks.

Newsletter

Get the latest product news and announcements delivered directly to your inbox.

© Copyright 2022 - 2024, Vendure GmbH. All rights reserved.