Java SDK
Official Taxu Java library
Installation
Maven
<dependency>
<groupId>io.taxu</groupId>
<artifactId>taxu-java</artifactId>
<version>1.0.0</version>
</dependency>Gradle
implementation 'io.taxu:taxu-java:1.0.0'Quick Start
import io.taxu.TaxuClient;
import io.taxu.models.*;
public class TaxuExample {
public static void main(String[] args) {
// Initialize client
TaxuClient client = new TaxuClient("your_api_key_here");
// Upload document
client.documents().upload(
new File("w2.pdf"),
DocumentType.W2
);
// Calculate refund
client.tax().calculateRefund(
new RefundRequest()
.income(75000)
.filingStatus(FilingStatus.SINGLE)
.state("CA")
);
}
}Features
Type Safe
Full type safety with generics
Builder Pattern
Fluent API design
Spring Boot
First-class Spring integration
Maven Central
Available on Maven Central
API Reference
Document Upload
client.documents().upload(
new File("document.pdf"),
DocumentType.W2
);Tax Calculation
RefundResponse response = client.tax().calculateRefund(
new RefundRequest()
.income(75000)
.filingStatus(FilingStatus.SINGLE)
);