VismaBouwsoftAPICalls.v1_GET_ActualCostItems Method
v1_GET_ActualCostItems() as String

This API call is used to get fields of a(n) ActualCostItem(s)

HTTP method API version
GET v1

Don’t forget to put the Authorization field in the header

API Path: /ActualCostItems/
or
API Path: /ActualCostItems/{id}

You can make this API call:
* without the key field id to get a list of ActualCostItems
* with the key field id as the path parameter (the specific id of the ActualCostItem you want to get)

Fields

The following fields are available:

Field Name Type
id Number
project_id Number
project_pnr Number
project_unr Number
project_name String
actualcost_id Number
nr1 String
nr2 String
description String
description_localized String
hours Number
unit String
unit_localized String
yield Number
company_id Number
estimatedyield Number
bar_barcode String

/ActualCostItems/

API Path: /ActualCostItems/

If everything succeeds the HTTP response status is 200
(200 OK)

If there is something wrong with the request, the response status and code is 400
(400 Bad Request)

If you forget to send the Authorization, the response status is 401
(401 Unauthorized)

If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/ActualCostItems

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: rkPfWxftGGzSfmPIjfzRqtfjfAjmkGbbfjGkzUIrIUIIrrjbOA

Query Parameters :
ParameterName: limit, ParameterValue: 5
ParameterName: sort, ParameterValue: id

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–4/1614”, “Records”: [
  {
    "id": 4,
    "project_id": 3,
    "project_pnr": 20120003,
    "project_unr": 3,
    "project_name": "Project Parketvloeren 2016",
    "actualcost_id": 3,
    "nr1": "P.00.01a",
    "nr2": "",
    "description": "Plaatsing parket dmv verlijming: European Oak: inkom",
    "description_localized": "Plaatsing parket dmv verlijming: European Oak: inkom",
    "hours": 498.5,
    "unit": "m²",
    "unit_localized": "m²",
    "yield": 6.23,
    "company_id": 1,
    "estimatedyield": 0.5,
    "bar_barcode": ""
  },
  {
    "id": 5,
    "project_id": 3,
    "project_pnr": 20120003,
    "project_unr": 3,
    "project_name": "Project Parketvloeren 2016",
    "actualcost_id": 3,
    "nr1": "P.00.01b",
    "nr2": "",
    "description": "Plaatsing parket dmv verlijming: European Oak: eetplaats",
    "description_localized": "Plaatsing parket dmv verlijming: European Oak: eetplaats",
    "hours": 161.41666699999999,
    "unit": "m²",
    "unit_localized": "m²",
    "yield": 1.79,
    "company_id": 1,
    "estimatedyield": 0.5,
    "bar_barcode": ""
  }
,

]
}

https://ra.bouwsoft.be/api/v1/ActualCostItems

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: rkPfWxftGGzSfmPIjfzRqtfjfAjmkGbbfjGkzUIrIUIIrrjbOA

Query Parameters :
ParameterName: filter, ParameterValue: project_id eq 3149

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–0/1”, “Records”: [
  {
    "id": 2576,
    "project_id": 3149,
    "project_pnr": 2013086,
    "project_unr": 1275,
    "project_name": "Schilderen van API blokjes",
    "actualcost_id": 2022,
    "nr1": "",
    "nr2": "",
    "description": "Volledig Project",
    "description_localized": "Complete project",
    "hours": 0,
    "unit": "st.",
    "unit_localized": "pc.",
    "yield": 0,
    "company_id": 2,
    "estimatedyield": 0,
    "bar_barcode": ""
  }
]
}

https://ra.bouwsoft.be/api/v1/ActualCostItems

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: rkPfWxftGGzSfmPIjfzRqtfjfAjmkGbbfjGkzUIrIUIIrrjbOA

Query Parameters :
ParameterName: filter, ParameterValue: project_id eq 3149
ParameterName: limit, ParameterValue: 1

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–0/1”, “Records”: [
  {
    "id": 2576,
    "project_id": 3149,
    "project_pnr": 2013086,
    "project_unr": 1275,
    "project_name": "Schilderen van API blokjes",
    "actualcost_id": 2022,
    "nr1": "",
    "nr2": "",
    "description": "Volledig Project",
    "description_localized": "Complete project",
    "hours": 0,
    "unit": "st.",
    "unit_localized": "pc.",
    "yield": 0,
    "company_id": 2,
    "estimatedyield": 0,
    "bar_barcode": ""
  }
]
}

/ActualCostItems/{id}

If everything succeeds the HTTP response status is 200
(200 OK)

If there is something wrong with the request, the response status and code is 400
(400 Bad Request)

If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)

If you forget to send the Authorization, the response status is 401
(401 Unauthorized)

If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/ActualCostItems/2576

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: PbffWxfDbmzSftlbtfzRqkDVfGGGfGObflAkzOfOUfmGtAVAbl

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–0/1”, “Records”: [
  {
    "id": 2576,
    "project_id": 3149,
    "project_pnr": 2013086,
    "project_unr": 1275,
    "project_name": "Schilderen van API blokjes",
    "actualcost_id": 2022,
    "nr1": "",
    "nr2": "",
    "description": "Volledig Project",
    "description_localized": "Complete project",
    "hours": 0,
    "unit": "st.",
    "unit_localized": "pc.",
    "yield": 0,
    "company_id": 2,
    "estimatedyield": 0,
    "bar_barcode": ""
  }
]
}