Verify — KRA PIN

Extract a KRA PIN certificate and (optionally) cross-check the PIN against KRA records.

Endpoint

POSThttps://gateway.startappz.co.ke/api/v1/sandbox/verify-kra-pin

Swap sandbox for live once you have production credentials.

Authentication

Send your credentials as headers:

HeaderValue
X-API-KeyYour public key
X-API-SecretYour secret (shown once at issue time)

Request parameters

ParameterTypeRequiredDescription
file File (multipart) required Image / PDF of the KRA PIN certificate.

Response parameters

All responses follow the standard envelope: { code, message, data }.

FieldTypeDescription
codeStringInternal status code (e.g. 200.001).
messageStringHuman-readable status / error description.
dataObjectEndpoint-specific payload (fields below).
data.extracted.pin String KRA PIN (`A123456789Z` format).
data.extracted.taxpayer_name String Registered taxpayer name.
data.extracted.station String Tax station.
data.kra_validation.valid Boolean True when the PIN exists in KRA records.

Sandbox masking

By default, sandbox responses mask PII (names, IDs, dates, phone numbers). You can grant unmasked consent per key from your dashboard.