GET POST | /ProductBOM/ProductBOMGet | Gets information on a product's bill of materials. | Uses your API Key and some Filters in an array format and returns the search results using the given filters.
Optionally, you can use ReturnTopNRecords to limit the number of the results to the specified number (omit, or add ReturnTopNRecords = -1 to get all the available results). The ReturnTopNRecords chooses the top records in a ProductId descending order.
A. Return the first two mvProductBOMs objects whose product SKU contains the the characters "11". The results are returned as mvProductBOMs objects.
Value: {
"Filters": [
{
"FieldName": "Productsku",
"SearchOperator": "Contains",
"SearchValue": "11"
}
],
"ReturnTopNRecords": 2
}
Response: {
"mvProductBOMs": [
{
"ProductID": 27412,
"ProductSKU": "prod111",
"mvRawMaterials": [
{
"ProductID": 27396,
"ProductSKU": "PROD11",
"ProductDescription": "PROD11",
"RawMaterialQuantity": 2
}
]
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|
---|