Skip to main content

Customer Details

The Customer Details API allows you to retrieve the full profile of a specific customer registered for transaction monitoring. This includes personal information, addresses, bank accounts, onboarding history, and risk status.

API Endpoint

GET {base_url}/transactions/monitoring/customer/{customerId}

Request Format

This endpoint accepts a GET request with the customer ID as a path parameter.

Request Headers

Authorization: Bearer {token}

Path Parameters

ParameterTypeRequiredDescription
customerIdstring (UUID)YesUnique identifier of the customer

Example Request URL

GET {base_url}/transactions/monitoring/customer/a1b2c3d4-5678-90ab-cdef-1234567890ab

Response Format

{
"version": null,
"statusCode": 200,
"messages": ["Processed successfully"],
"result": {
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phoneNumber": "+966501234567",
"entityType": "Individual",
"organizationName": null,
"onboardingStatus": "NoMailSent",
"accountStatus": "Active",
"userType": "New",
"riskStatus": "NoRisk",
"onboardedBy": "admin",
"oldUserId": null,
"country_Iso": "",
"leanCustomerId": null,
"leanConnectionId": null,
"createdAt": "2025-03-15T10:30:00Z",
"updatedAt": "2025-03-15T10:30:00Z",
"addresses": [
{
"id": "b2c3d4e5-6789-01ab-cdef-2345678901ab",
"customerId": "",
"customer": null,
"address1": "123 Main Street, Suite 100",
"address2": null,
"city": "Riyadh",
"state": "Riyadh",
"country": "SA",
"pincode": "12345",
"type": "Home",
"isPrimary": false,
"createdAt": "2025-03-15T11:00:00Z",
"updatedAt": "2025-03-15T11:00:00Z"
}
],
"bankAccounts": [
{
"tenantId": null,
"id": "c3d4e5f6-7890-12ab-cdef-3456789012ab",
"customerId": null,
"customer": null,
"accountNumber": "1234567890",
"bank": "Example Bank",
"accountType": "Savings",
"currency": "USD",
"iban": "",
"bicCode": null,
"balance": 8410.61,
"poBoxNumber": null,
"createdAt": "2025-03-15T10:45:00Z",
"updatedAt": "2025-03-15T10:45:00Z"
}
],
"onboardingHistories": [
{
"id": "d4e5f6a7-8901-23ab-cdef-4567890123ab",
"action": "CustomerAdded",
"bankStatementId": null,
"addedBy": "Admin",
"createdAt": "2025-03-15T10:30:01Z",
"updatedAt": "2025-03-15T10:30:01Z"
}
],
"leanBankAccounts": [],
"fullName": "John Doe"
}
}

Response Fields

FieldTypeDescription
versionstringAPI version (nullable)
statusCodenumberHTTP status code
messagesstring[]Response messages
resultobjectCustomer details object

Customer Object

FieldTypeDescription
idstring (UUID)Unique customer identifier
firstNamestringCustomer's first name
lastNamestringCustomer's last name
emailstringCustomer's email address
phoneNumberstringCustomer's phone number (E.164 format)
entityTypestringCustomer entity type — Individual or Organization
organizationNamestringOrganization name (nullable, populated for Organization entity type)
onboardingStatusstringCurrent onboarding status (see Onboarding Status Values)
accountStatusstringAccount status — Active or Inactive
userTypestringUser type — New or Existing
riskStatusstringRisk level (see Risk Status Values)
onboardedBystringName of the officer or system that onboarded the customer
oldUserIdstringLegacy user identifier (nullable)
country_Isostring2-letter ISO country code
leanCustomerIdstringLean banking customer identifier (nullable)
leanConnectionIdstringLean banking connection identifier (nullable)
createdAtstringISO 8601 timestamp of when the customer was created
updatedAtstringISO 8601 timestamp of the last update
addressesarrayList of customer addresses
bankAccountsarrayList of manually added bank accounts
onboardingHistoriesarrayList of onboarding history events
leanBankAccountsarrayList of Lean-connected bank accounts
fullNamestringComputed full name (firstName + lastName)

Address Object

FieldTypeDescription
idstring (UUID)Unique address identifier
customerIdstringAssociated customer identifier
customerobjectCustomer reference (nullable)
address1stringPrimary address line
address2stringSecondary address line (nullable)
citystringCity name
statestringState or province
countrystringCountry name or code
pincodestringPostal or ZIP code
typestringAddress type — Home, Work, or Other
isPrimarybooleanWhether this is the primary address
createdAtstringISO 8601 timestamp of when the address was created
updatedAtstringISO 8601 timestamp of the last update

Bank Account Object

FieldTypeDescription
tenantIdstringTenant identifier (nullable)
idstring (UUID)Unique bank account identifier
customerIdstringAssociated customer identifier (nullable)
customerobjectCustomer reference (nullable)
accountNumberstringBank account number
bankstringBank name
accountTypestringAccount type (e.g., Savings, Current, N/A)
currencystring3-letter ISO currency code (e.g., USD, SAR, AED)
ibanstringInternational Bank Account Number
bicCodestringBank Identifier Code / SWIFT code (nullable)
balancenumberCurrent account balance
poBoxNumberstringP.O. Box number (nullable)
createdAtstringISO 8601 timestamp of when the account was added
updatedAtstringISO 8601 timestamp of the last update

Onboarding History Object

FieldTypeDescription
idstring (UUID)Unique history entry identifier
actionstringAction performed (see Onboarding History Actions)
bankStatementIdstringAssociated bank statement identifier (nullable)
addedBystringUser or system that performed the action
createdAtstringISO 8601 timestamp of when the action occurred
updatedAtstringISO 8601 timestamp of the last update

Onboarding Status Values

StatusDescription
VerifiedCustomer has completed verification
PendingVerification is in progress
InvitedInvitation has been sent
EmailSentVerification email sent
EmailChangedCustomer changed their email
NotVerifiedCustomer has not completed verification
NoMailSentNo invitation email has been sent yet
LinkExpiredThe verification link has expired

Risk Status Values

StatusDescription
NoRiskNo risk detected
LowLow risk
MediumMedium risk
HighHigh risk
ProhibitedCustomer is prohibited

Onboarding History Actions

ActionDescription
CustomerAddedCustomer was registered for transaction monitoring
BankStatementAddedA bank statement was uploaded for the customer
FileUploadFailedA file upload attempt failed

Example Usage

cURL Example

curl -X GET \
'{base_url}/transactions/monitoring/customer/a1b2c3d4-5678-90ab-cdef-1234567890ab' \
-H 'Authorization: Bearer your_token_here'

Error Handling

Status CodeDescriptionSolution
400Invalid customer ID formatEnsure the customerId is a valid UUID
401UnauthorizedVerify your authentication token
403ForbiddenCheck that your account has the required permissions
404Customer not foundVerify the customer ID exists
500Internal server errorContact support with the error details