Skip to main content

Get All KYC Records

GET /api/v{version}/Kyc/get-all

Description

This endpoint retrieves all Know Your Customer (KYC) records based on the provided query parameters.

Parameters

  • OwnerId (string($uuid), query, optional): The ID of the owner.
  • TenantId (string($uuid), query, optional): The ID of the tenant.
  • Orderby (integer($int32), query, optional): The order in which to sort the results. Available values: 1, 2, 3, 4.
  • Tier (integer($int32), query, optional): The tier level to filter results by. Available values: 0, 1, 2.
  • Descending (boolean, query, optional): Whether to sort the results in descending order.
  • PageNumber (integer($int32), query, optional): The page number for pagination.
  • PageSize (integer($int32), query, optional): The number of records per page.
  • version (string, path, required): The version of the API.
  • Accept-Language (string, header, optional): Change the default response message language from English (en). Available languages are fr and en.

Responses

Success Response (200)

The Success Response (200) is returned when the KYC records are successfully retrieved. This response includes the retrieved KYC data and additional pagination details.

Response Fields

FieldTypeDescription
succeededbooleanIndicates the success of the request.
messagestringA message indicating the outcome of the operation.
errorsarrayAn array of strings providing details about any errors encountered during the request.
dataarrayAn array of objects containing the KYC records. Each object includes the following fields:
data.idstringThe ID of the KYC record.
data.tierstringThe tier level of the KYC record.
data.namestringThe name associated with the KYC record.
data.tenantIdstringThe ID of the tenant associated with the KYC record.
data.ownerIdstringThe ID of the owner associated with the KYC record.
data.approvedbooleanIndicates if the KYC record is approved.
data.isTenantbooleanIndicates if the record belongs to a tenant.
data.isAddressVerifiedbooleanIndicates if the address is verified.
data.approvedOnstringThe date and time when the KYC record was approved.
data.bvnstringThe Bank Verification Number (BVN) associated with the KYC record.
data.statusstringThe status of the KYC record.
pageNumberintegerThe current page number.
pageSizeintegerThe number of records per page.
totalintegerThe total number of records available.

Example

JSON:

{
"succeeded": true,
"message": "string",
"errors": [
"string"
],
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tier": "string",
"name": "string",
"tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ownerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"approved": true,
"isTenant": true,
"isAddressVerified": true,
"approvedOn": "2024-08-07T10:06:00.868Z",
"bvn": "string",
"status": "string"
}
],
"pageNumber": 0,
"pageSize": 0,
"total": 0
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/Kyc/get-all \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!