Skip to content

Bill of Materials

Returns the BOM recipe for each finished good SKU — which raw materials compose it and in what quantities.

GET/api/v1/bill-of-materials
ParameterTypeDefaultDescription
formatstringjsonResponse format: json or excel
limitinteger1000Max items per page (JSON only, 1–5000)
offsetinteger0Pagination offset (JSON only)
sku_idsarray-Filter by parent finished good SKU IDs (Excel format only)
Terminal window
curl -X GET "https://api.prediko.io/api/v1/bill-of-materials?limit=100" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"sku_name": "KingsF-Con",
"unit_cost": 2.45,
"production_time": 3,
"bom": [
{
"raw_material_name": "DB-GD-DST",
"raw_material_quantity": 0.00034
},
{
"raw_material_name": "BT-240ML-SQ",
"raw_material_quantity": 1.0
}
]
}
],
"pagination": {
"total": 234,
"limit": 1000,
"offset": 0,
"has_more": false
}
}
FieldTypeDescription
dataarrayList of BOM entries
paginationobjectPagination metadata
FieldTypeDescription
sku_namestringName of the finished good SKU
unit_costnumber | nullUnit cost of the finished good (BOM cost or unit cost)
production_timeinteger | nullProduction lead time in days
bomarrayList of raw material components in the recipe
FieldTypeDescription
raw_material_namestringName of the raw material SKU
raw_material_quantitynumberQuantity of this raw material required per unit of finished good

To download the BOM as an Excel spreadsheet:

Terminal window
curl -X GET "https://api.prediko.io/api/v1/bill-of-materials?format=excel" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o bill_of_materials.xlsx
StatusDescription
401Invalid or missing API key
500Internal server error