v1/containers/{containerId}/cost-items
Retrieves a list of all cost items in the specified cost container for a project.
Resource Information
Method and URI | GET https://developer.api.autodesk.com/cost/v1/containers/:containerId/cost-items |
Authentication Context | user context required |
Required OAuth Scopes | data:read |
Data Format | JSON |
Request
Headers
Authorization* string | Must be Bearer <token> , where <token> is obtained via a three-legged OAuth flow. |
region string | The region where the project data resides, to which this request is routed.
This header is optional because the request is automatically routed to a target region based on the project ID or container ID. Using the header, though, can save lookup time on each API call. For information about verifying the region the data resides in, see the Working with BIM 360 Services in Different Regions section on the API Basics page. Possible values: |
Request
URI Parameters
containerId string: UUID | The ID of the cost container for the project. Each project is assigned a container that stores all of the cost data for the project.
To find the container ID, see the Retrieve a Cost Container ID tutorial. In ACC projects, the container ID is the same as the project ID. To obtain a project ID, use GET projects. |
Request
Query String Parameters
filter[id] array: string: uuid | Returns only the items that are identified by the provided list of item IDs. Separate multiple IDs with commas. For example, filter[id]=id1,id2 . |
filter[number] array: string | Returns only the items that are identified by the provided list of auto-generated sequence numbers. Separate multiple numbers with commas; for example, filter[number]=0001,0002 . |
filter[changeOrderId] array: string: uuid | The change order ID. Separate multiple IDs with commas. For example,``filter[changeOrderId]=id1,id2``. |
filter[budgetId] array: string: uuid | Returns only tracking item instances that belong to the budgets identified by the provided list of budget IDs (separated with commas). For example, filter[budgetId]=id1,id2 . Note that you can return the instances that are not linked to any budget using filter[budgetId]=blank . To find budget IDs, call GET budgets and inspect results.id in the response. |
filter[externalSystem] string | The name of the external ERP system. Use this name to identify or search within the integrated system. For example, filter[externalSystem]=Sage300 .
Max length: 255 |
filter[externalId] array: string | The ID of the item in the external ERP system. Use this ID to track or look up data in an integrated ERP system. For example, filter[externalId]=id1,id2 . |
filter[lastModifiedSince] string | Returns only items that were modified since the specified date and time, in ISO 8601 format. For example, filter[lastModifiedSince]=2020-03-01T13:00:00Z . |
filter[contractId] array: string: uuid | Returns only items associated with the contracts identified on this list of IDs. Separate multiple IDs with commas; for example:filter[contractId]=id1,id2 .
You can also provide a value of |
filter[budgetStatus] array: string | Returns only the items that are linked to budgets that have the specified status codes. Separate multiple codes with commas. For example, filter[budgetStatus]=draft,open . Possible values draft , open , submitted , accepted , approved , executed , rejected . For more information about cost item budget statuses, see Cost Item Statuses. |
filter[costStatus] array: string | Returns only the items that have the specified status codes. Separate multiple codes with commas. For example, filter[budgetStatus]=draft,open . Possible values draft , open , pricing , proposed , accepted , approved , executed , rejected . For more information about cost item cost statuses, see Cost Item Statuses. |
offset int | The number of objects to skip before returning a page of records. To return the subsequent page, increment this number by the value of limit in the next request. |
limit int | The maximum number of records that this endpoint returns per page. Default: 100 .
Note that a returned page may contain fewer items than the limit under either of these conditions:
|
sort string | The sort order for items. Each attribute can be sorted in either asc (default) or desc order. For example, sort=name, updatedAt desc or sort=name + updatedAt desc sorts the results first by name in ascending order, then by date updated in descending order. |
include array: string | A list of resources related to the returned cost items to include in the response. Resources can have a maximum length of 100. For example, include=changeOrders returns the change orders that contain each cost item. include=attributes returns custom attributes, which represent the “properties” in the response. Possible values: budget , changeOrders , subCostItems , attributes . |
Response
HTTP Status Code Summary
200 OK | Success |
400 Bad Request | The parameters are invalid. |
401 Unauthorized | The provided bearer token is invalid. |
403 Forbidden | Forbidden. The user or service represented by the bearer token does not have permission to perform this operation. |
404 Not Found | The resource or endpoint cannot be found. |
409 Conflict | The request could not be completed due to a conflict with the current state of the resource. |
429 Too Many Requests | Rate limit exceeded. Retry your request after a few minutes. |
500 Internal Server Error | An unexpected error occurred on the server. |
503 Service Unavailable | Service unavailable. |
Response
Body Structure (200)
pagination object | Pagination information when data must be returned page by page. |
limit int | The maximum number of objects returned in this response. |
offset int | The number of resulting objects that were skipped before this page of records was returned. |
totalResults int | The total number of objects found that satisfied the request criteria. |
nextUrl string | The URL for the next request to return the next page of records.
Max length: 2000 |
results array: object | |
id string: UUID | The unique identifier of the cost item. |
number string | The system generated sequential number. |
splitNumber object | Not relevant |
prefix string | Not relevant |
number string | Not relevant |
postfix string | Not relevant |
isFreeModify boolean | Not relevant |
name string | The name of the cost item.
Max length: 255 |
description string | A detailed description of the cost item. |
budgetId string,null | The ID of the budget to which the cost item is linked. |
contractId string,null | The ID of the contract to which the cost item is linked. |
budgetStatus string,null | The current budget status of the cost item, indicating its lifecycle stage.
Possible values: Note that you can only change the status by updating the associated change order. |
costStatus string,null | The current financial approval status of the cost item.
Possible values: Note that the cost status can only be changed by updating the associated change order. |
scope enum:string | Defines the project’s scope status of the cost item. Possible values: out , in , tbd , budgetOnly and contingency . |
type string | The category or classification of the cost item, which the Project Admin can customize. |
isMarkup boolean | Indicates if the cost item includes a markup.
|
estimated number,string,null | The rough estimate of the cost item without a formal quote. |
proposed number,string,null | The quoted cost of the cost item provided by the supplier. |
submitted number,string,null | The amount submitted to the owner for approval. |
approved number,string,null | The amount approved by the owner. |
committed number,string,null | The amount committed to the supplier. |
inputQuantity number,null | The initial quantity of the proposed cost item as specified in the budget or contract. |
quantity number | The total quantity of the cost item. |
unit string | The unit of measurement for the cost item. |
scopeOfWork string | The scope of work of the cost items, formatted as Tiptap rich text (https://tiptap.dev/introduction/). |
note string | A note associated with the cost item, formatted as Tiptap rich text (https://tiptap.dev/introduction/). |
proposedExchangeRate number,string,null | The exchange rate used for the proposed cost. If multi-currency was not enabled, the value is set to 1 regardless of the specified rate. Default value: 1 . |
committedExchangeRate number,string,null | The exchange rate used for the committed cost. If multi-currency was not enabled, the value is set to 1 regardless of the specified rate. Default value: 1 . |
locations array,null | A list of the IDs of the project locations where this item applies.
For more information, see the Locations Help documentation help. |
locationPaths array,null | A list of the IDs of the project locations where this item applies, along with the node paths of these locations in the project’s locations tree.
For more information, see the Locations Help documentation help. |
externalId string | The identifier assigned to an item in its original external ERP system. Use this ID to track and look up data within the integrated system. Note that this value comes from the item’s ID in the external system.
Max length: 255 |
externalSystem string | The name of the external ERP system integrated with Cost Management. Use this name to identify and search for data within the integrated system.
Max length: 255 |
externalMessage string | A message generated by the external ERP system that explains the sync status of the integration. For example, common values include success or fail to indicate the result of the integration operation.
Max length: 255 |
lastSyncTime datetime: ISO 8601 | The date and time when the item was last synchronized with the external ERP system. This value is updated by the external system and is in ISO 8601 format. |
integrationState string,null | The state of the item during the integration with the external ERP system (such as SignNow). An item can be a budget , contract , main contract , main contract item , cost item , expense , expense item , change order , or schedule of value . For more details, see Integrate with External System tutorial.
Possible values:
For more information regarding integrations within the Cost Management system, see Integrations in Cost Management. |
integrationStateChangedAt string,null | The date and time that the item’s integration status was last changed. |
integrationStateChangedBy string,null | The user who last changed the integration status. This is the ID of a user managed by the BIM 360/ACC Admin. |
createdAt datetime: ISO 8601 | The date and time that the item was created, in ISO 8601 format. |
updatedAt datetime: ISO 8601 | The date and time that the item was last updated, in ISO 8601 format. |
Example
Success
Request
curl -v 'https://developer.api.autodesk.com/cost/v1/containers/e94b9bc8-1775-4d76-9b1d-c613e120ccff/cost-items?filter[lastModifiedSince]=2020-03-01T13:00:00Z&filter[budgetStatus]=open&filter[costStatus]=open&limit=100&sort=name,createdAt desc' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
Response
{
"pagination": {
"limit": 20,
"offset": 0,
"totalResults": 1,
"nextUrl": ""
},
"results": [
{
"id": "02fd1230-7d9c-11e8-9262-abe29bdc14f2",
"number": 1,
"splitNumber": {
"prefix": "INT-",
"number": 1,
"postfix": "-XYZ",
"isFreeModify": false
},
"name": "Revised Entry Details per RFI-001",
"description": "Revised Entry Details per RFI-001",
"budgetId": "227e1360-9481-11e8-87fb-215990a8aeb3",
"contractId": "48dba1a0-2a8e-11ee-b1a7-2f4a196105cb",
"budgetStatus": "open",
"costStatus": "open",
"scope": "in",
"type": "Purchase Order",
"isMarkup": false,
"estimated": "1000.0000",
"proposed": "1000.0000",
"submitted": "1000.0000",
"approved": "1000.0000",
"committed": "1000.0000",
"inputQuantity": 1,
"quantity": 1,
"unit": "ls",
"scopeOfWork": "",
"note": "",
"proposedExchangeRate": "1.0000",
"committedExchangeRate": "1.0000",
"locations": [
"683904a0-47ce-4146-ac2d-a3840f00e0f4"
],
"locationPaths": [
"683904a0-47ce-4146-ac2d-a3840f00e0f4"
],
"externalId": "10010-99-AB",
"externalSystem": "Sage300",
"externalMessage": "Success.",
"lastSyncTime": "2019-09-05T01:00:12.989Z",
"integrationState": "locked",
"integrationStateChangedAt": "2019-09-05T01:00:12.989Z",
"integrationStateChangedBy": "CED9LVTLHNXV",
"createdAt": "2019-01-06T01:24:22.678Z",
"updatedAt": "2019-09-05T01:00:12.989Z"
}
]
}