With the release of AccountRight 2022.3, we have made some changes to the endpoint /{cf_uri}/Inventory/Item. MYOB AccountRight hosts the complete auto build function which work is ongoing to extend this to the MYOB Business API.
Method | Version |
GET | 2022.3 |
PUT | Coming soon |
POST | Coming soon |
What this means is that the Bill of Materials filter is now supported on the Item endpoint. In order to GET the Bill of Materials for a list of items, you simply need to as the following filter on to the endpoint.
- All items: /Inventory/Item/?$expand=BillOfMaterials
With the release of AccountRight 2022.4, you can now GET the Bill of Materials for a single item with the following endpoint:
Request example:
"BillOfMaterials": {
"Quantity": 1,
"MinimumRestockLevel": 1,
"Items": [
{
"Quantity": 1,
"Item": {
"UID": "d5ab0fd1-3bf4-4230-bbaf-90b26ea9afda",
"Number": "345",
"Name": "Flour",
"URI": "{cf_uri}/Inventory/Item/d5ab0fd1-3bf4-4230-bbaf-90b26ea9afda"
}
},
{
"Quantity": 2,
"Item": {
"UID": "d5ab0fd1-3bf4-4230-bbaf-90b26ea9afda",
"Number": "345",
"Name": "Egg",
"URI": "{cf_uri}/Inventory/Item/d5ab0fd1-3bf4-4230-bbaf-90b26ea9afda"
}
}
]
}
If an Item BOM list is empty, the Items property of the BillOfMaterials will be an empty array
Note: BOM = Bill of materials
Comments
0 comments
Article is closed for comments.