Склади: методи API Bimp
Методи API Bimp для ресурсу «Склади» (/org2/warehouse/…): 4 методи. Базова адреса: https://app.bimpsoft.com. Усі запити, крім входу, передають токен компанії в заголовку access-token — див. Початок роботи з API.
| Метод | Що робить |
|---|---|
POST /org2/warehouse/api-readList | A request to view a list of warehouses |
POST /org2/warehouse/api-read | A request to obtain detailed information for a particular warehouse |
POST /org2/warehouse/api-create | A request to create a warehouse |
POST /org2/warehouse/api-update | A request to update an existing warehouse |
api-readList
POST /org2/warehouse/api-readList
A request to view a list of warehouses
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
pagination | object | так | |
pagination.offset | number | так | Begin from {offset} elements |
pagination.count | number | так | Limit of paginated elemets |
main | boolean | If specified, filters warehouses by main flag (true = only main, false = only non-main) |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
[].uuid | string (uuid) | |
[].name | string | |
[].main | boolean | Indicates whether this warehouse is marked as main |
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-readList' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"pagination":{"offset":0,"count":10}}'
api-read
POST /org2/warehouse/api-read
A request to obtain detailed information for a particular warehouse
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
uuid | string (uuid) | так | A unique uuid key for the warehouse |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
uuid | string (uuid) | A unique uuid key for the warehouse |
name | string | Warehouse name |
code | string | Warehouse code |
main | boolean | Indicates whether this warehouse is marked as main |
archived | boolean | Whether the warehouse is archived |
active | boolean | Whether the warehouse is active |
publicWarehouse | boolean | Whether the warehouse is public |
predefined | boolean | Whether the warehouse is a system/predefined one |
type | number | Warehouse type |
comment | string | An optional text field for any additional notes or comments related to the document |
address | string | Warehouse address |
lineOfBusiness | string (uuid) | A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request |
priceList | string (uuid) | A unique identifier for the Price List, obtainable from the /priceList/api-readList request |
cashRegister | string (uuid) | The unique identifier for the payment entity type, obtainable from the /bankAccounts/api-readList request OR from /cashRegistry/api-readList request |
parent | string (uuid) | A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request |
responsible | string (uuid) | A unique identifier for the Employee, obtainable from the /employee/api-readList request |
counterparty | string (uuid) | A unique identifier for the Counterparty, obtainable from the /counterparty/api-readList request |
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-read' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"uuid":"00000000-0000-0000-0000-000000000000"}'
api-create
POST /org2/warehouse/api-create
A request to create a warehouse
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
name | string | так | Warehouse name |
main | boolean | Indicates whether this warehouse is marked as main | |
archived | boolean | Whether the warehouse is archived | |
active | boolean | Whether the warehouse is active | |
publicWarehouse | boolean | Whether the warehouse is public | |
type | number | Warehouse type | |
comment | string | An optional text field for any additional notes or comments related to the document | |
address | string | Warehouse address | |
lineOfBusiness | string (uuid) | A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request | |
priceList | string (uuid) | A unique identifier for the Price List, obtainable from the /priceList/api-readList request | |
cashRegister | string (uuid) | The unique identifier for the payment entity type, obtainable from the /bankAccounts/api-readList request OR from /cashRegistry/api-readList request | |
parent | string (uuid) | A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request | |
responsible | string (uuid) | A unique identifier for the Employee, obtainable from the /employee/api-readList request | |
counterparty | string (uuid) | A unique identifier for the Counterparty, obtainable from the /counterparty/api-readList request |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
uuid | string (uuid) |
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-create' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"name":"string"}'
api-update
POST /org2/warehouse/api-update
A request to update an existing warehouse
Тіло запиту (JSON)
| Поле | Тип | Обов’язкове | Опис |
|---|---|---|---|
uuid | string (uuid) | так | A unique uuid key for the warehouse |
name | string | Warehouse name | |
main | boolean | Indicates whether this warehouse is marked as main | |
archived | boolean | Whether the warehouse is archived | |
active | boolean | Whether the warehouse is active | |
publicWarehouse | boolean | Whether the warehouse is public | |
type | number | Warehouse type | |
comment | string | An optional text field for any additional notes or comments related to the document | |
address | string | Warehouse address | |
lineOfBusiness | string (uuid) | A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request | |
priceList | string (uuid) | A unique identifier for the Price List, obtainable from the /priceList/api-readList request | |
cashRegister | string (uuid) | The unique identifier for the payment entity type, obtainable from the /bankAccounts/api-readList request OR from /cashRegistry/api-readList request | |
parent | string (uuid) | A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request | |
responsible | string (uuid) | A unique identifier for the Employee, obtainable from the /employee/api-readList request | |
counterparty | string (uuid) | A unique identifier for the Counterparty, obtainable from the /counterparty/api-readList request |
Відповідь: поле data
| Поле | Тип | Опис |
|---|---|---|
uuid | string (uuid) |
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-update' \
-H 'access-token: <токен компанії>' \
-H 'Content-Type: application/json' \
-d '{"uuid":"00000000-0000-0000-0000-000000000000"}'
Інтерактивна документація з можливістю надіслати тестовий запит: https://app.bimpsoft.com/docs. Специфікація OpenAPI оновлюється разом із Bimp; ця сторінка згенерована з неї автоматично.