Skip to content
On this page

Get List Of Person Profiles.

End point for retrieving a list of person profile

Endpoints

EnvironmentAPI Endpoint
Sandboxhttps://onprem-test.streamline.laboremus.ug/api/crm/v1/customer/profiles/person

Request

Request Type : GET

Authorization

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

js
const token = 'eyJhbGciOiJIUzI1NiIsInR5.eyJzd...ssw5c'
axios.post(API_ENDPOINT, 
  headers: {
    Authorization: `Bearer ${token}`
  }
)
const token = 'eyJhbGciOiJIUzI1NiIsInR5.eyJzd...ssw5c'
axios.post(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')

    axios.post(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')

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

INFO

Always add your Subscription key to the request.

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

Query Parameters

NameTypeRequiredDescription
vstringyesThe version of the API
fullNamestringnoThe full name of the person.
personIdstring (uuid)noA unique identifier for the person profile.
phoneNumberstringnoThe phone number associated with the person.
applicationIdstring (uuid)noA unique identifier for the application.
limitintnoThe limit assigned to the person profile.
skipintnoThe number of records to skip in pagination.
fromstring (ISO 8601)noThe start date/time for the application range.
tostring (ISO 8601)noThe end date/time for the application range.

Response

Content type

application/json

Response Body

[]

NameTypeDescription
idstring (uuid)A Guid / uuid / A set of unique alphanumerical characters assigned to this verification request.
createdAtstring (ISO 8601)The date and time when the object was created.
lastUpdatedstring (ISO 8601)The date and time when the object was last updated.
applicationIdstring (uuid)A unique identifier for the application associated with the verification request.
initiatorIdstring (uuid)A unique identifier for the initiator of the request.
initiatorNamestringThe name of the initiator.
initiatorEmailstringThe email address of the initiator.
tenantIdstring (uuid)A unique identifier for the tenant associated with the request.
tenantNamestringThe name of the tenant.
aggregatorIdstring (uuid)A unique identifier for the aggregator associated with the request.
aggregatorNamestringThe name of the aggregator.
fullNamestringThe full name of the individual associated with the request.
phoneNumberstringThe phone number of the individual.
emailstringThe email address of the individual.
documentNumberstringThe document number associated with the individual.
personIdstringA unique identifier for the person.
countryOfResidencestringThe country of residence of the individual.
isPEPbooleanIndicates if the individual is a Politically Exposed Person (PEP).
pepTypestringThe type of PEP, if applicable.
bioDataobjectPersonal identification information about the individual, such as name, gender, and date of birth.
employmentsobjectLists the employment records of the individual, detailing job type, occupation, and monthly income.
addressesobjectContains address records for the individual, including country, town, and whether the address is primary.
identificationsobjectIdentification documents associated with the individual, detailing the type, number, and validity of the document.
phoneNumbersobjectPhone numbers associated with the individual, including whether a number is primary.
biometricInformationobjectInformation regarding biometric data and liveness detection status of the individual.
taxPayerDetailsobjectContains tax-related information, such as Tax Identification Number (TIN) and tax payer name.
documentsobjectDocuments associated with the individual, including document type, name, and other relevant metadata.
nextOfKinDetailsobjectInformation about the individual's next of kin, including phone number and full name.
memberOrAssociateDetailsobjectDetails of any members or associates related to the individual, including their names and relationship.

bioData

NameTypeDescription
idstring (uuid)A unique identifier for the biodata record.
createdAtstring (ISO 8601)The date and time when the biodata record was created.
lastUpdatedstring (ISO 8601)The date and time when the biodata record was last updated.
surnamestringThe surname of the individual.
givenNamestringThe given name of the individual.
otherNamestringAny additional names of the individual.
dateOfBirthstring (ISO 8601)The date of birth of the individual.
maritalStatusstringThe marital status of the individual.
genderstringThe gender of the individual.

employments

NameTypeDescription
idstring (uuid)A unique identifier for the employment record.
createdAtstring (ISO 8601)The date and time when the employment record was created.
lastUpdatedstring (ISO 8601)The date and time when the employment record was last updated.
typestringThe type of employment (e.g., full-time, part-time).
occupationstringThe occupation or job title of the individual.
monthlyIncomestringThe monthly income of the individual from this employment.

addresses

NameTypeDescription
idstring (uuid)A unique identifier for the address record.
createdAtstring (ISO 8601)The date and time when the address record was created.
lastUpdatedstring (ISO 8601)The date and time when the address record was last updated.
countrystringThe country of the address.
typestringThe type of address (e.g., home, work).
townstringThe town of the address.
districtstringThe district of the address.
countystringThe county of the address.
subCountystringThe sub-county of the address.
parishstringThe parish of the address.
villagestringThe village of the address.
isPrimarybooleanIndicates if this is the primary address of the individual.

identifications

NameTypeDescription
idstring (uuid)A unique identifier for the identification record.
createdAtstring (ISO 8601)The date and time when the identification record was created.
lastUpdatedstring (ISO 8601)The date and time when the identification record was last updated.
surnamestringThe surname of the individual as per the identification document.
givenNamestringThe given name of the individual as per the identification document.
otherNamestringAny additional names as per the identification document.
sexstringThe gender of the individual as per the identification document.
typestringThe type of identification document (e.g., NationalID).
idValuestringThe value of the identification document (e.g., ID number).
idNumberstringThe number of the identification document.
issueDatestring (ISO 8601)The date the identification document was issued.
expiryDatestring (ISO 8601)The expiry date of the identification document.
nationalitystringThe nationality of the individual as per the identification document.
dateOfBirthstring (ISO 8601)The date of birth of the individual as per the identification document.
isPrimarybooleanIndicates if this is the primary identification document.
additionalInformationstringAny additional information regarding the identification document.
requiresValidationbooleanIndicates if the identification document requires validation.

phoneNumbers

NameTypeDescription
idstring (uuid)A unique identifier for the phone number record.
createdAtstring (ISO 8601)The date and time when the phone number record was created.
lastUpdatedstring (ISO 8601)The date and time when the phone number record was last updated.
numberstringThe phone number.
isPrimarybooleanIndicates if this is the primary phone number of the individual.

biometricInformation

NameTypeDescription
idstring (uuid)A unique identifier for the biometric information record.
createdAtstring (ISO 8601)The date and time when the biometric information record was created.
lastUpdatedstring (ISO 8601)The date and time when the biometric information record was last updated.
livenessStatusbooleanIndicates the status of liveness detection.
livenessDetectionSubmittedAtstring (ISO 8601)The date and time when liveness detection was submitted.
customerPhotoMatchStatusbooleanIndicates if the customer photo matches.
customerPhotoMatchSubmittedAtstring (ISO 8601)The date and time when the customer photo match was submitted.

taxPayerDetails

NameTypeDescription
idstring (uuid)A unique identifier for the tax payer details record.
createdAtstring (ISO 8601)The date and time when the tax payer details were created.
lastUpdatedstring (ISO 8601)The date and time when the tax payer details were last updated.
tinstringThe Tax Identification Number (TIN) of the individual.
taxPayerNamestringThe name of the tax payer.

documents

NameTypeDescription
idstring (uuid)A unique identifier for the document record.
namestringThe name of the document.
documentTypestringThe type of the document (e.g., passport, ID).
contentTypestringThe content type of the document (e.g., image/jpeg).

nextOfKinDetails

NameTypeDescription
idstring (uuid)A unique identifier for the next of kin record.
createdAtstring (ISO 8601)The date and time when the next of kin record was created.
lastUpdatedstring (ISO 8601)The date and time when the next of kin record was last updated.
phoneNumberstringThe phone number of the next of kin.
fullNamestringThe full name of the next of kin.

memberOrAssociateDetails

NameTypeDescription
idstring (uuid)A unique identifier for the member or associate record.
createdAtstring (ISO 8601)The date and time when the member or associate record was created.
lastUpdatedstring (ISO 8601)The date and time when the member or associate record was last updated.
surnamestringThe surname of the member or associate.
givenNamestringThe given name of the member or associate.
relationshipstringThe relationship of the member or associate to the individual.

Example Response Body

json
[
	{
		"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"createdAt": "2024-10-01T09:34:23.646Z",
		"lastUpdated": "2024-10-01T09:34:23.646Z",
		"applicationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"initiatorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"initiatorName": "string",
		"initiatorEmail": "string",
		"tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"tenantName": "string",
		"aggregatorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"aggregatorName": "string",
		"fullName": "string",
		"phoneNumber": "string",
		"email": "string",
		"documentNumber": "string",
		"personId": "string",
		"countryOfResidence": "string",
		"isPEP": true,
		"pepType": "string",
		"bioData": {
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"surname": "string",
			"givenName": "string",
			"otherName": "string",
			"dateOfBirth": "string",
			"maritalStatus": "string",
			"gender": "string"
		},
		"employments": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"type": "string",
			"occupation": "string",
			"monthlyIncome": "string"
			}
		],
		"addresses": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"country": "string",
			"type": "Home",
			"town": "string",
			"district": "string",
			"county": "string",
			"subCounty": "string",
			"parish": "string",
			"village": "string",
			"isPrimary": true
			}
		],
		"identifications": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"surname": "string",
			"givenName": "string",
			"otherName": "string",
			"sex": "string",
			"type": "NationalID",
			"idValue": "string",
			"idNumber": "string",
			"issueDate": "string",
			"expiryDate": "string",
			"nationality": "string",
			"dateOfBirth": "string",
			"isPrimary": true,
			"additionalInformation": "string",
			"requiresValidation": true
			}
		],
		"phoneNumbers": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"number": "string",
			"isPrimary": true
			}
		],
		"biometricInformation": {
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"livenessStatus": true,
			"livenessDetectionSubmittedAt": "2024-10-01T09:34:23.647Z",
			"customerPhotoMatchStatus": true,
			"customerPhotoMatchSubmittedAt": "2024-10-01T09:34:23.647Z"
		},
		"taxPayerDetails": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"tin": "string",
			"taxPayerName": "string"
			}
		],
		"documents": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"name": "string",
			"documentType": "string",
			"contentType": "string",
			"size": "string",
			"reference": "string",
			"description": "string",
			"dateCreated": "2024-10-01T09:34:23.647Z"
			}
		],
		"nextOfKinDetails": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"phoneNumber": "string",
			"fullName": "string"
			}
		],
		"memberOrAssociateDetails": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"surname": "string",
			"givenName": "string",
			"relationship": "string"
			}
		]
	}
]
[
	{
		"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"createdAt": "2024-10-01T09:34:23.646Z",
		"lastUpdated": "2024-10-01T09:34:23.646Z",
		"applicationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"initiatorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"initiatorName": "string",
		"initiatorEmail": "string",
		"tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"tenantName": "string",
		"aggregatorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
		"aggregatorName": "string",
		"fullName": "string",
		"phoneNumber": "string",
		"email": "string",
		"documentNumber": "string",
		"personId": "string",
		"countryOfResidence": "string",
		"isPEP": true,
		"pepType": "string",
		"bioData": {
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"surname": "string",
			"givenName": "string",
			"otherName": "string",
			"dateOfBirth": "string",
			"maritalStatus": "string",
			"gender": "string"
		},
		"employments": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"type": "string",
			"occupation": "string",
			"monthlyIncome": "string"
			}
		],
		"addresses": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"country": "string",
			"type": "Home",
			"town": "string",
			"district": "string",
			"county": "string",
			"subCounty": "string",
			"parish": "string",
			"village": "string",
			"isPrimary": true
			}
		],
		"identifications": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.646Z",
			"lastUpdated": "2024-10-01T09:34:23.646Z",
			"surname": "string",
			"givenName": "string",
			"otherName": "string",
			"sex": "string",
			"type": "NationalID",
			"idValue": "string",
			"idNumber": "string",
			"issueDate": "string",
			"expiryDate": "string",
			"nationality": "string",
			"dateOfBirth": "string",
			"isPrimary": true,
			"additionalInformation": "string",
			"requiresValidation": true
			}
		],
		"phoneNumbers": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"number": "string",
			"isPrimary": true
			}
		],
		"biometricInformation": {
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"livenessStatus": true,
			"livenessDetectionSubmittedAt": "2024-10-01T09:34:23.647Z",
			"customerPhotoMatchStatus": true,
			"customerPhotoMatchSubmittedAt": "2024-10-01T09:34:23.647Z"
		},
		"taxPayerDetails": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"tin": "string",
			"taxPayerName": "string"
			}
		],
		"documents": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"name": "string",
			"documentType": "string",
			"contentType": "string",
			"size": "string",
			"reference": "string",
			"description": "string",
			"dateCreated": "2024-10-01T09:34:23.647Z"
			}
		],
		"nextOfKinDetails": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"phoneNumber": "string",
			"fullName": "string"
			}
		],
		"memberOrAssociateDetails": [
			{
			"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
			"createdAt": "2024-10-01T09:34:23.647Z",
			"lastUpdated": "2024-10-01T09:34:23.647Z",
			"surname": "string",
			"givenName": "string",
			"relationship": "string"
			}
		]
	}
]

Error Response

Tech served right