BimpДовідка

Статті витрат: методи API Bimp

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

МетодЩо робить
POST /org2/expenseItems/api-readListA request to view a list of expense items
POST /org2/expenseItems/api-createA request to create an expense item

api-readList

POST /org2/expenseItems/api-readList

A request to view a list of expense items

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

ПолеТипОпис
[].uuidstring (uuid)
[].namestring
[].expensesGroupstring
[].expensesGroupUuidstring (uuid)Expense group uuid, used as expensesGroup in expenseItems/api-create
[].activityTypestring (uuid)Activity type uuid, used as activityType in expenseItems/api-create
curl -X POST 'https://app.bimpsoft.com/org2/expenseItems/api-readList' \
  -H 'access-token: <токен компанії>'

api-create

POST /org2/expenseItems/api-create

A request to create an expense item

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

ПолеТипОбов’язковеОпис
namestringтакExpense item name
expensesGroupstring (uuid)такExpense group: the expensesGroupUuid value of the /expenseItems/api-readList request
activityTypestring (uuid)Activity type: the activityType value of the /expenseItems/api-readList request. If omitted, the operating activity is set
parentstring (uuid)Parent expense item (“Батьківська стаття витрат” in the form): the uuid of an expense item of the same expense group from the /expenseItems/api-readList request. If omitted, the item is a top-level one in its group
cashFlowItemstringCash flow statement item (shown as “Стаття РГК” in the form). If omitted, the expense item name is used
commentstringAn optional text field for any additional notes or comments related to the document

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

ПолеТипОпис
uuidstring (uuid)A unique uuid key of the created expense item
curl -X POST 'https://app.bimpsoft.com/org2/expenseItems/api-create' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"name":"string","expensesGroup":"00000000-0000-0000-0000-000000000000"}'

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