Skip to main content

Get work order costs

GET 

/work-orders/:workOrderId/costs

Returns the expected vs. actual cost breakdown for a work order. The response compares budgeted and actual figures for material, labor, and overhead costs, along with cost-per-unit and total production hours. A variance object calculates the difference and percentage over or under budget for each category. If actual material cost exceeds expected, the materialVariance will be positive; if under budget, it will be negative. Use this to identify cost overruns and build production profitability reports.

Request

Response

Cost breakdown

Response
{
"workOrderNumber": "WO-2025-0312",
"skuName": "Roasted Garlic Hummus",
"quantity": 500,
"unit": "lbs",
"expected": {
"materialCost": 4200,
"laborCost": 850,
"overheadCost": 300,
"totalCost": 5350,
"costPerUnit": 10.7,
"productionHours": 6
},
"actual": {
"materialCost": 4480,
"laborCost": 920,
"overheadCost": 310,
"totalCost": 5710,
"costPerUnit": 11.42,
"productionHours": 6.5
},
"variance": {
"materialVariance": 280,
"materialVariancePercent": 6.67,
"laborVariance": 70,
"totalVariance": 360,
"totalVariancePercent": 6.73
},
"additionalCosts": [
{
"description": null,
"amount": null
}
],
"materialBreakdown": [
{
"itemId": "2087",
"itemName": "Organic Tahini",
"inventoryCode": "INV-000312",
"unit": "lbs",
"expectedQuantity": 12.5,
"expectedUnitCost": 3.25,
"expectedTotalCost": 40.63,
"actualQuantity": 13.1,
"actualUnitCost": 3.25,
"actualTotalCost": 42.58,
"quantityVariance": 0.6,
"costVariance": 1.95,
"costVariancePercentage": 4.8,
"wasteQuantity": 0.6,
"wastePercentage": 4.8,
"lotDetails": [
{
"lotId": null,
"quantity": null,
"unit": null,
"cost": null
}
]
}
]
}