# Рахунки обліку: методи API Bimp

URL: https://bimpsoft.com/help/developers/api-reference/accounts/

Методи API Bimp для ресурсу «Рахунки обліку» (`/org2/accounts/…`): 1 метод. Базова адреса: `https://app.bimpsoft.com`. Усі запити, крім входу, передають токен компанії в заголовку `access-token` — див. [Початок роботи з API](/help/developers/api-getting-started/).

| Метод | Що робить |
|---|---|
| [`POST /org2/accounts/api-readList`](#api-read-list) | A request to obtain the chart of accounts: accounts with their codes. Use it for the expense account (account) of a movement of inventories with operation type 2 (cost price) — accounts 23 or 25 — and for the write-off account of an inventory write-off |

## api-readList

`POST /org2/accounts/api-readList`

A request to obtain the chart of accounts: accounts with their codes. Use it for the expense account (account) of a movement of inventories with operation type 2 (cost price) — accounts 23 or 25 — and for the write-off account of an inventory write-off

**Тіло запиту (JSON)**

| Поле | Тип | Обов'язкове | Опис |
|---|---|---|---|
| `codes` | string[] |  | Return only accounts with these codes, e.g. ["23", "25"] — the expense accounts of a movement of inventories with operation type 2 (cost price) |

**Відповідь: поле `data`**

| Поле | Тип | Опис |
|---|---|---|
| `[].uuid` | string (uuid) | A unique identifier of the account |
| `[].code` | string | Account code, e.g. "23" |
| `[].name` | string | Account name with its code, e.g. "23 Незавершене виробництво" |

```bash
curl -X POST 'https://app.bimpsoft.com/org2/accounts/api-readList' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"codes":["string"]}'
```

Інтерактивна документація з можливістю надіслати тестовий запит: [https://app.bimpsoft.com/docs](https://app.bimpsoft.com/docs). Специфікація OpenAPI оновлюється разом із Bimp; ця сторінка згенерована з неї автоматично.
