Clients

Search Clients

This endpoint searches for a client within the Netevia Banking platform using either an email address or a phone number. On a successful match, it returns the client's business profile information along with their associated financial account identifiers. It is intended for partner-side operations such as transaction lookup, customer support, and internal account management.

Endpoint

POST /api/Search/v2/clients

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to Use

Use this endpoint when you need to locate a client record before initiating a transaction, resolving a support inquiry, or linking an operation to a specific account. It is appropriate any time the partner knows only a client's contact information and needs to retrieve the corresponding Netevia account details. This endpoint is useful for both business and personal customer lookups.

Request Body

FieldTypeRequiredDescription
whatsLookingForstringYesThe email address or phone number of the client to search for.
{
  "whatsLookingFor": "[email protected]"
}

Or using a phone number:

{
  "whatsLookingFor": "1234567890"
}

Response

200 OK

FieldTypeDescription
financialAccountIdstringUnique identifier of the client's financial account.
doingBusinessNamestringThe business name associated with the client.
businessPhoneNumberstringThe business phone number on file for the client.
webSitestringThe website URL associated with the client's business profile.
accountNumberLast4stringThe last four digits of the client's account number.
fullAccountNumberstringThe full account number. Treat as sensitive — store and display as XXXXXXXXXX.
{
  "financialAccountId": "fa_9b3c1e2d4f5a6078",
  "doingBusinessName": "Acme Retail LLC",
  "businessPhoneNumber": "555-123-4567",
  "webSite": "https://acmeretail.example.com",
  "accountNumberLast4": "8901",
  "fullAccountNumber": "XXXXXXXXXX"
}

Error Codes

CodeWhen it happens
400Missing required fields or validation error — whatsLookingFor is absent or malformed
401Token missing, expired, or invalid
403Insufficient permissions to search client records
404No client found matching the provided email or phone number
500Internal server error

Common Mistakes

  • Passing a formatted phone number with dashes or parentheses (e.g., (123) 456-7890) instead of digits only — use 1234567890.
  • Omitting the whatsLookingFor field entirely, which will return a 400 error.
  • Logging or displaying fullAccountNumber in plain text — always mask it as XXXXXXXXXX in interfaces and logs.
  • Using an expired Bearer token — tokens expire after 10 minutes; refresh via POST /api/auth/refresh before retrying.

Related Endpoints

  • POST /api/auth/v2 — Obtain a Bearer token for authentication
  • POST /api/auth/refresh — Refresh an existing Bearer token
  • GET /api/v2/clients/{clientId} — Retrieve full client profile by ID
  • GET /api/v2/financialAccounts/{financialAccountId} — Retrieve financial account details by ID

Example

curl -X POST https://api.banking.netevia.dev/api/Search/v2/clients \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "whatsLookingFor": "[email protected]"
  }'
Body Params
string | null
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json