FinServ API Documentation - Customer Search

Customer Search API

The Customer Search API allows authorized clients to retrieve customer details by providing a Customer ID.

Endpoint

POST /api/customers/search

Base URL: https://banking.finserv.com.ng

Authentication

This endpoint requires an API key.

HeaderValue
x-api-keyYour assigned API key

Request

Headers

KeyValue
Content-Typeapplication/json
x-api-keyYOUR_SECURE_API_KEY

Body (JSON)

{
  "customerId": "CUST123456"
}

Response

Success (200 OK)

{
  "firstName": "John",
  "lastName": "Doe",
  "status": "active",
  "branch": "Head Office",
  "accountOfficer": "Kolade",
  "telephone": "08062425325"
}

Error Responses

Example Usage

JavaScript (Client Side)

fetch("https://banking.finserv.com.ng/api/customers/search", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_SECURE_API_KEY"
  },
  body: JSON.stringify({
    customerId: "CUST123456"
  })
})
.then(response => response.json())
.then(data => {
  console.log("First Name:", data.firstName);
  console.log("Last Name:", data.lastName);
  console.log("Status:", data.status);
  console.log("Branch:", data.branch);
  console.log("Account Officer:", data.accountOfficer);
  console.log("Telephone:", data.telephone);
})
.catch(error => console.error("Error:", error));

Postman

Set method to POST, URL to https://banking.finserv.com.ng/api/customers/search, add headers, and body as shown above.

Note: Always use HTTPS to protect sensitive data. Rotate API keys regularly for security.