Tellering Account Search
Overview
Searches for customer accounts to use in teller transactions.
Command
TelleringAccountSearchCommand
Endpoint
POST /api/bpm/cmd
Request Headers
Authorization: Bearer {access_token}
Content-Type: application/json
X-Tenant-Id: {tenant_id}
Request Body
{
"cmd": "TelleringAccountSearchCommand",
"data": {
"searchTerm": "0123456789",
"accountType": "Savings",
"branchId": "BRANCH-001",
"pageNumber": 1,
"pageSize": 20
}
}
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| cmd | string | Yes | Must be "TelleringAccountSearchCommand" |
| data | object | Yes | Search criteria |
| ↳ searchTerm | string | Yes | Account number, customer name, or phone number to search |
| ↳ accountType | string | No | Filter by account type (Savings, Current, Loan, FixedDeposit) |
| ↳ branchId | string | No | Filter by branch |
| ↳ pageNumber | integer | No | Page number for pagination (default: 1) |
| ↳ pageSize | integer | No | Number of records per page (default: 20) |
Response
Success Response (200 OK)
{
"success": true,
"message": "Accounts found",
"data": {
"accounts": [
{
"accountNumber": "string",
"accountName": "string",
"accountType": "string",
"customerName": "string",
"phoneNumber": "string",
"currentBalance": "decimal",
"accountStatus": "string",
"branchName": "string"
}
],
"pagination": {
"currentPage": 1,
"pageSize": 20,
"totalRecords": 50,
"totalPages": 3
}
}
}
Error Responses
400 Bad Request
{
"success": false,
"message": "Search term is required"
}
404 Not Found
{
"success": false,
"message": "No accounts found matching search criteria"
}
Business Rules
- Search term must be at least 3 characters
- Results limited to accounts user has access to
- Only active accounts shown by default
- Results sorted by relevance
- Maximum page size is 100 records
Code Example
async function searchAccounts(searchTerm, accountType = null) {
const response = await fetch('/api/bpm/cmd', {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json',
'X-Tenant-Id': tenantId
},
body: JSON.stringify({
commandType: 'TelleringAccountSearchCommand',
data: {
searchTerm: searchTerm,
accountType: accountType,
pageNumber: 1,
pageSize: 20
}
})
});
return await response.json();
}
Related Commands
- Deposit To Teller Till - Process deposit
- Withdraw From Teller Till - Process withdrawal
- Loan Repayment With Teller - Loan repayment
Notes
- Use for quick account lookup during teller transactions
- Search by partial account number or customer name
- Verify customer identity before processing transactions
- Consider using account number for exact match searches