Define standard cost types to create a catalog of definitions that can be used to create new cost types pre-populated with specific values, such as for labor, materials, and subcontracts.
Note: Construction companies record expenses using the work breakdown structure (WBS). In the industry, the WBS is traditionally defined as job/cost code/category. Sage Intacct uses project/task/cost type to reflect this structure.
Returns up to 100 object references from the collection with a key, ID, and link for each standard 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": "7",
- "id": "LAB",
- "href": "/objects/construction/standard-cost-type/7"
}, - {
- "key": "1",
- "id": "EQ",
- "href": "/objects/construction/standard-cost-type/1"
}, - {
- "key": "2",
- "id": "EQ-Rental",
- "href": "/objects/construction/standard-cost-type/2"
}, - {
- "key": "3",
- "id": "EQ-Owned",
- "href": "/objects/construction/standard-cost-type/3"
}
], - "ia::meta": {
- "totalCount": 4,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new standard cost type.
Standard cost type to create
id required | string Unique identifier of the standard cost type. Used by the system to create the IDs of any cost types created from this standard cost type. 12 characters or less. Example: "EQ-Owned" | ||||
name required | string Name of the standard cost type. Example: "EQ Owned" | ||||
description | string Description of the standard cost type. Example: "EQ Owned" | ||||
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" or "feet" or similar. Example: "each" | ||||
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 General ledger account associated with this cost type. | |||||
| |||||
object Accumulation type associated with this cost type. | |||||
| |||||
object Reference to a parent standard cost type to group standard cost types in the catalog. | |||||
| |||||
object Reference to an item. | |||||
|
Created
Bad Request
{- "id": "EQ-Owned",
- "name": "EQ Owned",
- "description": "EQ Owned",
- "accumulationType": {
- "id": "Equipment"
}, - "glAccount": {
- "key": "208"
}, - "parent": {
- "id": "EQ"
}, - "item": {
- "id": "Equipment"
}
}
{- "ia::result": {
- "key": "14",
- "id": "EQ-Owned",
- "href": "/objects/construction/standard-cost-type/14"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified standard cost type.
key required | string System-assigned key for the standard cost type. Example: 1050 |
OK
Bad Request
{- "ia::result": {
- "key": "10",
- "id": "LAB-REG",
- "name": "Labor Regular",
- "description": "Labor Regular",
- "accumulationType": {
- "key": "1",
- "id": "Labor",
- "href": "/objects/construction/accumulation-type/1"
}, - "costUnitDescription": null,
- "status": "active",
- "glAccount": {
- "key": "208",
- "id": "5001.01",
- "name": "Construction Labor",
- "href": "/objects/general-ledger/account/208"
}, - "parent": {
- "key": "7",
- "id": "LAB",
- "name": "Labor",
- "href": "/objects/construction/standard-cost-type/7"
}, - "item": {
- "key": "320",
- "id": "Labor",
- "name": "Labor",
- "href": "/objects/inventory-control/item/320"
}, - "audit": {
- "createdDateTime": "2022-10-14T15:45:22Z",
- "modifiedDateTime": "2022-10-14T15:46:44Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/construction/standard-cost-type/10"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing standard cost type by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the standard cost type. Example: 1050 |
name | string Name of the standard cost type. Example: "EQ Owned" | ||||
description | string Description of the standard cost type. Example: "EQ Owned" | ||||
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" or "feet" or similar. Example: "each" | ||||
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 General ledger account associated with this cost type. | |||||
| |||||
object Accumulation type associated with this cost type. | |||||
| |||||
object Reference to a parent standard cost type to group standard cost types in the catalog. | |||||
| |||||
object Reference to an item. | |||||
|
OK
Bad Request
{- "description": "Owned equipment",
- "costUnitDescription": "each",
- "glAccount": {
- "id": "5001.05"
}, - "item": {
- "id": "Equipment"
}, - "parent": {
- "id": "OH"
}
}
{- "ia::result": {
- "key": "14",
- "id": "EQ-Owned",
- "href": "/objects/construction/standard-cost-type/14"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a standard cost type. You cannot delete a standard cost type if it has been used to create a cost type in a project.
key required | string System-assigned key for the standard cost type. Example: 1050 |
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
}
}