# South Africa

Incode verifies Data and Biometrics through a partner against the Department of Home Affairs.

# Standalone API

`POST` `/omni/process/government-validation?countryCode=ZAF`

## Request Body

```json
{
  "idNumber": "12345678901",
  "firstName": "Trevor",
  "paternalLastName": "Kings",
  "maternalLastName": "",
  "base64Image": {{selfie}}
}
```

## Response Body

```json
{
  "valid": true,
  "statusCode": 0,
  "governmentValidation": {
    "recognitionConfidence": {
      "value": "81.0",
      "status": "OK"
    },
    "validationStatus": {
      "value": "0",
      "status": "OK",
      "key": "ok"
    },
    "ocrValidation": [
      {
        "value": "true",
        "status": "OK",
        "key": "documentNumber"
      },
      {
        "value": "true",
        "status": "OK",
        "key": "firstName"
      },
      {
        "value": "true",
        "status": "OK",
        "key": "paternalLastName"
      }
    ],
    "ocrValidationOverall": {
      "value": "100.0",
      "status": "OK"
    },
    "overall": {
      "value": "81.0",
      "status": "OK"
    }
  }
}
```

<br />

# Orchestrated with Onboarding Session Data

## Response within Scores

```json
{
  "governmentValidation": {
    "recognitionConfidence": {
      "value": "86.6",
      "status": "OK"
    },
    "validationStatus": {
      "value": "0",
      "status": "OK",
      "key": "ok"
    },
    "ocrValidation": [
      {
        "value": "true",
        "status": "OK",
        "key": "issueDate"
      },
      {
        "value": "true",
        "status": "OK",
        "key": "firstName"
      },
      {
        "value": "true",
        "status": "OK",
        "key": "maternalLastName"
      },
      {
        "value": "true",
        "status": "OK",
        "key": "paternalLastName"
      }
    ],
    "ocrValidationOverall": {
      "value": "100.0",
      "status": "OK"
    },
    "overall": {
      "value": "86.6",
      "status": "OK"
    }
  }
}
```
