This document describes the API that returns List banks with respective BankIDs for use on the bank account name verification

Base URL

https://identity.cladfy.app/api/v1

API Endpoint:

POST /banklist

Request Headers:

  • Content-Type: "application/json" Indicates that the data in the request body is in JSON format.

  • Accept: "application/json"Tells the server that the client expects the response to be in JSON format.

  • Authorization: "Basic 123"
    Used for HTTP Basic Authentication, where "123" is a placeholder for the base64-encoded username:password credentials. See guide here


Response - 200:

The response will be a JSON object following the request data type specification: A typed dictionary containing the detailed results. Properties include:


  • success

    • Type: boolean
    • Required: Yes
  • response_code

    • Type: integer
    • Required: Yes
    • Example: 200
  • message

    • Type: string
    • Required: Yes
    • Example: BankIDs List Fetched Successfully
  • data

    • Type: string
    • Required: Yes
  • request_id

    • Type: string
    • Required: Yes

Example Response:

{
  "success": true,
  "response_code": 200,
  "message": "BankIDs List Fetched Successfully",
  "data": "string",
  "request_id": "string"
}

Error Handling:

401 Unauthorized: If the API key is invalid.
400 Bad Request: If the request body is not valid JSON or missing required fields.
500 Internal Server Error: If an internal server error occurs during API request processing. The response will include an error message.

Python Test Example:

This test example demonstrates sending a GET request to the API endpoint. The response will include the associated details.

import requests

url = "https://identity.cladfy.app/api/v1/banklist"

headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Basic 123"
}

response = requests.get(url,headers=headers)

print(response.json())