It allows you:
to get the product BOM of a product
to create a new product BOM for one product
to update a product BOM for one product
to delete a product BOM for one product if it is allowed.
Actions can be done:
list
insert
update
delete
URL: https://api.socratecloud.com/webapi/rest/BOM/list_full/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Columns that can be used as filters:
Product_ID (BOM of product M_Product_ID)
Product - who has this BOM
ProductName - name of product
Active (of product BOM - M_BOM_ID)
BOMType
BOMUse
Name - BOM name
Organization - the organization of BOM.
Return: JSON object with next format:
{
"data": [
{
"Organization": "TESTHORIA SRL",
"BOM_ID": 1006329,
"BOMType": "A",
"BOMUse": "A",
"Created": "2024-07-29 09:56:13+0000",
"CreatedBy": "Tibi",
"Description": null,
"Help": null,
"Active": true,
"ExplodeOnlyStandard": false,
"Product_ID": 1174040,
"ProductName": "Articol 1101",
"Product": "art 1101",
"Name": "Reteta test 1",
"Updated": "2024-08-02 13:44:13+0000",
"UpdatedBy": "Tibi",
"BOMProducts": [
{
"Organization": "TESTHORIA SRL",
"BasisType": "I",
"BOMProductType": "S",
"BOMQty": 3,
"Created": "2024-07-29 09:56:19+0000",
"CreatedBy": "Tibi",
"Description": null,
"Deviation": 0.2,
"Help": null,
"Active": true,
"IsPhantom": false,
"Line": 10,
"BOMProduct_ID": 1019678,
"ProductBOM_ID": 1168638,
"ProductNameBOM": "Articol cu lot, expirare și atribute dinamice",
"ProductBOM": "ART 103",
"ProductBOMVersion": null,
"ProductBOMVersion_ID": null,
"OperationSeqNo": 10,
"SupplyType": "P",
"Updated": "2024-08-02 13:43:39+0000",
"UpdatedBy": "Tibi"
},
{
"Organization": "TESTHORIA SRL",
"BasisType": "I",
"BOMProductType": "S",
"BOMQty": 2,
"Created": "2024-07-29 10:12:10+0000",
"CreatedBy": "Tibi",
"Description": null,
"Deviation": 0,
"Help": null,
"Active": true,
"IsPhantom": false,
"Line": 20,
"BOMProduct_ID": 1019679,
"ProductBOM_ID": 1168637,
"ProductNameBOM": "Articol cu lot și expirare",
"ProductBOM": "ART 102",
"ProductBOMVersion": null,
"ProductBOMVersion_ID": null,
"OperationSeqNo": 10,
"SupplyType": "P",
"Updated": "2024-08-02 13:43:51+0000",
"UpdatedBy": "Tibi"
}
]
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/BOM/create/{version}
Method: POST
Return:
{
"data": "Reteta test 1",
"id": null
}
Data format:
{
"Organization": "TESTHORIA SRL",
"BOMType": "A",
"BOMUse": "A",
"Description": null,
"Help": null,
"Active": true,
"ExplodeOnlyStandard": false,
"Product_ID": 1174040,
"ProductName": "Articol 1101",
"Product": "art 1101",
"Name": "Reteta test 1",
"BOMProducts": [
{
"Organization": "TESTHORIA SRL",
"BasisType": "I",
"BOMProductType": "S",
"BOMQty": 3,
"Description": null,
"Deviation": 0.2,
"Help": null,
"Active": true,
"IsPhantom": false,
"Line": 10,
"ProductBOM_ID": 1168638,
"ProductNameBOM": "Articol cu lot, expirare și atribute dinamice",
"ProductBOM": "ART 103",
"ProductBOMVersion": null,
"ProductBOMVersion_ID": null,
"OperationSeqNo": 10,
"SupplyType": "P"
},
{
"Organization": "TESTHORIA SRL",
"BasisType": "I",
"BOMProductType": "S",
"BOMQty": 2,
"Description": null,
"Deviation": 0,
"Help": null,
"Active": true,
"IsPhantom": false,
"Line": 20,
"ProductBOM_ID": 1168637,
"ProductNameBOM": "Articol cu lot și expirare",
"ProductBOM": "ART 102",
"ProductBOMVersion": null,
"ProductBOMVersion_ID": null,
"OperationSeqNo": 10,
"SupplyType": "P"
}
]
}
URL: https://api.socratecloud.com/webapi/rest/BOM/update/{version}?Name={name}&BOM_ID={id}
Method: POST
Return:
{
"data": "Reteta test 1",
"id": null
}
Data format:
{
"Organization": "TESTHORIA SRL",
"BOMType": "A",
"BOMUse": "A",
"Description": null,
"Help": null,
"Active": true,
"ExplodeOnlyStandard": false,
"Product_ID": 1174040,
"ProductName": "Articol 1101",
"Product": "art 1101",
"Name": "Reteta test 1",
"BOMProducts": [
{
"Organization": "TESTHORIA SRL",
"BasisType": "I",
"BOMProductType": "S",
"BOMQty": 30,
"Description": null,
"Deviation": 0.8,
"Help": null,
"Active": true,
"IsPhantom": false,
"Line": 10,
"ProductBOM_ID": 1168638,
"ProductNameBOM": "Articol cu lot, expirare și atribute dinamice",
"ProductBOM": "ART 103",
"ProductBOMVersion": null,
"ProductBOMVersion_ID": null,
"OperationSeqNo": 10,
"SupplyType": "P"
},
{
"Organization": "TESTHORIA SRL",
"BasisType": "I",
"BOMProductType": "S",
"BOMQty": 2,
"Description": null,
"Deviation": 1,
"Help": null,
"Active": true,
"IsPhantom": false,
"Line": 20,
"ProductBOM_ID": 1168637,
"ProductNameBOM": "Articol cu lot și expirare",
"ProductBOM": "ART 102",
"ProductBOMVersion": null,
"ProductBOMVersion_ID": null,
"OperationSeqNo": 10,
"SupplyType": "P"
}
]
}
URL: https://api.socratecloud.com/webapi/rest/BOM/delete/{version}?Name={name}&BOM_ID={id}
Method: POST
Return:
{
"data": "Deleted",
"id": 1006329
}