BimpДовідка

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

Методи API Bimp для ресурсу «Залишки і комплекти» (/org2/inventory/…): 8 методів. Базова адреса: 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.
POST /org2/inventory/api-readMovementsStock movements for a period: every receipt and expense of every document (purchase, sale, write-off, posting, movement, assembly and others) by warehouse and nomenclature, with quantity and cost.
POST /org2/inventory/api-readTurnoversBalances and turnovers for a period by warehouse and nomenclature: opening balance, receipt, sale, write-off, transfer and closing balance in quantity and cost — as in the «Inventories movements» report.
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-readMovements

POST /org2/inventory/api-readMovements

Stock movements for a period: every receipt and expense of every document (purchase, sale, write-off, posting, movement, assembly and others) by warehouse and nomenclature, with quantity and cost.

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

ПолеТипОпис
[].datestringDate of the movement (UTC)
[].documentobject
[].document.uuidstring (uuid) | null
[].document.numberstring | null
[].document.typestring (“purchaseInvoice”) | string (“enteringOpeningBalances”) | string (“inventoryPosting”) | string (“receivingForSale”) | string (“productionAssembly”) | string (“productionDisassembly”) | string (“productionTask”) | string (“salesInvoice”) | string (“cashRegisterReceipt”) | string (“refundFromCustomer”) | string (“writeOffOfInventories”) | string (“putUnderAccounting”) | string (“refundSupplier”) | string (“movementOfInventories”) | string (“transferForSale”) | string (“reportForSale”) | string (“extraExpenses”) | string (“pieceworkSalary”) | string (“expensesDistribution”) | null
[].warehouseobject
[].warehouse.uuidstring (uuid)
[].warehouse.namestring
[].nomenclatureobject
[].nomenclature.uuidstring (uuid)
[].nomenclature.namestring
[].nomenclature.parentobject | nullFor a modification — the nomenclature it belongs to; null otherwise
[].quantitynumberQuantity: positive — receipt, negative — expense
[].costnumber | nullCost (from the stock cost accounting), rounded to 2 digits; null if the user has no access to the cost of goods. Same sign as quantity
curl -X POST 'https://app.bimpsoft.com/org2/inventory/api-readMovements' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{}'

api-readTurnovers

POST /org2/inventory/api-readTurnovers

Balances and turnovers for a period by warehouse and nomenclature: opening balance, receipt, sale, write-off, transfer and closing balance in quantity and cost — as in the «Inventories movements» report.

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

ПолеТипОпис
[].warehouseobject
[].warehouse.uuidstring (uuid)
[].warehouse.namestring
[].nomenclatureobject
[].nomenclature.uuidstring (uuid)
[].nomenclature.namestring
[].nomenclature.parentobject | nullFor a modification — the nomenclature it belongs to; null otherwise
[].quantityobjectQuantity
[].quantity.openingnumberBalance at the start of dateFrom
[].quantity.receiptnumberReceipts: purchases, opening balances, postings, customer returns, receiving for sale, production
[].quantity.salenumberSales: sales invoices, receipts, sales reports
[].quantity.writeOffnumberWrite-offs: write-offs, production consumption, returns to supplier, putting under accounting
[].quantity.transfernumberNet movement between warehouses and transfer for sale: negative on the sender, positive on the receiver
[].quantity.closingnumberBalance at the end of dateTo = opening + receipt − sale − writeOff + transfer
[].costobject | null
curl -X POST 'https://app.bimpsoft.com/org2/inventory/api-readTurnovers' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{}'

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; ця сторінка згенерована з неї автоматично.