A cost type is a standard dimension used to capture and categorize project cost details in construction projects.
Each project typically has different cost types related to labor, materials, rented equipment, and other operational costs. Standard cost types serve as templates for creating new cost types.
Each cost type is associated with a task, which is in turn associated with a project. A cost type record is uniquely identified by the standard cost type used to create it, as well as the specific project and task it applies to.
Note: In the construction industry, the cost type corresponds with the category in the work breakdown structure (WBS).
Returns up to 100 object references from the collection with a key, ID, and link for each cost type. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "101",
- "id": "LABOR",
- "href": "/objects/construction/cost-type/101"
}, - {
- "key": "102",
- "id": "MATERIALS",
- "href": "/objects/construction/cost-type/102"
}, - {
- "key": "103",
- "id": "EQUIPMENT",
- "href": "/objects/construction/cost-type/103"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new cost type. When you create a cost type, the following field values from the given standard cost type are used unless you override them:
accumulationType
glAccount
parent
item
Custom field values from the standard cost type can also be used by the cost type. For this to work, the standard cost type and the cost type must have same custom fields with the same IDs, types, and lengths. Custom fields of type Sequence are not copied.
Parent-child relationships defined by standard cost types are preserved when cost types are created.
Cost type to create
name required | string Name of the cost type. Example: "Equipment" | ||||
required | object Project that will use this cost type. | ||||
| |||||
required | object General ledger account associated with this cost type. | ||||
| |||||
required | object Item associated with this cost type. | ||||
| |||||
description | string Cost type description. Example: "Equipment" | ||||
object Task that will use this cost type. | |||||
| |||||
object The accumulation type associated with the object. | |||||
| |||||
costUnitDescription | string or null Describes the unit of measure used by this cost type. For example, for a labor cost type, the cost unit represents an hour of labor. For a materials cost type, the cost unit could be "tons", "feet", or similar. Example: "each" | ||||
object Parent cost type, for cost type hierarchies. | |||||
| |||||
object Cost type planned dates. | |||||
| |||||
object Cost type actual dates. | |||||
| |||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||
object The root cost type that this cost type descends from. | |||||
| |||||
object The standard cost type that is the template for this cost type. | |||||
|
Created
Bad Request
{- "project": {
- "id": "PRJ-001"
}, - "task": {
- "id": "T-100"
}, - "name": "Concrete",
- "description": "Cost type for concrete materials",
- "accumulationType": {
- "id": "MAT"
}, - "costUnitDescription": "Cubic Yards",
- "glAccount": {
- "id": "6000"
}, - "item": {
- "id": "C-100"
}, - "planned": {
- "startDate": "2024-10-31",
- "endDate": "2024-12-31"
}, - "root": {
- "id": "ROOT-001"
}, - "standardCostType": {
- "id": "STD-002"
}
}
{- "ia::result": {
- "key": "40",
- "id": "40",
- "href": "/objects/construction/cost-type/40"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified cost type.
key required | string System-assigned key for the cost type. Example: 495 |
OK
Bad Request
{- "ia::result": {
- "key": "5941",
- "project": {
- "key": "109",
- "id": "22-001",
- "name": "Wallula Heights Conference Center",
- "href": "/objects/projects/project/109"
}, - "task": {
- "key": "690",
- "id": "2-050",
- "name": "Demolition",
- "href": "/objects/projects/task/690"
}, - "id": "EQ",
- "name": "Equipment",
- "description": "Equipment Group",
- "accumulationType": {
- "id": "3",
- "key": "3",
- "name": "Equipment",
- "href": "/objects/construction/accumulation-type/3"
}, - "costUnitDescription": null,
- "status": "active",
- "glAccount": {
- "key": "383",
- "id": "5001.07",
- "href": "/objects/general-ledger/account/383"
}, - "parent": {
- "key": "490",
- "id": "1",
- "name": "EQ"
}, - "item": {
- "key": "317",
- "id": "Equipment",
- "name": "Equipment",
- "href": "/objects/inventory-control/item/317"
}, - "planned": {
- "startDate": "2022-04-30",
- "endDate": "2022-06-30"
}, - "actual": {
- "startDate": "2022-04-30",
- "endDate": "2022-06-30"
}, - "audit": {
- "createdDateTime": "2022-01-25T16:11:28Z",
- "modifiedDateTime": "2022-01-25T16:11:28Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "root": {
- "key": "5941",
- "id": "EQ",
- "name": "Equipment",
- "href": "/objects/construction/cost-type/5941"
}, - "standardCostType": {
- "key": "1",
- "id": "EQ",
- "name": "Equipment",
- "href": "/objects/construction/cost-type/1"
}, - "href": "/objects/construction/cost-type/5941"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing cost type by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the cost type. Example: 495 |
name | string Name of the cost type. Example: "Equipment" | ||||
description | string Cost type description. Example: "Equipment" | ||||
object Project that will use this cost type. | |||||
| |||||
object Task that will use this cost type. | |||||
| |||||
object The accumulation type associated with the object. | |||||
| |||||
costUnitDescription | string or null Describes the unit of measure used by this cost type. For example, for a labor cost type, the cost unit represents an hour of labor. For a materials cost type, the cost unit could be "tons", "feet", or similar. Example: "each" | ||||
object General ledger account associated with this cost type. | |||||
| |||||
object Parent cost type, for cost type hierarchies. | |||||
| |||||
object Item associated with this cost type. | |||||
| |||||
object Cost type planned dates. | |||||
| |||||
object Cost type actual dates. | |||||
| |||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||
object The root cost type that this cost type descends from. | |||||
| |||||
object The standard cost type that is the template for this cost type. | |||||
|
OK
Bad Request
{- "description": "Updated to include additional equipment rental details."
}
{- "ia::result": {
- "key": "40",
- "id": "40",
- "href": "/objects/construction/cost-type/40"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a cost type.
key required | string System-assigned key for the cost type. Example: 495 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}