Java SDK
The official Taxu Java library provides enterprise-grade access to the Taxu API with Maven/Gradle support and full thread safety.
What is the Taxu Java SDK?
The Taxu Java SDK is an enterprise-grade library built for Java applications requiring robust tax compliance and financial operations. With full support for Maven and Gradle, it integrates seamlessly into Spring Boot, Jakarta EE, and legacy Java enterprise applications.
Designed for Fortune 500 companies and large-scale financial systems, the Java SDK provides thread-safe operations, comprehensive error handling, and enterprise patterns that Java developers expect. It handles tax calculations, IRS e-filing, and compliance monitoring with the reliability and performance enterprise Java applications demand.
Ideal For:
- • Spring Boot applications
- • Jakarta EE enterprise systems
- • Banking and financial platforms
- • Legacy Java application modernization
Enterprise Features:
- • Thread-safe concurrent operations
- • Builder pattern for configurations
- • Maven Central repository
- • Comprehensive error handling
Installation
Add to your Maven pom.xml:
<dependency>
<groupId>io.taxu</groupId>
<artifactId>taxu-java</artifactId>
<version>2.3.0</version>
</dependency>Or Gradle:
implementation 'io.taxu:taxu-java:2.3.0'Authentication
import io.taxu.TaxuClient;
TaxuClient client = new TaxuClient("your_api_key_here");Basic Usage
Filing filing = client.tax().file1099NEC(
File1099NECParams.builder()
.taxYear(2024)
.payer(Payer.builder()
.name("Acme Corp")
.ein("12-3456789")
.address("123 Business St")
.build())
.recipient(Recipient.builder()
.name("John Contractor")
.ssn("123-45-6789")
.address("456 Worker Ave")
.build())
.nonEmployeeCompensation(15000)
.build()
);
System.out.println(filing.getId()); // fil_1234567890More Examples
Calculate Tax
TaxCalculation result = client.tax().calculate(
CalculateParams.builder()
.income(85000)
.deductions(12000)
.filingStatus("single")
.state("CA")
.build()
);
System.out.println("Federal tax: $" + result.getFederalTax());
System.out.println("State tax: $" + result.getStateTax());