FinServ API Documentation - Deposit Transaction

Deposit Transaction API

The Deposit Transaction API allows authorized clients to deposit funds into a customer’s account.

Endpoint

POST /api/deposit

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)

{
  "accountNo": "1234567890",
  "amount": 50000,
  "description": "Salary deposit for January"
}

Response

Success (200 OK)

{
  "transactionId": "TXN123456",
  "accountNo": "1234567890",
  "amount": 50000,
  "description": "Salary deposit for January",
  "status": "completed",
  "newBalance": 300000.75
}

Error Responses

Example Usage

JavaScript (Client Side)

fetch("https://banking.finserv.com.ng/api/deposit", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_SECURE_API_KEY"
  },
  body: JSON.stringify({
    accountNo: "1234567890",
    amount: 50000,
    description: "Salary deposit for January"
  })
})
.then(response => response.json())
.then(data => {
  console.log("Transaction ID:", data.transactionId);
  console.log("Account:", data.accountNo);
  console.log("Amount:", data.amount);
  console.log("Description:", data.description);
  console.log("Status:", data.status);
  console.log("New Balance:", data.newBalance);
})
.catch(error => console.error("Error:", error));

Postman

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

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