Go SDK

Official Go SDK for the Ziptax API

The Go SDK provides a fast, type-safe client tailored for high-performance backend services. It includes well-structured request/response models, automatic handling of API keys, convenient helpers for tax calculation and jurisdiction lookup, and native support for context.Context. It’s ideal for microservices, concurrent processing pipelines, and any environment where efficiency and reliability are primary concerns.

The Go SDK is currently offered as a Beta product. Please send your comments and suggestions to support@zip.tax.

Project resources

Implementation example

1

Install

$go get github.com/ziptax/ziptax-go
2

Import

1import (
2 "context"
3 "fmt"
4 "log"
5 "os"
6 "time"
7
8 "github.com/ziptax/ziptax-go"
9)
3

Configure the client

1client, err := ziptax.NewClient(
2 "your-api-key",
3 ziptax.WithTimeout(60*time.Second),
4 ziptax.WithMaxRetries(5),
5 ziptax.WithRetryWait(2*time.Second, 60*time.Second),
6)
4

Get sales tax by address

1ctx := context.Background()
2response, err := client.GetSalesTaxByAddress(
3 ctx,
4 "200 Spectrum Center Drive, Irvine, CA 92618",
5)
6if err != nil {
7 log.Fatal(err)
8}

Full documentation

Full reference documentation, including all request options, response types, and helper functions, is available in the GitHub repository and the Go Package documentation.