查询bom
POST
/api/open/v2/boms/query
请求参数
Body 参数application/json
body
必需
Any of
conditions
array[object (BomQueryParam) {2}] | null
查询条件
示例
{
"body": {
"conditions": [
{
"itemCode": "string", // 物料编号
"bomVersion": "string" // bom版本
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://c2.xinheyun.com/api/open/v2/boms/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"conditions": [
{
"itemCode": "string", // 物料编号
"bomVersion": "string" // bom版本
}
]
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
object (ListResponseDataBomQueryListDTO)
可选
list
array[object (BomQueryListDTO) {3}]
可选
示例
{
"code": 0,
"message": "",
"data": {
"list": [
{
"parentItem": {
"code": "",
"name": "",
"type": "",
"category": "",
"itemSpecs": [
{
"specName": "",
"specValue": ""
}
],
"itemUnit": {
"baseUnit": "",
"inventoryUnit": "",
"inventoryToBaseQuantity": 0,
"baseToInventoryQuantity": 0,
"productionUnit": "",
"productionToBaseQuantity": 0,
"baseToProductionQuantity": 0,
"jbkUnit": "",
"productionToJbkQuantity": 0,
"jbkToProductionQuantity": 0,
"saleUnit": "",
"saleToBaseQuantity": 0,
"baseToSaleQuantity": 0,
"purchaseUnit": "",
"purchaseToBaseQuantity": 0,
"baseToPurchaseQuantity": 0
}
},
"bomVersion": "",
"bomComponents": [
{
"componentItem": {
"code": "",
"name": "",
"type": "",
"category": "",
"itemSpecs": [
{
"specName": "",
"specValue": ""
}
],
"itemUnit": {
"baseUnit": "",
"inventoryUnit": "",
"inventoryToBaseQuantity": 0,
"baseToInventoryQuantity": 0,
"productionUnit": "",
"productionToBaseQuantity": 0,
"baseToProductionQuantity": 0,
"jbkUnit": "",
"productionToJbkQuantity": 0,
"jbkToProductionQuantity": 0,
"saleUnit": "",
"saleToBaseQuantity": 0,
"baseToSaleQuantity": 0,
"purchaseUnit": "",
"purchaseToBaseQuantity": 0,
"baseToPurchaseQuantity": 0
}
},
"parentRateQty": 0,
"componentRateQty": 0,
"attritionRate": 0,
"bottom": ""
}
]
}
]
}
}