BimpДовідка

Оприбуткування запасів: методи API Bimp

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

МетодЩо робить
POST /org2/inventoryPosting/api-readA request to obtain detailed information for a particular inventory posting
POST /org2/inventoryPosting/api-readListA request to view a list of inventory posting documents
POST /org2/inventoryPosting/api-createA request to create an inventory posting document
POST /org2/inventoryPosting/api-updateA request to update an existing inventory posting document
POST /org2/inventoryPosting/api-cancelCancel an inventory posting document

api-read

POST /org2/inventoryPosting/api-read

A request to obtain detailed information for a particular inventory posting

Тіло запиту (JSON)

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

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

ПолеТипОпис
uuidstring (uuid)
organizationstring (uuid)A unique identifier for the Organization, obtainable from the /organization/api-readList request
incomeItemstring (uuid)A unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request
productsobject[]
products[].nomenclaturestring (uuid)A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
products[].warehousestring (uuid)A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
products[].quantitynumberThe amount of items
products[].pricenumberThe price of the item/document
products[].projectstring (uuid)A unique identifier for the Project, obtainable from the /project/api-readList request
products[].lineOfBusinessstring (uuid)A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request
numberstringThe document’s number. Use this field if you need to specify a custom number
datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
commentstringAn optional text field for any additional notes or comments related to the document
responsiblestring (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)

ПолеТипОбов’язковеОпис
paginationobjectтак
pagination.offsetnumberтакBegin from {offset} elements
pagination.countnumberтакLimit of paginated elemets
filtersobjectFilters for inventory posting list. date — period of the document date [begin, end): begin is included, end is not; end can be null
filters.commentstringAn optional text field for any additional notes or comments related to the document
filters.numberstringThe document’s number. Use this field if you need to specify a custom number
filters.showArchivedbooleanWhether to show archived documents
filters.incomeItemsstring (uuid)[]A unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request
filters.organizationstring (uuid)[]A unique identifier for the Organization, obtainable from the /organization/api-readList request
filters.responsiblestring (uuid)[]A unique identifier for the Employee, obtainable from the /employee/api-readList request
filters.sumobject[]Sum range [min, max]
filters.dateobject[]

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

ПолеТипОпис
totalnumber
rowsobject[]
rows[].uuidstring (uuid)
rows[].numberstring
rows[].datestring
rows[].commentstring
rows[].archivedboolean
rows[].sumnumber
rows[].organizationstring (uuid)
rows[].incomeItemstring (uuid)
rows[].responsiblestring (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)

ПолеТипОбов’язковеОпис
organizationstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
incomeItemstring (uuid)такA unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request
productsobject[]так
products[].nomenclaturestring (uuid)такA unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
products[].warehousestring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
products[].quantitynumberтакThe amount of items
products[].pricenumberтакThe price of the item/document
products[].projectstring (uuid)A unique identifier for the Project, obtainable from the /project/api-readList request
products[].lineOfBusinessstring (uuid)A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request
numberstringThe document’s number. Use this field if you need to specify a custom number
datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
commentstringAn optional text field for any additional notes or comments related to the document
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request

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

ПолеТипОпис
uuidstring (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)

ПолеТипОбов’язковеОпис
uuidstring (uuid)так
organizationstring (uuid)такA unique identifier for the Organization, obtainable from the /organization/api-readList request
incomeItemstring (uuid)такA unique identifier for the Income Item, obtainable from the /incomeItems/api-readList request
productsobject[]так
products[].nomenclaturestring (uuid)такA unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
products[].warehousestring (uuid)такA unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
products[].quantitynumberтакThe amount of items
products[].pricenumberтакThe price of the item/document
products[].projectstring (uuid)A unique identifier for the Project, obtainable from the /project/api-readList request
products[].lineOfBusinessstring (uuid)A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request
numberstringThe document’s number. Use this field if you need to specify a custom number
datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
commentstringAn optional text field for any additional notes or comments related to the document
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request

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

ПолеТипОпис
uuidstring (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)

ПолеТипОбов’язковеОпис
uuidstring (uuid)такA unique uuid key for the inventory posting document

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

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