bom.search
bom.search(null|object $filters = null, null|array $options = null)
Retrieve list of BOMs.
null
- Retrieve list of all BOMs.object
- Retrieve list of BOMs using specified Search Filters.
Allowed properties for filtering: “product_bom_id”, “sku”, “name”, “yield_qty”, “is_kit_on_demand”, “is_kit_to_stock”, “assembly_instructions”, “priority”.null
- No options will be applied.object
- Apply specified Search Options.code | message |
---|---|
104 | Invalid filters given. Details in error message. |
bom.create
bom.create (object $bomData)
Create new BOM.
code | message |
---|---|
102 | Invalid data given. Details in error message. |
105 | Product does not exist. |
bom.update
bom.update (int $bomId, object $bomData)
Update BOM data.
true
if BOM was successfully updated.
bom.delete
bom.delete (int $bomId)
Delete a BOM. A BOM can only be deleted if it is not currently in use by any sales orders or deliveries.
true
if BOM was successfully deleted.
code | message |
---|---|
101 | BOM does not exist. |