Costing Management
Create Cost Sheet
Create a new cost sheet or update an existing one.
Request Body (camelCase):
- action: “draft”, “submit_for_review” (validation required)
- id: null for new, cost_sheet_id for update
- costSheetName: Name/title of the cost sheet
- clientId: Optional client reference
- styleId: Optional style reference
- mainCurrency: Currency for the cost sheet (default: USD)
- bomItems: List of BOM line items
- processingItems: List of processing cost items
- overheadTier2Items: List of tier 2 overhead items
- overheadTier3Items: List of tier 3 overhead items
- profitScenarios: List of profit scenarios
BOM Item Fields:
- materialId, materialName, materialType, consumption, unit, unitCost, currency, exchangeRate
Processing Item Fields:
- processingType, vendorName, description, costAmount, currency, exchangeRate
Overhead Tier 3 Fields:
- overheadType, description, costAmount, currency, exchangeRate
Profit Scenario Fields:
- quotedPrice, quotedCurrency, expectedGrossMargin, expectedGrossProfit, expectedNetMargin, expectedNetProfit
Headers:
- X-User-Id: The ID of the user creating the cost sheet
Example Request:
{
"action": "draft",
"costSheetName": "Spring Collection 2026",
"mainCurrency": "USD",
"bomItems": [
{
"materialName": "Cotton Fabric",
"materialType": "Fabric",
"consumption": 1.5,
"unit": "meter",
"unitCost": 12.50
}
],
"processingItems": [],
"overheadTier2Items": [],
"overheadTier3Items": [],
"profitScenarios": []
}
POST
Create Cost Sheet
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Input schema for creating a new cost sheet (POST /costings/).
- action: "draft" saves as draft, "submit_for_review" submits for approval
- id: None = create new, provided = update existing
Required for both draft and submit_for_review:
- clientId, styleId, mainCurrency
Required only for submit_for_review:
- At least 1 bomItem AND at least 1 processingItem
Actions for cost sheet state transitions
Permissions:
- draft, submit_for_review, withdraw: Any authenticated user
- approve, reject: Manager or Admin only
Available options:
draft, submit_for_review, withdraw, approve, reject, resubmit Previous
Get Costing DashboardAggregated dashboard statistics for cost sheets within a single organization.
The organisation is derived from the `X-Org-Id` header or the authenticated user's org.
- **total_cost_sheets:** Number of unique cost sheets
- **by_status:** Draft/submitted/approved/rejected breakdown
- **avg_total_cost:** Average total cost across versions
- **recent_sheets:** Last 10 versions ordered by created date
- **cost_trend:** Monthly totals for the past six months
Next
Create Cost Sheet