APIstax Java client is a complete Java client implementation for the APIstax platform.
Add the following dependency to your build file:
<dependency>
<groupId>io.apistax</groupId>
<artifactId>apistax-client</artifactId>
<version>${latest.version}</version>
</dependency>
implementation("io.apistax:apistax-client:$latestVersion")
Get your APIstax API key here.
Initialise an APIstaxClient
and start using it.
public class VatService {
private APIstaxClient client;
public VatService(String apiKey) {
client = new APIstaxClient.Builder()
.apiKey(apiKey)
.build();
}
public boolean isValid(String vatId) {
VatVerificationResult result = client.verifyVatId(vatId);
return result.getValid() == true;
}
}
The further information and documentation about the APIs can be found on APIstax documentation page.