Skip to content
On this page

Get Customer Applications

Endpoint for retrieving a list of customer onboarding applications.

Endpoints

EnvironmentURL
Sandboxhttps://api-test.streamline.laboremus.ug/onboarding/api/v1/customers
Productionhttps://api.streamline.laboremus.ug/onboarding/api/v1/customers

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' 
  } 
});

Query Parameters

NameTypeRequiredDescription
vstringnoThe API Version
Idstring or nullnoSearch by Id of the application.
Fromstring (date-time)noStart date in query.
Tostring (date-time)noEnd date in query.
Querystring or nullnoSearch input.
Skipinteger (int32)noPage number
Limitinteger (int32)noNumber of responses per page.

Header Parameters

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

Response

Response Values

NameTypeDescription
idstringUnique identifier of the record
createdAtstringTimestamp indicating when the record was created
applicationIdstringUnique identifier for the associated application
profileIdstringUnique identifier for the associated profileId
channelstringChannel through which the data was submitted
surnamestring or nullSurname of the individual
otherNamestring or nullOther name or middle name of the individual
givenNamestring or nullGiven name or first name of the individual
genderstring or nullGender of the individual (e.g., Male, Female)
dateOfBirthstring or nullDate of birth of the individual
phoneNumberstring or nullPhone number of the individual
cardNumberstring or nullCard number associated with the individual
ninstring or nullNational Identification Number
expiryDatestring or nullExpiry date of the identification document
issueDatestring or nullIssue date of the identification document
emailAddressstring or nullEmail address of the individual
physicalAddressstring or nullPhysical address of the individual
citystring or nullCity of residence of the individual
villagestring or nullVillage or locality of the individual
districtstring or nullDistrict of residence of the individual
parishstring or nullParish or region of the individual
submittedByobjectInformation about the agent who submitted the data
additionalInformationobject or nullAdditional information about the Application

submittedBy

NameTypeDescription
agentCodestringCode of the agent associated with the submission.

INFO

additionalInformation field contains detailed data related to an application.The information returned is in relation to the consumer of the endpoint

additionalInformation

NameTypeDescription
accountTypestring or nullType of account
accountNamestring or nullName associated with the account
occupationstring or nullOccupation of the applicant
phoneNumberstring or nullPhone number of the applicant
monthlyIncomestring or nullMonthly income range of the applicant
tinstring or nullTax Identification Number (TIN) of the applicant
maritalStatusstring or nullMarital status of the applicant
residentInUgandabooleanIndicates if the applicant is a resident of Uganda
countryOfResidencestring or nullCountry of residence of the applicant
nextOfKinobject or nullNext of kin information
biometricsobject or nullData related to physical traits for identity verification.
pepDetailsobject or nullDetails about politically exposed person (PEP)
alternativeAccountobject or nullAlternative account details

nextOfKin

NameTypeDescription
namestring or nullName of the next of kin.
phoneNumberstring or nullPhone number of the next of kin.

biometrics

NameTypeDescription
photoMatchScorestring or nullScore indicating the match between photos
customerPhotoMatchStatusbooleanIndicates if customer photo matches
livenessStatusbooleanIndicates the liveness status of biometric data

pepDetails

NameTypeDescription
isPepbooleanIndicates if the applicant is a politically exposed person (PEP)
pepTypestringType of PEP
relationshipstringRelationship to PEP
memberFullNamestring or nullFull name of the PEP member

alternativeAccount

NameTypeDescription
accountTypestringType of alternative account
bankAccountNumberstring or nullBank account number
bankNamestring or nullName of the bank
mobileMoneyNumberstringMobile money number

Example Response Body

Content type

application/json

json
[
	{
		"applicationId": "273f21ab-9f5e-4b6e-8ed2-2e1b39b8e9d6",
		"channel": "USSD",
		"data": {
			"surname": "MUKASA",
			"otherName": "PETER",
			"givenName": "JOHN",
			"gender": "M",
			"dateOfBirth": "1985-02-15T00:00:00",
			"phoneNumber": "256704567890",
			"cardNumber": "123456789",
			"nin": "CF87046102L1000",
			"expiryDate": "2030-02-15T00:00:00",
			"issueDate": "2024-06-04T10:55:19.526589Z",
			"emailAddress": "john.mukasa@example.com",
			"physicalAddress": "Plot 45, Ntinda Road, Kampala",
			"city": "Kampala",
			"village": "NTINDA",
			"district": "KAMPALA",
			"parish": "NTINDA",
			"submittedBy": {
				"agentCode": "MUKASA JOHN"
			},
			"additionalInformation": {
				"accountType": "Current Account",
				"accountName": "MUKASA JOHN",
				"occupation": "Teacher",
				"phoneNumber": "256704567890",
				"monthlyIncome": "UGX 1 million - UGX 3 million",
				"tin": "0200891234",
				"maritalStatus": "Married",
				"residentInUganda": true,
				"countryOfResidence": "UGANDA",
				"nextOfKin": "KABUYE MARY",
				"biometrics": {
					"photoMatchScore": "0.7856342",
					"customerPhotoMatchStatus": true,
					"livenessStatus": true
				},
				"pepDetails": {
					"isPep": false,
					"pepType": "",
					"relationship": "",
					"memberFullname": null
				},
				"alternativeAccount": {
					"accountType": "Mobile Money",
					"bankAccountNumber": "",
					"bankName": "",
					"mobileMoneyNumber": "256704567890"
				}
			}
		},
		"id": "5dda118b-1234-4789-9345-2a1b5678e9f0",
		"createdAt": "2024-06-04T13:55:27.526113"
	}

]
[
	{
		"applicationId": "273f21ab-9f5e-4b6e-8ed2-2e1b39b8e9d6",
		"channel": "USSD",
		"data": {
			"surname": "MUKASA",
			"otherName": "PETER",
			"givenName": "JOHN",
			"gender": "M",
			"dateOfBirth": "1985-02-15T00:00:00",
			"phoneNumber": "256704567890",
			"cardNumber": "123456789",
			"nin": "CF87046102L1000",
			"expiryDate": "2030-02-15T00:00:00",
			"issueDate": "2024-06-04T10:55:19.526589Z",
			"emailAddress": "john.mukasa@example.com",
			"physicalAddress": "Plot 45, Ntinda Road, Kampala",
			"city": "Kampala",
			"village": "NTINDA",
			"district": "KAMPALA",
			"parish": "NTINDA",
			"submittedBy": {
				"agentCode": "MUKASA JOHN"
			},
			"additionalInformation": {
				"accountType": "Current Account",
				"accountName": "MUKASA JOHN",
				"occupation": "Teacher",
				"phoneNumber": "256704567890",
				"monthlyIncome": "UGX 1 million - UGX 3 million",
				"tin": "0200891234",
				"maritalStatus": "Married",
				"residentInUganda": true,
				"countryOfResidence": "UGANDA",
				"nextOfKin": "KABUYE MARY",
				"biometrics": {
					"photoMatchScore": "0.7856342",
					"customerPhotoMatchStatus": true,
					"livenessStatus": true
				},
				"pepDetails": {
					"isPep": false,
					"pepType": "",
					"relationship": "",
					"memberFullname": null
				},
				"alternativeAccount": {
					"accountType": "Mobile Money",
					"bankAccountNumber": "",
					"bankName": "",
					"mobileMoneyNumber": "256704567890"
				}
			}
		},
		"id": "5dda118b-1234-4789-9345-2a1b5678e9f0",
		"createdAt": "2024-06-04T13:55:27.526113"
	}

]

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

402 No active subscription

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