Avalara Developer Network Developer blog

AvaTax Developer Blog Posts

Address Validation in REST v2

In addition to calculating tax, the AvaTax suite of products can also help you produce a robust user experience for your customers. If your customer provides a partial or mistyped address, the Address Validation API can help determine the right address based on the partial information your customer provided. For today’s blog post, I will walk you through the Address Validation functionality built into AvaTax REST v2. Validate a Partial Address We’ll begin by using the ResolveAddress endpoint to validate an incomplete address. Let’s say your salesperson was on the phone with a customer, and they took down all the...

CertCapture REST API Part II

blog preview image

Creating a Certificate Today I would like to demonstrate how with one POST call to the CertCapture REST API, you can do the following: Create a Document Send it for validation Associate an Exempt Reason Associate an Exposure Zone Create a Customer Associate that new Customer with the new Certificate The payload: You can access a text file containing the payload here. The Result: Certificate: Validation List: Customer: Validation Screen: The breakdown pages[0]= This is an attribute you can pass a base64 url encoded string to, to convert it into a PDF document. You can even pass multiple pages to...

AvaTax.NET client library available on NuGet

blog preview image

For those Avalara customers using Microsoft’s DotNet languages, Avalara has published an official AvaTax client library on NuGet, the official repository for open source code in the DotNet world! This client library is already configured with all the code and logic you need to get started incorporating tax calculation into your application, and it can greatly speed up your development cycle. For today’s article, I’ll walk you through the process of adding AvaTax to your DotNet project using this simple new library. Create a New Project To begin, let’s create a fresh new program. I happen to be partial to...

Avatax Connector App

blog preview image

Using The REST API To Build a Connector Avalara’s new REST API v2 now offers a wide variety of functionality for integrating ERP systems with AvaTax. In the new REST API, you can now add companies, estimate tax on the fly, validate addresses, and more! For today’s article, we will focus on building a web application to showcase how to use the new REST API to build a connector. Core Functionality I am writing today’s example using Microsoft’s C# and MVC40 libraries to demonstrate the following features of AvaTax Basic Authentication Address Validation Generate Tax on an Invoice I will be using...

CertCapture REST API Part I

Relationships and Filtering Today I wanted to discuss two pieces of the CertCapture v2 REST API that are important to any customers of CertCapture who wish to consume our API and critical to any developers who wish to build anything fancy with our available functionality. Managing Relationships and Saving Related Data The CertCapture API can save or attach related data whenever you do a POST or PUT request. The way the save is handled is based off what type of relationship occurs between the data. Associating Related Data If you wish to save or associate some related data via an...

Point-of-Sale Data API

One of the most common questions we get from our point-of-sale customers is about the need to operate in a disconnected environment, while maintaining the same level of accuracy of a connected environment. Many businesses can face periods of intermittent internet connectivity, preventing live calls to our tax engine. Some businesses wish to operate entirely disconnected. In either scenario, businesses require the means to calculate tax locally. Today, we’ll walk through a new API launching in the AvaTax 2.16.12 release - an API that generates a tax content file that can be consumed by a merchant’s point-of-sale (POS) application, supporting...

REST v2.16.12 Patch Notes

This article is about the December 2016 monthly update to the AvaTax REST v2 API. UPDATED 2016-12-07 - The team added the definition of “Mixed” sourcing to the client library to address California sourcing scenarios prior to launch. Launch has been rescheduled for Tuesday, December 13th. Environment URL Release Date Sandbox https://sandbox-rest.avatax.com 2016-12-01 Production https://rest.avatax.com 2016-12-13 POST /api/v2/transactions/create The sourcing field on TransactionLineModel had a mismatch between its documentation and its return value. In release 2.16.11, the field was documented as a string, but its value was being returned as an integer. Many libraries would still successfully parse this value...

Types of Transactions

AvaTax is a full service engine for calculating transactional taxes, including sales, use, VAT, and many other tax types. In order to properly calculate taxes in these different circumstances, AvaTax must also support a wide variety of transaction types. In today’s article, I will walk you through the differences between these transactions and describe how to map them to your business processes. Orders vs Invoices Our customers require both the ability to estimate tax for a transaction, and to record the actual tax for that transaction. Many customers use AvaTax as a way to predict taxes before taking action -...

Subscribe via RSS!