Skip to content
On this page

Get ID Validation Requests Details.

Endpoint for getting details of a specific ID Validation request by unique id.

Endpoints

EnvironmentURL
Sandboxhttps://api-test.streamline.laboremus.ug/idv/api/validations/details/{id}?v=2.0
Productionhttps://api.streamline.laboremus.ug/idv/api/validations/details/{id}?v=2.0

Request

Request Type : GET

Authorization

There are two ways to be authorized when making this request.

js
const token = 'eyJhbGciOiJIUzI1NiIsInR5.eyJzd...ssw5c'
axios.get(API_ENDPOINT, 
  headers: {
    Authorization: `Bearer ${token}`
  }
)
const token = 'eyJhbGciOiJIUzI1NiIsInR5.eyJzd...ssw5c'
axios.get(API_ENDPOINT, 
  headers: {
    Authorization: `Bearer ${token}`
  }
)
js
import axios from 'axios'
    import oauth from 'axios-oauth-client'
    
    const getClientCredentials = oauth.clientCredentials(
    axios.create(),
    'https://oauth.com/2.0/token',
    'CLIENT_ID',
    'CLIENT_SECRET'
    )

    const auth = await getClientCredentials('OPTIONAL_SCOPES')
    // => { "access_token": "...", "expires_in": 900, ... }

    axios.get(API_ENDPOINT, 
      headers: {
        Authorization: `Bearer ${auth.access_token}`
      }
    )
import axios from 'axios'
    import oauth from 'axios-oauth-client'
    
    const getClientCredentials = oauth.clientCredentials(
    axios.create(),
    'https://oauth.com/2.0/token',
    'CLIENT_ID',
    'CLIENT_SECRET'
    )

    const auth = await getClientCredentials('OPTIONAL_SCOPES')
    // => { "access_token": "...", "expires_in": 900, ... }

    axios.get(API_ENDPOINT, 
      headers: {
        Authorization: `Bearer ${auth.access_token}`
      }
    )

INFO

Always add your Subscription key to the request.

js
axios.get(API_ENDPOINT, 
  headers: {
    'Ocp-Apim-Subscription-Key': 'd484a1f0d34f43019'
  }
)
axios.get(API_ENDPOINT, 
  headers: {
    'Ocp-Apim-Subscription-Key': 'd484a1f0d34f43019'
  }
)
js
const res = await axios.get(API_ENDPOINT, { 
  params: { 
    Ocp-Apim-Subscription-Key: 'd484a1f0d34f43019' 
  } 
});
const res = await axios.get(API_ENDPOINT, { 
  params: { 
    Ocp-Apim-Subscription-Key: 'd484a1f0d34f43019' 
  } 
});

Path Parameters

NameTypeRequiredDescription
idstring(uuid)yesThe Unique ID of the id validation request

Query Parameters

NameTypeRequiredDescription
api-versionstringyesThe API Version
vstringnoThe API Version

Header Parameters

NameTypeRequiredDescription
x-versionstringnoThe API Version
Bearerstring(JwtToken)noThe Token required for authorization

Response

Response Values

NameTypeDescription
idstring (uuid)The unique id for the request
initiatorstring or nullThe names for the request initiator
externalReferencestring or nullThe external reference id for the request
receivedAtstring or null (date-time)Date the request was created
submittedAtstring or null (date-time)Date the request was submitted
requestStatusstring (Enum: Pending, Completed, Failed)The stage of processing at which the request is
idNumberstring or nullID card number on the card that was validated
idValuestring or nullIdentification Number on the card that was validated
expiryDatestring or nullExpiry Date of the document that was validated
issueDatestring or nullIssue Date of the document that was validated
dateOfBirthstring(date)Date of birth on the card that was validated
surnamestring or nullSurname on the card that was validated
givenNamesstring or nullGiven names on the card that was validated
nationalitystring or nullNationality on the document that was validated
genderstringGender on the document that was validated
idTypeSubmittedstring or nullID Type that was submitted when creating validation request
idTypeFoundstring or nullID Type that was found on the card that was validated
additionalInformationstringContains detailed data that is specific to the validated document
validationStatusstring or nullThe validation status of the validated document

Example Response Body

Content type

application/json

json
{
	"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
	"initiator": "string",
	"externalReference": "string",
	"receivedAt": "2019-08-24T14:15:22Z",
	"submittedAt": "2019-08-24T14:15:22Z",
	"requestStatus": "Pending",
	"idNumber": "string",
	"idValue": "string",
	"expiryDate": "string",
	"issueDate": "string",
	"dateOfBirth": "string",
	"surname": "string",
	"givenNames": "string",
	"nationality": "string",
	"gender": "string",
	"idTypeSubmitted": "string",
	"idTypeFound": "string",
	"additionalInformation": "string",
  "validationStatus": "declined",
}
{
	"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
	"initiator": "string",
	"externalReference": "string",
	"receivedAt": "2019-08-24T14:15:22Z",
	"submittedAt": "2019-08-24T14:15:22Z",
	"requestStatus": "Pending",
	"idNumber": "string",
	"idValue": "string",
	"expiryDate": "string",
	"issueDate": "string",
	"dateOfBirth": "string",
	"surname": "string",
	"givenNames": "string",
	"nationality": "string",
	"gender": "string",
	"idTypeSubmitted": "string",
	"idTypeFound": "string",
	"additionalInformation": "string",
  "validationStatus": "declined",
}

INFO

additionalInformation field contains detailed data related to each validation document type Nationalid, Passport ,DrivingLicence ,RefugeeId

National ID

NameTypeDescription
placeOfBirthstring or nullThe place of birth as shown on national id
parishstring or nullThe parish as shown on national id
districtstring or nullThe district as shown on national id
villagestring or nullThe village as shown on national id
countystring or nullThe county as shown on national id
concernsarray of strings or nullThis shows areas of concern after validating the national id

Passport

NameTypeDescription
placeOfBirthstring or nullThe place of birth as shown on the passport
documentClassCodestring or nullThe document class code as shown on the passport
countrystring or nullThe country as shown on the passport
issuingStateNamestring or nullThe issuing state name as shown on the passport
concernsarray of strings or nullThis shows areas of concern after validating the passport

Driving Licence

NameTypeDescription
countrystring or nullThe country as shown on the driving licence
issuingStateNamestring or nullThe state name as shown on the driving licence
dlClassstring or nullThe class as shown on the driving licence
dlRestrictionCodestring or nullThe restriction code as shown on the driving licence
placeOfIssuestring or nullThe place of issue as shown on the driving licence
numberOfDuplicatesstring or nullThe number of duplicates as shown on the driving licence
bookletNumberstring or nullThe booklet as shown on the driving licence
firstIssueDatestring or nullThe first issue date as shown on the driving licence
issueCountrystring or nullThe country issuing the document as shown on the driving licence
documentTypestring or nullThe document type that was discovered
concernsarray of strings or nullThis shows areas of concern after validating the driving licence

Refugee ID

NameTypeDescription
countrystring or nullThe country of the refugee
issuingStateNamestring or nullThe state issuing the refugee identification card
issueCountrystring or nullThe country issuing the refugee identification card
concernsarray of strings or nullThis shows areas of concern after validating the refugee identification card
json
{
  "placeOfBirth": "string",
  "parish": "string",
  "district": "string",
  "village": "string",
  "subCounty": "string",
  "county": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string"
    }
  ]
}
{
  "placeOfBirth": "string",
  "parish": "string",
  "district": "string",
  "village": "string",
  "subCounty": "string",
  "county": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string"
    }
  ]
}
json
{
  "placeOfBirth": "string",
  "documentClassCode": "string",
  "country": "string",
  "authority": "string",
  "issuingStateName": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string"
    }
  ]
}
{
  "placeOfBirth": "string",
  "documentClassCode": "string",
  "country": "string",
  "authority": "string",
  "issuingStateName": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string"
    }
  ]
}
json
{
  "country": "string",
  "issuingStateName": "string",
  "dlClass": "string",
  "dlRestrictionCode": "string",
  "placeOfIssue": "string",
  "numberOfDuplicates": "string",
  "bookletNumber": "string",
  "firstIssueDate": "string",
  "issueCountry": "string",
  "documentType": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string",
    }
	]  
}
{
  "country": "string",
  "issuingStateName": "string",
  "dlClass": "string",
  "dlRestrictionCode": "string",
  "placeOfIssue": "string",
  "numberOfDuplicates": "string",
  "bookletNumber": "string",
  "firstIssueDate": "string",
  "issueCountry": "string",
  "documentType": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string",
    }
	]  
}
json
{
  "country": "string",
  "issuingStateName": "string",
  "issueCountry": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string"
    }
  ]
}
{
  "country": "string",
  "issuingStateName": "string",
  "issueCountry": "string",
  "concerns": [
    {
      "message": "string",
      "service": "string",
      "status": "string"
    }
  ]
}

Error Response

400 The request data is invalid

application/json

NameTypeDescription
typestring or nullType of error response
titlestring or nullThe title of the error response
statusinteger(int32)The status of the error response
traceIdstring or nullThe traceId of the error request producing the error
errorsobjectObject defining the errors

errors

NameTypeDescription
propertyArray of stringsThe definition of the errors

401 Not authorized to access the endpoint

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

403 Refuse to authorize access to the endpoint

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

404 Request does not exist

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

500 The server encountered an unexpected error

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

Tech served right