Expense items: Bimp API methods
Bimp API methods for the “Expense items” resource (/org2/expenseItems/…): 2 methods. Base URL: https://app.bimpsoft.com. All requests except login pass the company token in the access-token header — see Getting started with the API.
| Method | What it does |
|---|---|
POST /org2/expenseItems/api-readList | A request to view a list of expense items |
POST /org2/expenseItems/api-create | A request to create an expense item |
api-readList
POST /org2/expenseItems/api-readList
A request to view a list of expense items
Response: data field
| Field | Type | Description |
|---|---|---|
[].uuid | string (uuid) | |
[].name | string | |
[].expensesGroup | string | |
[].expensesGroupUuid | string (uuid) | Expense group uuid, used as expensesGroup in expenseItems/api-create |
[].activityType | string (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: <company token>'
api-create
POST /org2/expenseItems/api-create
A request to create an expense item
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | Expense item name |
expensesGroup | string (uuid) | yes | Expense group: the expensesGroupUuid value of the /expenseItems/api-readList request |
activityType | string (uuid) | Activity type: the activityType value of the /expenseItems/api-readList request. If omitted, the operating activity is set | |
parent | string (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 | |
cashFlowItem | string | Cash flow statement item (shown as “Стаття РГК” in the form). If omitted, the expense item name is used | |
comment | string | An optional text field for any additional notes or comments related to the document |
Response: data field
| Field | Type | Description |
|---|---|---|
uuid | string (uuid) | A unique uuid key of the created expense item |
curl -X POST 'https://app.bimpsoft.com/org2/expenseItems/api-create' \
-H 'access-token: <company token>' \
-H 'Content-Type: application/json' \
-d '{"name":"string","expensesGroup":"00000000-0000-0000-0000-000000000000"}'
Interactive documentation with a test request option: https://app.bimpsoft.com/docs. The OpenAPI specification is updated together with Bimp; this page is generated from it automatically.