# Bank Account Verification

This endpoint allows you return bank account verification. This is the first version payload&#x20;

<mark style="color:red;">`POST`</mark>

```http
{{baseurl}}/v1/identities/banks/verify_account
```

Permission: resolve Bank Account Number

### Header

| Field | Type   | Description      |
| ----- | ------ | ---------------- |
| token | String | Secret API token |

### Parameter

| Field            | Type    | Description                                                                                                        |
| ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| account\_number  | String  | user account number                                                                                                |
| bank\_code       | String  | user bank code [Get bank List](https://doc.youverify.co/our-legacy-api-and-sdk/identity-verification/bank-listing) |
| subject\_consent | Boolean | Indicate subject has given consent. <mark style="color:red;">`Must be true`</mark>                                 |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "account_number": "0141xxxxxx",
    "bank_code": "058",
    "subject_consent": true
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Found Response" %}

```json
HTTP/1.1 200 OK
{
        "message": "Successful",
        "data": {
            "id": "6201e981793b002b32130094",
            "reference_id": "6201e981793b002b32130094",
            "subject_consent": true,
            "candidate": {
                "id": "6201e981793b002b32130094",
                "reference_id": "6201e981793b002b32130094",
                "full_name": "EHICHIOYA FAMOUS PRIOR",
                "bank_name": "Guaranty Trust Bank",
                "account_number": "0141xxxxxx",
                "bank_code": "058"
            },
            "status": "completed",
            "identity_status": "VERIFIED",
            "identity_number": "0141xxxxxx",
            "package": "identity",
            "package_name": "Identity",
            "type": "bank_account_verification",
            "business": "Youcheck Online Services Limited",
            "task_created_by": "Youcheck Online Services Limited",
            "end_time": null,
            "created_at": "2022-02-08T03:54:42.909Z",
            "images": {
                "data": []
            }
        },
        "status_code": 200
    }
```

{% endtab %}

{% tab title="Not Found Response" %}

```json
HTTP/1.1 200 OK
    {
        "message": "Could not resolve account name. Check parameters or try again.",
        "name": "LegacyAPIError",
        "status_code": 400
    }
```

{% endtab %}

{% tab title="Service Unavailability" %}

```json
HTTP/1.1 503 Internal Server Error
{
    "message": "Third-party provider not reacheable",
    "name": "LegacyAPIError",
    "status_code": 503
}

HTTP/1.1 400 Bad Request
{
  "message": "Could not resolve account name. Check parameters or try again.",
  "name": "LegacyAPIError",
  "status_code": 400
}
```

{% endtab %}
{% endtabs %}

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.youverify.co/our-legacy-api-and-sdk/identity-verification/bank-account-verification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
