Skip to content

PEP Management API

API endpoints for managing Politically Exposed Persons (PEP) lists, including CRUD operations, bulk uploads, and search functionality.

Base URL: /admin/aml/pep

Endpoints Summary

MethodEndpointDescription
GET/admin/aml/pepList PEPs (paginated)
POST/admin/aml/pepCreate single PEP
POST/admin/aml/pep/bulkBulk create PEPs
PUT/admin/aml/pep/:pepIdUpdate PEP
DELETE/admin/aml/pep/:pepIdDelete PEP
GET/admin/aml/pep/searchSearch PEPs
GET/admin/aml/pep/statsGet statistics

List PEPs

GET /admin/aml/pep

Query Parameters:

ParameterTypeDefaultDescription
statusstring-active or inactive
categorystring-Filter by category
pagenumber1Page number
limitnumber50Items per page
searchstring-Search in name, position, country

Returns: Paginated list of PEP records


Create PEP

POST /admin/aml/pep

Creates a single PEP record and automatically matches against existing users.

Request Body:

FieldTypeRequiredDescription
namestringYesFull name
categorystringNoPEP category (see table below)
positionstringNoPolitical position/title
countrystringNoCountry of political exposure
sourcestringNoData source
isActivebooleanNoActive status (default: true)
additionalInfoobjectNoExtra metadata

Returns: Created PEP with matching results (users updated, alerts created)


Bulk Create PEPs

POST /admin/aml/pep/bulk

Uploads multiple PEP records at once with automatic user matching.

Request Body:

FieldTypeRequiredDescription
pepsarrayYesArray of PEP objects

Returns:

FieldDescription
createdNumber successfully created
failedNumber failed
errorsError details for failures
matchingUser matching summary

Update PEP

PUT /admin/aml/pep/:pepId

Updatable Fields: name, category, position, country, isActive, additionalInfo


Delete PEP

DELETE /admin/aml/pep/:pepId

Permanently deletes a PEP record.


Search PEPs

GET /admin/aml/pep/search?q={query}

Query Parameters:

ParameterTypeDescription
qstringSearch query (min 2 characters)

Returns: Matching PEP records with count


Get Statistics

GET /admin/aml/pep/stats

Returns:

FieldDescription
totalTotal PEP records
activeActive records
inactiveInactive records
byCountryCount by country
byCategoryCount by category

PEP Categories

CategoryDescription
Head of StatePresidents, Kings, Prime Ministers
Government OfficialMinisters, Secretaries, Directors
Senior PoliticianParliament members, Party leaders
Military OfficerHigh-ranking military personnel
JudgeSupreme court judges, High court officials
Central Bank OfficialCentral bank governors, Directors
State Enterprise ExecutiveCEOs of state-owned enterprises
Family MemberClose family of PEPs
Close AssociateKnown business/personal associates
UnknownCategory not determined

Auto-Matching Behavior

When a PEP is created or bulk uploaded:

  1. System searches all users for name matches
  2. Users with matches are flagged as potential PEPs
  3. Risk scores are updated accordingly
  4. AML alerts are automatically created
  5. Matching results are returned in the response

Error Responses

StatusErrorDescription
404PEP not foundInvalid PEP ID
409PEP with this name already existsDuplicate entry
400Name is requiredMissing name field
400Search query is requiredMissing search query

Internal use only - Keshless Payment Platform