# Информация о карте по BIN

```json
GET https://unitpay.ru/api

method            = getBinInfo
params[login]     = partner@mail
params[bin]       = 477964
params[secretKey] = ключ
```

<table data-header-hidden><thead><tr><th width="124.88887532552081">name</th><th width="129.88885498046875">type</th><th>decription</th></tr></thead><tbody><tr><td><strong>login</strong></td><td>строка</td><td>Email аккаунта в системе UnitPay</td></tr><tr><td><strong>secretKey</strong></td><td>строка</td><td>Секретный ключ аккаунта, доступен в <a href="https://unitpay.money/partner/profile/edit">настройках профиля</a></td></tr><tr><td><strong>bin</strong></td><td>число</td><td>Первые 6 цифр номера карты</td></tr></tbody></table>

#### Успешный ответ

```json
{
  "result": {
    "bin":         "477964",
    "bank":        "Alfa Bank",
    "countryCode": "RU",
    "brand":       "VISA",
    "category":    "CLASSIC",
    "bankUrl":     "http://alfabank.com/russia/",
    "bankPhone":   "7 495 620-91-91"
  }
}
```

<table data-header-hidden><thead><tr><th width="163.77773030598956">name</th><th width="100.88885498046875">type</th><th>description</th></tr></thead><tbody><tr><td><strong>bin</strong></td><td>строка</td><td>Первые 6 цифр номера карты</td></tr><tr><td><strong>bank</strong></td><td>строка</td><td>Название банка, в котором была выпущена карта</td></tr><tr><td><strong>countryCode</strong></td><td>строка</td><td>Код страны в формате Alpha-2 (ISO 3166-1)</td></tr><tr><td><strong>brand</strong></td><td>строка</td><td>Название международной системы, в которой обслуживается карта.</td></tr><tr><td><strong>category</strong></td><td>строка</td><td>Категория карты</td></tr><tr><td><strong>type</strong></td><td>строка</td><td>Тип карты</td></tr><tr><td><strong>bankUrl</strong></td><td>строка</td><td>Url банка</td></tr><tr><td><strong>bankPhone</strong></td><td>строка</td><td>Телефон банка</td></tr></tbody></table>

#### Ошибочный ответ

```json
{
    "error": {
        "message": "По вашему запросу ничего не нашлось.",
        "code": 100
    }
}
```

<table data-header-hidden><thead><tr><th width="151.55556233723956">name</th><th width="122.44439697265625">type</th><th>decription</th></tr></thead><tbody><tr><td><strong>message</strong></td><td>строка</td><td>Информация с описанием ошибки запроса</td></tr><tr><td><strong>code</strong></td><td>строка</td><td>Код ошибки, подробная расшифровка в таблице ниже</td></tr></tbody></table>

**Ошибки:**

<table data-header-hidden><thead><tr><th width="170.66668701171875">name</th><th>decription</th></tr></thead><tbody><tr><td><strong>100</strong></td><td>По вашему запросу ничего не нашлось</td></tr></tbody></table>

**Технические ошибки:**

<table data-header-hidden><thead><tr><th width="169.55560302734375">name</th><th>decription</th></tr></thead><tbody><tr><td><strong>-32000</strong></td><td>Неверные параметры авторизации (логин, секретный ключ)</td></tr><tr><td><strong>-32602</strong></td><td>Неверные параметры запроса</td></tr><tr><td><strong>-32603</strong></td><td>Внутренняя техническая ошибка</td></tr></tbody></table>


---

# 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://help.unitpay.ru/payouts/bin_info.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.
