Costing Management
Delete Cost Sheet
Delete a cost sheet and all its versions.
This permanently removes the cost sheet and all associated data including:
- All versions
- All processing cost items
- All related records
Path Parameters:
- costing_id: The document ID of the cost sheet to delete
Headers:
- X-User-Id: The ID of the user performing the deletion
DELETE
Delete Cost Sheet
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The costing document ID (e.g., CS-2024-001)
Previous
Update Cost SheetUpdate an existing cost sheet (partial update) with action-based state transitions.
**Path Parameters:**
- **costing_id**: The document ID of the cost sheet to update
**Request Body (camelCase, all fields optional):**
- **action**: State transition: "draft", "submit_for_review", "withdraw", "approve" (manager), "reject" (manager)
- **costSheetName**: Updated name
- **clientId**: Updated client reference
- **styleId**: Updated style reference
- **mainCurrency**: Updated currency
- **bomItems**: Replace all BOM items (see POST for field details)
- **processingItems**: Replace all processing items
- **overheadTier3Items**: Replace all overhead items
- **profitScenarios**: Replace all profit scenarios
**Headers:**
- **X-User-Id**: The ID of the user making the update
- **X-Org-Id**: Organization override if not in user context
**Example Request:**
```json
{
"action": "draft",
"costSheetName": "Updated Name",
"bomItems": [
{
"materialName": "Silk Fabric",
"materialType": "Fabric",
"consumption": 2.0,
"unit": "meter",
"unitCost": 25.00
}
]
}
```
Next
Delete Cost Sheet