BimpДовідка

Залишки і комплекти: методи API Bimp

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

МетодЩо робить
GET /org2/inventory/api-readListGet inventory balances with pagination and dynamic sorting. Optimized for table interfaces with protection against deep pagination.
GET /org2/inventory/api-readList/cursorGet inventory balances using cursor-based pagination for infinite scroll.
GET /org2/inventory/api-read/{productHex}/stockGet current stock and reserves for a specific product by its hex identifier. Used for checking product availability before placing an order.
GET /org2/inventory/kits/api-readListGet available kit quantities calculated from component stock. Uses offset pagination with max limit of 2000 kits. For larger datasets, use cursor pagination endpoint.
GET /org2/inventory/kits/api-readList/cursorGet available kit quantities using cursor-based pagination. Optimized for large datasets (2000+ kits) with instant performance at any depth. Use this endpoint when the total number of kits exceeds 2000.
GET /org2/inventory/kits/{kitGuid}/componentsGet kit components (table part) for a given kit by its GUID. Returns kit fields (name, code, description) and list of components with their quantities.

api-readList

GET /org2/inventory/api-readList

Get inventory balances with pagination and dynamic sorting. Optimized for table interfaces with protection against deep pagination.

Параметри запиту (query/path)

ПолеТипОбов’язковеОпис
orgIdstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
warehouseIdstring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
pageintegerPage number
pageSizeintegerNumber of items per page
sortBystring (“productId”) | string (“quantity”) | string (“reserved”) | string (“available”)Field to sort by
sortDirectionstring (“asc”) | string (“desc”)Sort direction
byBatchesboolean | string (“true”) | string (“false”)When true, balances are split by batch. Each row includes batchId.

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

ПолеТипОпис
[].productIdstring (uuid)A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
[].barcodestringProduct barcode. May be empty for products without barcode.
[].articlestring | null
[].quantitynumberTotal quantity in stock
[].reservednumberReserved quantity
[].availablenumberAvailable quantity (quantity - reserved)
[].batchIdstring (uuid) | null
curl -X GET 'https://app.bimpsoft.com/org2/inventory/api-readList' \
  -H 'access-token: <токен компанії>'

api-readList/cursor

GET /org2/inventory/api-readList/cursor

Get inventory balances using cursor-based pagination for infinite scroll.

Параметри запиту (query/path)

ПолеТипОбов’язковеОпис
orgIdstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
warehouseIdstring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
lastIdstring (uuid)ID of the last item from previous response (for cursor pagination)
limitintegerNumber of items to return
byBatchesboolean | string (“true”) | string (“false”)When true, one row per product batch
lastBatchIdstring (uuid)When byBatches is enabled, pass the batchId from the last row of the previous page (next_cursor_batch_id). Omit if that row had batchId null.

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

ПолеТипОпис
itemsobject[]
items[].productIdstring (uuid)A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
items[].barcodestringProduct barcode. May be empty for products without barcode.
items[].articlestring | null
items[].quantitynumberTotal quantity in stock
items[].reservednumberReserved quantity
items[].availablenumberAvailable quantity (quantity - reserved)
items[].batchIdstring (uuid) | null
next_cursorstring (uuid)ID of the last item in the response (for next page)
next_cursor_batch_idstring (uuid) | null
curl -X GET 'https://app.bimpsoft.com/org2/inventory/api-readList/cursor' \
  -H 'access-token: <токен компанії>'

api-read/{productHex}/stock

GET /org2/inventory/api-read/{productHex}/stock

Get current stock and reserves for a specific product by its hex identifier. Used for checking product availability before placing an order.

Параметри запиту (query/path)

ПолеТипОбов’язковеОпис
orgIdstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
warehouseIdstring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
productHexstringтакProduct identifier in hex format (e.g., 0x8934A1B2C3D4E5F6)

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

ПолеТипОпис
product_hexstringProduct identifier in hex format
available_quantitynumberAvailable quantity (quantity - reserved)
reserved_quantitynumberReserved quantity
last_updatedstring (date-time)Last update timestamp
curl -X GET 'https://app.bimpsoft.com/org2/inventory/api-read/{productHex}/stock' \
  -H 'access-token: <токен компанії>'

kits/api-readList

GET /org2/inventory/kits/api-readList

Get available kit quantities calculated from component stock. Uses offset pagination with max limit of 2000 kits. For larger datasets, use cursor pagination endpoint.

Параметри запиту (query/path)

ПолеТипОбов’язковеОпис
orgIdstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
warehouseStockstring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request for stock
warehouseReservestring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request for reserves
pageintegerPage number
pageSizeintegerNumber of items per page

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

ПолеТипОпис
[].idstring (uuid)Kit unique identifier
[].barcodestringKit barcode. May be empty for kits without barcode.
[].articlestringKit article (SKU). May be null for kits without article.
[].quantitynumberAvailable kit quantity calculated from component free stock
[].physicalnumberPhysical kit quantity calculated from component physical stock
curl -X GET 'https://app.bimpsoft.com/org2/inventory/kits/api-readList' \
  -H 'access-token: <токен компанії>'

kits/api-readList/cursor

GET /org2/inventory/kits/api-readList/cursor

Get available kit quantities using cursor-based pagination. Optimized for large datasets (2000+ kits) with instant performance at any depth. Use this endpoint when the total number of kits exceeds 2000.

Параметри запиту (query/path)

ПолеТипОбов’язковеОпис
orgIdstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
warehouseStockstring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request for stock
warehouseReservestring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request for reserves
lastIdstring (uuid)ID of the last kit from previous response (for cursor pagination)
limitintegerNumber of items to return

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

ПолеТипОпис
itemsobject[]
items[].idstring (uuid)Kit unique identifier
items[].barcodestringKit barcode. May be empty for kits without barcode.
items[].articlestringKit article (SKU). May be null for kits without article.
items[].quantitynumberAvailable kit quantity calculated from component free stock
items[].physicalnumberPhysical kit quantity calculated from component physical stock
next_cursorstring (uuid)ID of the last item in the response (for next page)
curl -X GET 'https://app.bimpsoft.com/org2/inventory/kits/api-readList/cursor' \
  -H 'access-token: <токен компанії>'

kits/{kitGuid}/components

GET /org2/inventory/kits/{kitGuid}/components

Get kit components (table part) for a given kit by its GUID. Returns kit fields (name, code, description) and list of components with their quantities.

Параметри запиту (query/path)

ПолеТипОбов’язковеОпис
kitGuidstring (uuid)такKit unique identifier

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

ПолеТипОпис
kitGuidstring (uuid)Kit unique identifier
kitFieldsobject
kitFields.namestringKit name
kitFields.codestringKit code
kitFields.descriptionstringKit description
componentsobject[]
components[].componentGuidstring (uuid)Component unique identifier
components[].quantitynumberQuantity of component in the kit
curl -X GET 'https://app.bimpsoft.com/org2/inventory/kits/{kitGuid}/components' \
  -H 'access-token: <токен компанії>'

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