BimpДовідка

Виробничі завдання: методи API Bimp

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

МетодЩо робить
POST /org2/production-task/api-readA request to obtain detailed information for a particular production task
POST /org2/production-task/api-readListA request to view a list of production tasks
POST /org2/production-task/api-createCreate production tasks from a production order (one task per serial number)
POST /org2/production-task/api-updateA request to update an existing production task

api-read

POST /org2/production-task/api-read

A request to obtain detailed information for a particular production task

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

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

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

ПолеТипОпис
uuidstring (uuid)A unique uuid key for the Production task document
datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
numberstringProduction task number
namestringProduction task name
commentstringAn optional text field for any additional notes or comments related to the document
documentTypestring | numberDocument type code (63)
archivedbooleanWhether the production task is archived
postedbooleanWhether the document is posted
seriesobject | null
nomenclaturestring (uuid)A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
characteristicstring (uuid) | null
specificationstring (uuid) | nullA unique identifier for the Specification, obtainable from the /specification/api-readList request
productionStartDatestring | null
plannedFinishDatestring | null
actualFinishDatestring | null
authorstring (uuid)A unique identifier for the Author, obtainable from the /user/api-readList request
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request
customerOrderstring (uuid) | nullA unique identifier for the Invoice for customer payment, obtainable from the /invoiceForCustomerPayment/api-readList request
productionOrderstring (uuid) | nullA unique identifier for the Production order document, obtainable from the /production-order/api-readList request
banDatestring | null
banUpsertboolean
productionStagesobject[]Production stages of the task
productionStages[].uniqueIdstringRow unique id of the production stage. All material rows reference it, so you must generate and keep it
productionStages[].stageobject | nullProduction stage reference: uuid, name, stageNumber
productionStages[].technologicalOperationobject | nullTechnological operation, taken from the accrual types catalog
productionStages[].performerobject | nullEmployee who performs the stage
productionStages[].productionStatusobject | nullProduction status of the stage with its behaviour flags
productionStages[].semiFinishedProductobject | nullSemi-finished product released at this stage
productionStages[].semiFinishedCharacteristicobject | nullCharacteristic of the semi-finished product
productionStages[].semiFinishedSpecificationstring (uuid) | object | nullSpecification of the semi-finished product
productionStages[].semiFinishedQuantitynumberHow many semi-finished products the stage releases
productionStages[].sumnumberStage amount the piecework salary is calculated from
productionStages[].actualStageStartstring | nullActual stage start, stamped when the status carries the start flag
productionStages[].actualStageEndstring | nullActual stage finish, stamped when the status carries the finish flag
productionStages[].repairsCountnumberRead-only. Replacement and repair rows of this stage, counted by stageId
materialsobject[]Materials of the task
materials[].uniqueIdstringRow unique id of the material line. Replacement and repair rows reference it, so the client must generate and keep it
materials[].relatesTostringuniqueId of the production stage this material belongs to
materials[].nomenclaturestring (uuid)Nomenclature item of the material
materials[].characteristicstring (uuid) | nullCharacteristic of the nomenclature item
materials[].unitstring (uuid)Unit of measurement
materials[].quantitynumberQuantity of the material required for the task
materials[].reservenumberQuantity reserved for the task
materials[].stockBalancenumberRead-only. Stock balance minus reserves on the warehouse
materials[].warehousestring (uuid)Warehouse the material is written off from
materials[].batchobject | nullBatch the material is written off from
materials[].serialNumbersobject[]Serial numbers of this row
materials[].serialNumbers[].uuidstring (uuid)
materials[].serialNumbers[].namestring
materials[].serialNumbers[].imeistring
materials[].serialNumbers[].barcodestring
materials[].writeOffDatestring | nullDate the material was written off
materials[].repairsCountnumberRead-only. Replacement and repair rows of this material, counted by relatesTo
replacementMaterialsobject[]Replacement materials
replacementMaterials[].uniqueIdstringRow unique id of the replacement line. A repair row may reference it through replacesId, so the client must generate and keep it
replacementMaterials[].relatesTostringuniqueId of the material line this part was removed from
replacementMaterials[].stageIdstringuniqueId of the production stage the replacement happened on
replacementMaterials[].nomenclaturestring (uuid)Nomenclature item of the removed part
replacementMaterials[].characteristicstring (uuid) | nullCharacteristic of the nomenclature item
replacementMaterials[].unitstring (uuid)Unit of measurement
replacementMaterials[].quantitynumberQuantity of the removed part
replacementMaterials[].reservenumberQuantity reserved for the task
replacementMaterials[].stockBalancenumberRead-only. Stock balance minus reserves on the warehouse
replacementMaterials[].warehousestring (uuid)Warehouse the part is returned to
replacementMaterials[].batchobject | nullBatch of the removed part
replacementMaterials[].serialNumbersobject[]Serial numbers of this row
replacementMaterials[].serialNumbers[].uuidstring (uuid)
replacementMaterials[].serialNumbers[].namestring
replacementMaterials[].serialNumbers[].imeistring
replacementMaterials[].serialNumbers[].barcodestring
replacementMaterials[].reversalDatestring | nullDate the write-off was reversed
replacementMaterials[].repairStatusobject | nullRepair status of the row with its inWork and isCompleted flags
replacementMaterials[].repairStartstring | nullDate the repair started
replacementMaterials[].repairFinishstring | nullDate the repair finished
replacementMaterials[].repairResponsibleobject | nullEmployee responsible for the repair
replacementMaterials[].repairCommentstringFree-text comment about the repair
replacementMaterials[].repairCostnumberRepair cost. The piecework salary for a finished repair is taken from it
replacementMaterials[].isReplacementbooleanWhether the row is a replacement
repairMaterialsobject[]Repair materials / installed parts
repairMaterials[].uniqueIdstringRow unique id of the repair line. The next link of the replacement chain references it through replacesId, so the client must generate and keep it

Повний перелік полів — у інтерактивній документації.

curl -X POST 'https://app.bimpsoft.com/org2/production-task/api-read' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'

api-readList

POST /org2/production-task/api-readList

A request to view a list of production tasks

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

ПолеТипОбов’язковеОпис
paginationobjectтак
pagination.offsetnumberтакBegin from {offset} elements
pagination.countnumberтакLimit of paginated elemets
filtersobject
filters.searchstringSearch by name, article or serial number
filters.datestring[]Filter by document date range [from, to]
filters.productionStartDatestring[]Filter by production start date range [from, to]
filters.plannedFinishDatestring[]Filter by planned finish date range [from, to]
filters.customerOrderstring (uuid)[]Filter by customer order UUIDs
filters.nomenclaturestring (uuid)[]
filters.seriesstring (uuid)[]
filters.stagestring (uuid)[]
filters.performerstring (uuid)[]
filters.prioritynumber[]
filters.showArchivedboolean

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

ПолеТипОпис
[].uuidstring (uuid)
[].namestring
[].numberstring
[].datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
[].commentstring
[].archivedboolean
[].seriesobject | null
[].nomenclaturestring (uuid)
[].characteristicstring (uuid) | null
[].productionStartDatestring | null
[].plannedFinishDatestring | null
[].actualFinishDatestring | null
[].stageobject | null
[].productionStatusobject | null
[].performerobject | null
[].hasRepairboolean
[].repairStatusobject | null
[].repairResponsibleobject | null
[].repairCommentstring
[].componentsobject[]
[].components[].uuidstring (uuid)
[].components[].namestring
[].components[].quantitynumber
curl -X POST 'https://app.bimpsoft.com/org2/production-task/api-readList' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"pagination":{"offset":0,"count":10}}'

api-create

POST /org2/production-task/api-create

Create production tasks from a production order (one task per serial number)

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

ПолеТипОбов’язковеОпис
productionOrderstring (uuid)такA unique identifier for the Production order document, obtainable from the /production-order/api-readList request
productsobject[]Selected product rows. Omit to take every row and every serial that has no production task yet.
products[].uniqueIdstringтакuniqueId of the production order product row
products[].serialNumbersstring (uuid)[]Serial numbers of this row to create tasks for. Omit to take every serial of the row.

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

ПолеТипОпис
uuidstring (uuid)UUID of the created production task
curl -X POST 'https://app.bimpsoft.com/org2/production-task/api-create' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"productionOrder":"00000000-0000-0000-0000-000000000000"}'

api-update

POST /org2/production-task/api-update

A request to update an existing production task

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

ПолеТипОбов’язковеОпис
uuidstring (uuid)такA unique uuid key for the production task document to update
datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
numberstringProduction task number
namestringProduction task name
commentstringAn optional text field for any additional notes or comments related to the document
archivedbooleanWhether the production task is archived
seriesobject | null
nomenclaturestring (uuid)A unique identifier for the Nomenclature, obtainable from the /nomenclature/api-readList request
characteristicstring (uuid) | null
specificationstring (uuid) | nullA unique identifier for the Specification, obtainable from the /specification/api-readList request
productionStartDatestring | null
plannedFinishDatestring | null
actualFinishDatestring | null
authorstring (uuid)A unique identifier for the Author, obtainable from the /user/api-readList request
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request
customerOrderstring (uuid) | nullA unique identifier for the Invoice for customer payment, obtainable from the /invoiceForCustomerPayment/api-readList request
productionOrderstring (uuid) | nullA unique identifier for the Production order document, obtainable from the /production-order/api-readList request
banDatestring | null
banUpsertboolean
productionStagesobject[]Production stages of the task
productionStages[].uniqueIdstringтакRow unique id of the production stage. All material rows reference it, so you must generate and keep it
productionStages[].stageobject | nullProduction stage reference: uuid, name, stageNumber
productionStages[].technologicalOperationobject | nullTechnological operation, taken from the accrual types catalog
productionStages[].performerobject | nullEmployee who performs the stage
productionStages[].productionStatusobject | nullProduction status of the stage with its behaviour flags
productionStages[].semiFinishedProductobject | nullSemi-finished product released at this stage
productionStages[].semiFinishedCharacteristicobject | nullCharacteristic of the semi-finished product
productionStages[].semiFinishedSpecificationstring (uuid) | object | nullSpecification of the semi-finished product
productionStages[].semiFinishedQuantitynumberHow many semi-finished products the stage releases
productionStages[].sumnumberStage amount the piecework salary is calculated from
productionStages[].actualStageStartstring | nullActual stage start, stamped when the status carries the start flag
productionStages[].actualStageEndstring | nullActual stage finish, stamped when the status carries the finish flag
productionStages[].repairsCountnumberRead-only. Replacement and repair rows of this stage, counted by stageId
materialsobject[]Materials of the task
materials[].uniqueIdstringтакRow unique id of the material line. Replacement and repair rows reference it, so the client must generate and keep it
materials[].relatesTostringтакuniqueId of the production stage this material belongs to
materials[].nomenclaturestring (uuid)такNomenclature item of the material
materials[].characteristicstring (uuid) | nullCharacteristic of the nomenclature item
materials[].unitstring (uuid)Unit of measurement
materials[].quantitynumberтакQuantity of the material required for the task
materials[].reservenumberQuantity reserved for the task
materials[].stockBalancenumberRead-only. Stock balance minus reserves on the warehouse
materials[].warehousestring (uuid)Warehouse the material is written off from
materials[].batchobject | nullBatch the material is written off from
materials[].serialNumbersobject[]Serial numbers of this row
materials[].serialNumbers[].uuidstring (uuid)так
materials[].serialNumbers[].namestring
materials[].serialNumbers[].imeistring
materials[].serialNumbers[].barcodestring
materials[].writeOffDatestring | nullDate the material was written off
materials[].repairsCountnumberRead-only. Replacement and repair rows of this material, counted by relatesTo
replacementMaterialsobject[]Replacement materials
replacementMaterials[].uniqueIdstringтакRow unique id of the replacement line. A repair row may reference it through replacesId, so the client must generate and keep it
replacementMaterials[].relatesTostringтакuniqueId of the material line this part was removed from
replacementMaterials[].stageIdstringтакuniqueId of the production stage the replacement happened on
replacementMaterials[].nomenclaturestring (uuid)такNomenclature item of the removed part
replacementMaterials[].characteristicstring (uuid) | nullCharacteristic of the nomenclature item
replacementMaterials[].unitstring (uuid)Unit of measurement
replacementMaterials[].quantitynumberтакQuantity of the removed part
replacementMaterials[].reservenumberQuantity reserved for the task
replacementMaterials[].stockBalancenumberRead-only. Stock balance minus reserves on the warehouse
replacementMaterials[].warehousestring (uuid)Warehouse the part is returned to
replacementMaterials[].batchobject | nullBatch of the removed part
replacementMaterials[].serialNumbersobject[]Serial numbers of this row
replacementMaterials[].serialNumbers[].uuidstring (uuid)так
replacementMaterials[].serialNumbers[].namestring
replacementMaterials[].serialNumbers[].imeistring
replacementMaterials[].serialNumbers[].barcodestring
replacementMaterials[].reversalDatestring | nullDate the write-off was reversed
replacementMaterials[].repairStatusobject | nullRepair status of the row with its inWork and isCompleted flags
replacementMaterials[].repairStartstring | nullDate the repair started
replacementMaterials[].repairFinishstring | nullDate the repair finished
replacementMaterials[].repairResponsibleobject | nullEmployee responsible for the repair
replacementMaterials[].repairCommentstringFree-text comment about the repair
replacementMaterials[].repairCostnumberRepair cost. The piecework salary for a finished repair is taken from it
replacementMaterials[].isReplacementbooleanWhether the row is a replacement
repairMaterialsobject[]Repair materials / installed parts
repairMaterials[].uniqueIdstringтакRow unique id of the repair line. The next link of the replacement chain references it through replacesId, so the client must generate and keep it
repairMaterials[].relatesTostringтакuniqueId of the material line being repaired. It stays the same along the whole replacement chain
repairMaterials[].stageIdstringтакuniqueId of the production stage the repair happened on
repairMaterials[].replacesIdstringтакuniqueId of the previous link: the replacement row the part was taken from, or the previous repair row when the part is replaced again
repairMaterials[].nomenclaturestring (uuid)такNomenclature item of the installed part
repairMaterials[].characteristicstring (uuid) | nullCharacteristic of the nomenclature item
repairMaterials[].unitstring (uuid)Unit of measurement
repairMaterials[].quantitynumberтакQuantity of the installed part
repairMaterials[].stockBalancenumberRead-only. Stock balance minus reserves on the warehouse
repairMaterials[].warehousestring (uuid)Warehouse the part is taken from
repairMaterials[].batchobject | nullBatch of the installed part
repairMaterials[].serialNumbersobject[]Serial numbers of this row
repairMaterials[].serialNumbers[].uuidstring (uuid)так
repairMaterials[].serialNumbers[].namestring
repairMaterials[].serialNumbers[].imeistring
repairMaterials[].serialNumbers[].barcodestring
repairMaterials[].reversalDatestring | nullDate the write-off was reversed
repairMaterials[].repairStatusobject | nullRepair status of the row with its inWork and isCompleted flags
repairMaterials[].repairStartstring | nullDate the repair started
repairMaterials[].repairFinishstring | nullDate the repair finished
repairMaterials[].repairResponsibleobject | nullEmployee responsible for the repair
repairMaterials[].repairCommentstringFree-text comment about the repair
repairMaterials[].repairCostnumberRepair cost. The piecework salary for a finished repair is taken from it
repairMaterials[].isReplacementbooleanWhether the row is a replacement
externalLinksobject[]External links attached to the document
externalLinks[].linkstringтакExternal link attached to the document

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

ПолеТипОпис
uuidstring (uuid)
pieceworkSalariesstring[]Created piecework salary document names
curl -X POST 'https://app.bimpsoft.com/org2/production-task/api-update' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'

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