How we built it: Jurisdiction resolution for Stripe Tax

Our new jurisdiction resolution system (JRS) is a faster, less resource-intensive solution to the challenging problem of determining tax obligations in places with complicated, overlapping tax jurisdictions.

Erich Rentz
10 min readintermediate
--
View Original

Overview

The article discusses the development of Stripe's jurisdiction resolution system (JRS) for accurate tax calculations across the US, addressing the complexities of over 16,000 sales tax combinations. It details the offline and online components of the JRS, the challenges of using postal addresses for tax determination, and the innovative use of geographic information systems (GIS) to maintain accuracy and speed.

What You'll Learn

1

How to implement a jurisdiction resolution system for tax calculations

2

Why geographic information systems (GIS) are essential for accurate tax jurisdiction mapping

3

How to optimize point-in-polygon algorithms for faster address matching

Prerequisites & Requirements

  • Understanding of geospatial data and tax regulations
  • Familiarity with geographic information systems (GIS)(optional)

Key Questions Answered

How does Stripe's jurisdiction resolution system (JRS) work?
Stripe's JRS quickly identifies the correct taxing jurisdictions for transactions in the US by using a combination of offline defined regions called Stripe places of taxation (SPOTs) and online matching of customer addresses to these SPOTs. This system operates in milliseconds to ensure accurate tax calculations.
Why can't postal addresses be used alone for tax jurisdiction determination?
Postal addresses are insufficient for tax jurisdiction determination because they do not align with taxing boundaries. For example, two houses in the same ZIP code may belong to different counties with different tax rates, necessitating a more precise method of location identification.
What challenges are associated with publicly available geospatial data?
Publicly available geospatial data often lacks accuracy and consistency, leading to potential misassignments of tax jurisdictions. Variations in quality across state and local authorities can result in significant discrepancies, impacting tax calculations.
How does the JRS maintain accuracy over time with changing tax jurisdictions?
The JRS maintains accuracy by continuously tracking changes in tax jurisdictions and updating the geographic information system (GIS) accordingly. This ensures that both current and historical transactions can be accurately taxed based on the latest jurisdictional data.

Key Statistics & Figures

Number of supported countries for Stripe Tax
100+
Stripe Tax operates in over 100 countries, making it a versatile solution for global tax compliance.
Number of sales tax combinations in the US
16,000
There are over 16,000 different combinations of sales tax rates and rules applicable to internet purchases in the US.
95th percentile latency time for SPOT matching
Under 10 milliseconds
Most states achieve SPOT matching within this latency, ensuring quick tax calculations during transactions.

Technologies & Tools

Backend
Geographic Information System (gis)
Used to clean, centralize, and standardize jurisdiction data for accurate tax calculations.

Key Actionable Insights

1
Implementing a jurisdiction resolution system can significantly enhance tax calculation accuracy for businesses operating in multiple regions.
As tax regulations frequently change, having a robust system like JRS ensures compliance and reduces the risk of costly errors in tax reporting.
2
Utilizing geographic information systems (GIS) can streamline the process of managing complex jurisdictional boundaries.
By centralizing and standardizing jurisdiction data, businesses can improve their operational efficiency and reduce the time spent on manual updates.
3
Optimizing algorithms for point-in-polygon calculations can lead to faster transaction processing times.
This is crucial for maintaining a seamless customer experience during online transactions, especially in high-volume environments.

Common Pitfalls

1
Relying solely on postal addresses for tax jurisdiction determination can lead to significant errors.
This happens because postal addresses do not align with tax boundaries, resulting in incorrect tax calculations. Businesses should implement more precise geolocation methods to avoid these pitfalls.

Related Concepts

Geospatial Data Management
Tax Compliance Strategies
Algorithm Optimization Techniques