---
title: Validate bank account
slug: validate-bank-account
docTags: 
createdAt: 2023-11-01T09:07:09.656Z
---

{
  "id": "iaNJijWwivOV8x4W24w0d",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/client/v1/bank/validate",
    "name": "Validate bank account",
    "description": "<p>The document explains how to validate a bank account. The response from the API call includes a message indicating that the bank account have been verified, along with the details of the account, such as the account_number, account_name, and bank_code.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "X-CLIENT-ID",
          "type": "string",
          "description": "Your client ID"
        },
        {
          "kind": "required",
          "name": "X-SIGNATURE",
          "type": "string",
          "description": "The base64 encoded signature"
        },
        {
          "kind": "required",
          "name": "X-TIMESTAMP",
          "type": "string",
          "description": "The timestamp"
        },
        {
          "kind": "required",
          "name": "X-NONCE",
          "type": "string",
          "description": "The Nonce"
        }
      ],
      "queryParameters": [
        {
          "kind": "required",
          "name": "account_number",
          "type": "string",
          "description": "bank account number"
        },
        {
          "kind": "required",
          "name": "bank_code",
          "type": "string",
          "description": "<p>bank code. This is usually a Zide bank code and starts with <code>ZIDE</code></p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "account validated",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "account validated",
            "customType": "clientApi.ValidateBankAccountRequestSuccessful",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "account_number",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "account_name",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "bank_code",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  }
                ]
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "example": "",
                "default": "account validated"
              }
            ],
            "modelRef": "#/definitions/clientApi.ValidateBankAccountRequestSuccessful",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "06xZWvzR56XGakNwmQalH",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url '/client/v1/bank/validate?account_number=string&bank_code=string' \\\n     --header 'accept: application/json' \\\n     --header 'x-client-id: string' \\\n     --header 'x-signature: string' \\\n     --header 'x-timestamp: string' \\\n     --header 'x-nonce: string'"
        },
        {
          "id": "ySyAx7ALgcPnetto3NS6x",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-client-id\", \"string\");\nmyHeaders.append(\"x-signature\", \"string\");\nmyHeaders.append(\"x-timestamp\", \"string\");\nmyHeaders.append(\"x-nonce\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/client/v1/bank/validate?account_number=string&bank_code=string\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "EqXFX-tOuLEZVdr9yw2t9",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/client/v1/bank/validate?account_number=string&bank_code=string\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-client-id\"] = \"string\"\nrequest[\"x-signature\"] = \"string\"\nrequest[\"x-timestamp\"] = \"string\"\nrequest[\"x-nonce\"] = \"string\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "FInWFpcm3-xJEf5-bgqPD",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/client/v1/bank/validate?account_number=string&bank_code=string\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-client-id': 'string',\n   'x-signature': 'string',\n   'x-timestamp': 'string',\n   'x-nonce': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "06xZWvzR56XGakNwmQalH"
    },
    "results": {
      "languages": [
        {
          "id": "qcV-YP9phpPA66KiMUSG3",
          "language": "200",
          "code": "// account validated\n{\n  \"data\": {\n    \"account_number\": 0,\n    \"account_name\": \"\",\n    \"bank_code\": \"\"\n  },\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "qcV-YP9phpPA66KiMUSG3"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}