Nilinde
Nilinde Hub API

KRA PIN by ID number (KRA)

POST
https://restapi.nilinde.com
/v1/verifications/tax.kra-pin
Bearer

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.

KRA PIN by ID number (KRA) › Headers

Idempotency-Key
​string · maxLength: 255

Makes 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
​string · pattern: ^\d{6,10}$ · required

National ID number of the taxpayer.

Example: 12345678

KRA PIN by ID number (KRA) › Responses

Verification completed; see result.

One verification. Returned by every verification API, by `GET /v1/verifications/{id}`, and in webhooks.
id
​string · required

Unique id; use it to fetch the verification again.

api
​string · required

The verification API that was called, e.g. identity.national-id.

status
​string · enum · required

COMPLETED includes "not found" answers; FAILED means the source failed and the charge was refunded.

Enum values:
PENDING
COMPLETED
FAILED
environment
​string · enum · required

TEST for test keys (sandbox data), LIVE for live keys.

Enum values:
LIVE
TEST
​object | null · required

The answer, specific to each API (see its examples). Always has found: false when the source holds no record.

error
​object | null · required

Set when status is FAILED.

cost
​string · required

Amount charged in KES, as a decimal string. "0" for test keys and failed verifications.

createdAt
​string · date-time · required
latencyMs
​integer | null

Time the source took to answer, in milliseconds.

completedAt
​string | null · date-time