BimpДовідка

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

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

МетодЩо робить
POST /org2/accounts/api-readListA 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)

ПолеТипОбов’язковеОпис
codesstring[]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

ПолеТипОпис
[].uuidstring (uuid)A unique identifier of the account
[].codestringAccount code, e.g. “23”
[].namestringAccount name with its code, e.g. “23 Незавершене виробництво”
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. Специфікація OpenAPI оновлюється разом із Bimp; ця сторінка згенерована з неї автоматично.