KRA PIN by ID
Look up a KRA PIN using a taxpayer national ID via POST /api/v1/kra-pin-by-id. HTTP 200 and 404 are billable.
Request
POST/api/v1/kra-pin-by-id
{{baseUrl}}/api/v1/kra-pin-by-idHeader
Body Parameters
Sample request body
All verification APIs require consent: true in the JSON body.
Sample dataSample request body
{
"taxpayer_id": "sample-value",
"taxpayer_type": "sample-value",
"consent": true
}Response
200 OKSample dataExample response
{
"success": true,
"response_code": 200,
"message": "KRA PIN by ID verification successful",
"data": {
"taxpayer_id": "1028845317",
"taxpayer_pin": "A100284531Z",
"taxpayer_name": "James Kamau",
"taxpayer_type": "Individual",
"status": "Active"
},
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Response Fields
Error codes
Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.
Set {{baseUrl}} to https://api.peleza.com (production) or https://sandbox.peleza.com (sandbox). Authenticated calls need a Bearer token from POST /api/v1/oauth/token.
