Avalara Developer Network Developer blog

AvaTax Developer Blog Posts

From REST v1 to REST v2

As Easy as v1, v2… Well, not exactly, but it’s definitely easy to switch from our REST v1 to our REST v2 and the benefits are huge. We’ve built a wide range of functionality into our new REST v2 API and all of that is in addition to everything our REST v1 had to offer. To highlight some of the changes let’s first run through the various methods of our v1 and show exactly how they’ve changed in the upgraded v2. Then we can dive into some of those additions and look at how they’re intended to help users file...

REST v2.17.1 Patch Notes

This article is about the January 2017 monthly update to the AvaTax REST v2 API. UPDATE 2017-01-18 - Due to testing on the Recordset Count issue for pagination described below, we have elected to remove the $include=count option and restore the previous recordset count behavior. All queries will receive correct recordset counts except for queries on the /api/v2/transactions endpoint. We have delayed the correct implementation of recordset count for the transactions table to the 2.17.2 release. As a result of this change, the release to Sandbox has been rescheduled for Jan 24th. Environment URL Release Date Sandbox https://sandbox-rest.avatax.com 2017-01-24 Production...

Who Pays for Landed Cost?

Update March 22, 2018 - AvaTax REST has a new syntax for representing DDP. This post is retained for historical purposes and the information around DDP and DAP remains relevant. You may read about the new LandedCost integration at https://developer.avalara.com/blog/2018/03/13/calculate-customs-duties-in-rest/. With the release of the LandedCost calculator functionality, AvaTax now provides features to help you sell across country borders. LandedCost will calculate the customs duty for your cross-border shipments. However, using the calculator requires telling the API which party will be responsible for paying the customs duty & import taxes. Specific to B2C sales, calculating the landed cost depends on...

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...

Subscribe via RSS!