Peleza β€” Trust built on data
πŸ‡ΏπŸ‡¦ South Africa
On this page

National ID

Verify a South African national ID number and return holder details.

Test data

Sandbox test data

Use these values against the sandbox host. Click a value to copy it.

Sample RSA ID (fictional)

Request

POST/api/v1/id/za
{{baseUrl}}/api/v1/id/za
HeaderTypeDescription
AuthorizationstringBearer YOUR_ACCESS_TOKEN from the OAuth client-credentials flow
Content-Typestringapplication/json

Body Parameters

ParameterTypeDescriptionRequired
id_numberstring13-digit RSA ID numberrequired
consentbooleanMust be true β€” confirms data-subject consent to perform this verificationrequired
customer_numberstringOptional reference for your own tracking (max 255 characters)optional

Sample request & response

Sample request body for Sample request & response:

Sample dataSample request body
{
  "id_number": "9001015800085",
  "consent": true
}

Sample response for Sample request & response:

200 OKSample dataSample response
{
  "success": true,
  "response_code": 200,
  "message": "South Africa ID details fetched successfully",
  "country": "za",
  "data": {
    "id_number": "9001015800085",
    "first_name": "Thabo",
    "last_name": "Ndlovu",
    "middle_name": null,
    "name": "Thabo Ndlovu",
    "gender": "Male",
    "dob": "1990-01-01",
    "marital_status": "Single",
    "living_status": "Alive",
    "phone_number": "+27821234567",
    "address": "123 Sample Street, Johannesburg",
    "issued_date": "2010-06-15",
    "photo_url": null,
    "valid": true
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Response Fields

FieldTypeDescription
successbooleanWhether the request succeeded
response_codenumberApplication response code (typically mirrors HTTP)
messagestringHuman-readable status message
dataobjectPayload for the verified resource
request_idstringUUID for support and audit trails
countrystringCountry code β€” always "za" for this route
data.id_numberstringNational ID number
data.first_namestringGiven name
data.last_namestringSurname
data.middle_namestringMiddle name when available
data.namestringFull display name
data.genderstringGender
data.dobstringDate of birth (YYYY-MM-DD)
data.marital_statusstringMarital status when available
data.living_statusstringLiving status when available
data.phone_numberstringPhone number when available
data.addressstringAddress when available
data.issued_datestringIssue date when available
data.photo_urlstringPhoto URL when available
data.validbooleanWhether the ID is valid

Error codes

Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.

CodeWhenBilled?
200South Africa ID details returned successfullyYes
400Validation β€” missing/invalid id_number, consent (must be true), or South Africa-specific fieldsNo
401Missing or invalid Bearer tokenNo
402Insufficient wallet balance or credit limitNo
403No active wallet or billing profile (or service not enabled)No
404South Africa ID not found β€” or unsupported countryYes for ID-not-found; No for unsupported country
408Upstream timeout / service errorNo
429Rate limitedNo
502Upstream bad or unreadable responseNo
503Upstream connection unavailableNo

400 β€” validation

400Sample data400 β€” validation
{
  "success": false,
  "response_code": 400,
  "message": "The consent field is required",
  "country": "za",
  "errors": {
    "consent": "The consent field is required"
  },
  "data": null,
  "request_id": "550e8400-e29b-41d4-a716-446655440010"
}

404 β€” ID not found

404Sample data404 β€” ID not found
{
  "success": false,
  "response_code": 404,
  "message": "South Africa ID not found",
  "description": "There is no information for requested search parameters",
  "country": "za",
  "data": null,
  "request_id": "550e8400-e29b-41d4-a716-446655440013"
}

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.