cURL
curl --request POST \ --url https://api.ai2fin.com/api/tax/calculate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 123, "gstIncluded": true, "gstRate": 123, "countryCode": "<string>", "taxType": "<string>" }'
{ "success": true, "data": { "amount": 123, "baseAmount": 123, "gstAmount": 123, "gstIncluded": true, "gstRate": 123, "input": { "amount": 123, "gstIncluded": true, "gstRate": 123, "countryCode": "<string>", "taxType": "<string>" } } }
Calculate GST/VAT amounts for tax-inclusive or tax-exclusive inputs
JWT token obtained from /api/auth/login endpoint
Optional rate override
Fallback to lookup rate when provided
Tax type (GST, VAT, SALES_TAX, etc.)
Calculation complete
Show child attributes