Avalara Developer Network Developer

Posts

Lifecycle of a Transaction

The centerpiece of Avalara’s world-leading AvaTax service is the ‘Transaction’. A Transaction can reflect one of many different types of business documents, and it’s worth discussing how a transaction can change over time. Let’s begin by understanding how a “Sales” transaction is created, and how it can change over time. The Transaction State Diagram In AvaTax, a sales transaction is an exchange that occurs between two companies. Although other types of transactions exist that can be within a single company - for example, inventory transfer transactions - in today’s use case we will only examine transactions that occur between two...

Declaring Nexus in REST v2

One of the most frequent questions I am asked is “Where do I need to collect taxes?” The challenge of determining which jurisdictions you fall under is a complex one. In the United States, the rule that determines when your company has to obey a particular jurisdiction’s tax law is called ‘Nexus’, so AvaTax uses this word to refer to the overall concept of selecting jurisdictions where you are signed up to collect and remit taxes. Keep in mind, these rules have significant legal repercussions, and you should strongly consider getting legal or tax advice to ensure that your Nexus...

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?

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 the seller’s business decision to support a DDP or DAP service to their customers. Who pays the taxes when selling cross-border? The LandedCost calculator currently supports two situations: DAP - This acronym stands for "Delivered at Place" and indicates the...

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

  • Page 1 of 8