Skip to content

We've built 200+ tools — open your toolbox, there's something in here you probably need.

GET/api/v1/kenya/vatBusiness & consumer tax

VAT (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=add

Response

Parameters

NameTypeRequiredDescription
amountnumberyesThe amount to add VAT to or remove VAT from
modeadd | removenoadd = net→gross, remove = gross→net
ratenumbernoOptional 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();