KRA PIN lookups.
KRA PIN by ID number (KRA)
Returns the KRA PIN registered to a Kenyan national ID number and the taxpayer name on it.
Price: set by your bundle; one charge per call. "Not found" answers (result.found: false) are charged. Source failures return 502 and are refunded.
Try it: press Test on the request panel, choose ApiKey under Authentication and paste your test key (kept for this browser session). Use Example loads a scenario for each outcome. Test keys return sandbox sample data, free.
Headers
Idempotency-KeyMakes retries safe: a repeat with the same key and body returns the original verification without charging again. Up to 255 characters.
KRA PIN by ID number (KRA) › Request Body
idNumber^\d{6,10}$ · requiredNational ID number of the taxpayer.
KRA PIN by ID number (KRA) › Responses
Verification completed; see result.
idUnique id; use it to fetch the verification again.
apiThe verification API that was called, e.g. identity.national-id.
statusCOMPLETED includes "not found" answers; FAILED means the source failed and the charge was refunded.
environmentTEST for test keys (sandbox data), LIVE for live keys.
The answer, specific to each API (see its examples). Always has found: false when the source holds no record.
errorSet when status is FAILED.
costAmount charged in KES, as a decimal string. "0" for test keys and failed verifications.
createdAtlatencyMsTime the source took to answer, in milliseconds.
completedAt