Quickstart
Make your first Creditax.ai API call in under 5 minutes.
Get API key
Install SDK
3
Make first request4
View response02
Install SDK
Install the official Creditax.ai Node.js package using npm or yarn.
import { CreditaxClient } from '@creditax/node';
const client = new CreditaxClient({
apiKey: process.env.CREDITAX_API_KEY,
environment: 'sandbox' // or 'production'
});
// Make your first request
const response = await client.tax.calculate({
income: 12000000,
taxYear: 2024,
state: 'Lagos',
includeReliefs: true,
entityType: 'individual'
});
console.log('Tax calculated:', response.data);