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.
Subscription | Project Costing or Construction |
---|---|
User type | Business, Employee, Project Manager |
Permissions | List Cost Types |
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.
Subscription | Project Costing or Construction |
---|---|
User type | Business, Project Manager |
Permissions | Add Cost Types |
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.
Subscription | Project Costing or Construction |
---|---|
User type | Business, Employee, Project Manager |
Permissions | View Cost Types |
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.
Subscription | Project Costing or Construction |
---|---|
User type | Business, Project Manager |
Permissions | Edit Cost Types |
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.
Subscription | Project Costing or Construction |
---|---|
User type | Business, Project Manager |
Permissions | Delete 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
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "construction/cost-type" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or has (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the result set, 4000 maximum. Example: 100 |
OK
Bad Request
{- "object": "construction/cost-type",
- "filters": [
- {
- "$eq": {
- "task.key": "320"
}
}
], - "fields": [
- "key",
- "id",
- "name",
- "description",
- "project.name"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "1729",
- "id": "EQ",
- "name": "Equipment",
- "description": "Equipment Group",
- "project.name": "Gresham High School Gymnasium"
}, - {
- "key": "1730",
- "id": "EQ-Owned",
- "name": "EQ Owned",
- "description": "EQ Owned",
- "project.name": "Gresham High School Gymnasium"
}, - {
- "key": "1731",
- "id": "EQ-Rental",
- "name": "EQ Rental",
- "description": "EQ Rental",
- "project.name": "Gresham High School Gymnasium"
}, - {
- "key": "1732",
- "id": "LAB",
- "name": "Labor",
- "description": "Labor",
- "project.name": "Gresham High School Gymnasium"
}, - {
- "key": "1737",
- "id": "MAT",
- "name": "Materials",
- "description": "Material",
- "project.name": "Gresham High School Gymnasium"
}
], - "ia::meta": {
- "totalCount": 5,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}