Skip to navigation

Go SDK

Official Go SDK for the Ziptax API
View as Markdown
Available onAll plans

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

import (
"context"
"fmt"
"log"
"os"
"time"
"github.com/ziptax/ziptax-go"
)
3

Configure the client

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

Get sales tax by address

ctx := context.Background()
response, err := client.GetSalesTaxByAddress(
ctx,
"200 Spectrum Center Drive, Irvine, CA 92618",
)
if err != nil {
log.Fatal(err)
}

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.