Оприбуткування запасів: методи API Bimp
Методи API Bimp для ресурсу «Оприбуткування запасів» (/org2/inventoryPosting/…): 5 методів. Базова адреса: https://app.bimpsoft.com. Усі запити, крім входу, передають токен компанії в заголовку access-token — див. Початок роботи з API.
| Метод | Що робить |
|---|---|
POST /org2/inventoryPosting/api-read | A request to obtain detailed information for a particular inventory posting |
POST /org2/inventoryPosting/api-readList | A request to view a list of inventory posting documents |
POST /org2/inventoryPosting/api-create | A request to create an inventory posting document |
POST /org2/inventoryPosting/api-update | A request to update an existing inventory posting document |
POST /org2/inventoryPosting/api-cancel | Cancel an inventory posting document |
api-read
POST /org2/inventoryPosting/api-read
A request to obtain detailed information for a particular inventory posting
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
uuid | string (uuid) | так |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
uuid | string (uuid) | |
organization | string (uuid) | A unique identifier for the Organization, obtainable from the /organization/api-readList request |
incomeItem | string (uuid) | A unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request |
products | object[] | |
products[].nomenclature | string (uuid) | A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request |
products[].warehouse | string (uuid) | A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request |
products[].quantity | number | The amount of items |
products[].price | number | The price of the item/document |
products[].project | string (uuid) | A unique identifier for the Project, obtainable from the /project/api-readList request |
products[].lineOfBusiness | string (uuid) | A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request |
number | string | The document’s number. Use this field if you need to specify a custom number |
date | string | The document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’) |
comment | string | An optional text field for any additional notes or comments related to the document |
responsible | string (uuid) | A unique identifier for the Employee, obtainable from the /employee/api-readList request |
curl -X POST 'https://app.bimpsoft.com/org2/inventoryPosting/api-read' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"uuid":"00000000-0000-0000-0000-000000000000"}'
api-readList
POST /org2/inventoryPosting/api-readList
A request to view a list of inventory posting documents
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
pagination | object | так | |
pagination.offset | number | так | Begin from {offset} elements |
pagination.count | number | так | Limit of paginated elemets |
filters | object | Filters for inventory posting list. date — period of the document date [begin, end): begin is included, end is not; end can be null | |
filters.comment | string | An optional text field for any additional notes or comments related to the document | |
filters.number | string | The document’s number. Use this field if you need to specify a custom number | |
filters.showArchived | boolean | Whether to show archived documents | |
filters.incomeItems | string (uuid)[] | A unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request | |
filters.organization | string (uuid)[] | A unique identifier for the Organization, obtainable from the /organization/api-readList request | |
filters.responsible | string (uuid)[] | A unique identifier for the Employee, obtainable from the /employee/api-readList request | |
filters.sum | object[] | Sum range [min, max] | |
filters.date | object[] |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
total | number | |
rows | object[] | |
rows[].uuid | string (uuid) | |
rows[].number | string | |
rows[].date | string | |
rows[].comment | string | |
rows[].archived | boolean | |
rows[].sum | number | |
rows[].organization | string (uuid) | |
rows[].incomeItem | string (uuid) | |
rows[].responsible | string (uuid) |
curl -X POST 'https://app.bimpsoft.com/org2/inventoryPosting/api-readList' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"pagination":{"offset":0,"count":10}}'
api-create
POST /org2/inventoryPosting/api-create
A request to create an inventory posting document
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
organization | string (uuid) | так | A unique identifier for the Organization, obtainable from the /organization/api-readList request |
incomeItem | string (uuid) | так | A unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request |
products | object[] | так | |
products[].nomenclature | string (uuid) | так | A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request |
products[].warehouse | string (uuid) | так | A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request |
products[].quantity | number | так | The amount of items |
products[].price | number | так | The price of the item/document |
products[].project | string (uuid) | A unique identifier for the Project, obtainable from the /project/api-readList request | |
products[].lineOfBusiness | string (uuid) | A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request | |
number | string | The document’s number. Use this field if you need to specify a custom number | |
date | string | The document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’) | |
comment | string | An optional text field for any additional notes or comments related to the document | |
responsible | string (uuid) | A unique identifier for the Employee, obtainable from the /employee/api-readList request |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
uuid | string (uuid) |
curl -X POST 'https://app.bimpsoft.com/org2/inventoryPosting/api-create' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"organization":"00000000-0000-0000-0000-000000000000","incomeItem":"00000000-0000-0000-0000-000000000000","products":[{}]}'
api-update
POST /org2/inventoryPosting/api-update
A request to update an existing inventory posting document
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
uuid | string (uuid) | так | |
organization | string (uuid) | так | A unique identifier for the Organization, obtainable from the /organization/api-readList request |
incomeItem | string (uuid) | так | A unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request |
products | object[] | так | |
products[].nomenclature | string (uuid) | так | A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request |
products[].warehouse | string (uuid) | так | A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request |
products[].quantity | number | так | The amount of items |
products[].price | number | так | The price of the item/document |
products[].project | string (uuid) | A unique identifier for the Project, obtainable from the /project/api-readList request | |
products[].lineOfBusiness | string (uuid) | A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request | |
number | string | The document’s number. Use this field if you need to specify a custom number | |
date | string | The document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’) | |
comment | string | An optional text field for any additional notes or comments related to the document | |
responsible | string (uuid) | A unique identifier for the Employee, obtainable from the /employee/api-readList request |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
uuid | string (uuid) |
curl -X POST 'https://app.bimpsoft.com/org2/inventoryPosting/api-update' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"uuid":"00000000-0000-0000-0000-000000000000","organization":"00000000-0000-0000-0000-000000000000","incomeItem":"00000000-0000-0000-0000-000000000000","products":[{}]}'
api-cancel
POST /org2/inventoryPosting/api-cancel
Cancel an inventory posting document
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
uuid | string (uuid) | так | A unique uuid key for the inventory posting document |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
success | boolean (true) |
curl -X POST 'https://app.bimpsoft.com/org2/inventoryPosting/api-cancel' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"uuid":"00000000-0000-0000-0000-000000000000"}'
Інтерактивна документація з можливістю надіслати тестовий запит: https://app.bimpsoft.com/docs. Специфікація OpenAPI оновлюється разом із Bimp; ця сторінка згенерована з неї автоматично.