GET
/api/v1/kenya/vatBusiness & consumer taxVAT (add or remove)
Add VAT onto a net amount, or back it out of a VAT-inclusive amount, at the standard rate (or a rate you pass). Returns net, VAT and gross.
Try it live
Request
GET https://www.leadafrik.com/api/v1/kenya/vat?amount=10000&mode=addResponse
…Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount | number | yes | The amount to add VAT to or remove VAT from |
mode | add | remove | no | add = net→gross, remove = gross→net |
rate | number | no | Optional VAT rate as a fraction, e.g. 0.16. Defaults to the standard rate. |
Call it from code
curl
curl "https://www.leadafrik.com/api/v1/kenya/vat?amount=10000&mode=add"JavaScript
const res = await fetch("https://www.leadafrik.com/api/v1/kenya/vat?amount=10000&mode=add");
const { ok, data, meta } = await res.json();