VismaBouwsoftAPICalls.v1_POST_CostCalculation Method
v1_POST_CostCalculation() as String

This API call is used to add a(n) CostCalculation

General Description

HTTP method API version
POST v1

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

API Path: /CostCalculation
or

Fields

The following fields are available:

Field Name Type Id Type Name Length Required Writeable Force Write Link
parent_type 2 tpString 0 No No No
parent_id 1 tpLong 0 No No No
parent_pricedecimals 1 tpLong 0 No No No
order_id 1 tpLong 0 No No No
order_companyid 1 tpLong 0 No No No
order_type 2 tpString 50 No No No
order_nr 1 tpLong 0 No No No
order_dc_id 1 tpLong 0 No No No
orderline_id 1 tpLong 0 No No No
orderline_linenr 1 tpLong 0 No No No
orderline_nr1 2 tpString 100 No No No
orderline_description 2 tpString 0 No No No
orderline_quantity 4 tpDouble 0 No No No
pricelinkedtocostcalculation 5 tpBool 0 No No No
pricelinkmethod 2 tpString 0 No No No
item_id 1 tpLong 0 No No No
item_nr1 2 tpString 100 No No No
item_description 2 tpString 0 No No No
page 1 tpLong 0 No No No
linenr 1 tpLong 0 No No No
type 2 tpString 0 No Yes No
type_localized 2 tpString 0 No No No
group 2 tpString 100 No Yes No
nr 2 tpString 100 No Yes No
description 2 tpString 0 No Yes No
job_id 1 tpLong 0 No Yes No
job_code 2 tpString 10 No Yes No
job_name 2 tpString 100 No No No
quantity 4 tpDouble 0 No Yes No
vf 4 tpDouble 0 No Yes No
workers 4 tpDouble 0 No Yes No
days 4 tpDouble 0 No Yes No
workinghours_perworker_perday 4 tpDouble 0 No Yes No
unit 2 tpString 10 No Yes No
price_unit 8 tpCurrency 0 No Yes No
price_total_without_margin 8 tpCurrency 0 No No No
margin 13 tpPercent 0 No Yes No
price_total_with_margin 8 tpCurrency 0 No No No
product_id 1 tpLong 0 No Yes No
machine_id 1 tpLong 0 No Yes No
hour_id 1 tpLong 0 No Yes No
address_id_subcontractor 1 tpLong 0 No Yes No
ts_lastupdate 3 tpDate 0 No No No

/CostCalculation

API Path: /CostCalculation/

If everything succeeds the HTTP response status is 201
(201 CREATED)

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

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/CostCalculation

with the following parameters :

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

Query Parameters :
ParameterName: columns, ParameterValue: parent_id%3D%7B%22v1_POST_OrderLines%20%28test1%29%22%3A%20%22id%22%7D%2Cparent_type%3D%27orderline%27

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 80483,
    "parent_type": "orderline",
    "parent_id": 142294,
    "parent_pricedecimals": 2,
    "order_id": 17617,
    "order_companyid": 1,
    "order_type": "FAKTUUR",
    "order_nr": 2020001246,
    "order_dc_id": 0,
    "orderline_id": 142294,
    "orderline_linenr": 1,
    "orderline_nr1": "",
    "orderline_description": "",
    "orderline_quantity": 0,
    "pricelinkedtocostcalculation": false,
    "pricelinkmethod": "Unit Price",
    "item_id": 0,
    "item_nr1": "",
    "item_description": "",
    "page": 1,
    "linenr": 1,
    "type": "product",
    "type_localized": "Article",
    "group": "",
    "nr": "",
    "description": "",
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "quantity": 0,
    "vf": 1,
    "workers": 0,
    "days": 0,
    "workinghours_perworker_perday": 8,
    "unit": "",
    "price_unit": 0.0,
    "price_total_without_margin": 0.0,
    "margin": 0,
    "price_total_with_margin": 0.0,
    "product_id": 0,
    "machine_id": 0,
    "hour_id": 0,
    "address_id_subcontractor": 0,
    "ts_lastupdate": "2026–05–07 09:21:07"
  }
]
}

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

with the following parameters :

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

Query Parameters :
ParameterName: columns, ParameterValue: parent_id%3D%7B%22v1_POST_OrderLines%20%28test1%29%22%3A%20%22id%22%7D%2Cparent_type%3D%27orderline%27

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 80484,
    "parent_type": "orderline",
    "parent_id": 142294,
    "parent_pricedecimals": 2,
    "order_id": 17617,
    "order_companyid": 1,
    "order_type": "FAKTUUR",
    "order_nr": 2020001246,
    "order_dc_id": 0,
    "orderline_id": 142294,
    "orderline_linenr": 1,
    "orderline_nr1": "",
    "orderline_description": "",
    "orderline_quantity": 0,
    "pricelinkedtocostcalculation": false,
    "pricelinkmethod": "Unit Price",
    "item_id": 0,
    "item_nr1": "",
    "item_description": "",
    "page": 1,
    "linenr": 1,
    "type": "product",
    "type_localized": "Article",
    "group": "",
    "nr": "",
    "description": "",
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "quantity": 0,
    "vf": 1,
    "workers": 0,
    "days": 0,
    "workinghours_perworker_perday": 8,
    "unit": "",
    "price_unit": 0.0,
    "price_total_without_margin": 0.0,
    "margin": 0,
    "price_total_with_margin": 0.0,
    "product_id": 0,
    "machine_id": 0,
    "hour_id": 0,
    "address_id_subcontractor": 0,
    "ts_lastupdate": "2026–05–07 09:21:09"
  }
]
}

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

with the following parameters :

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

Query Parameters :
ParameterName: columns, ParameterValue: parent_id%3D%7B%22v1_POST_OrderLines%20%28test1%29%22%3A%20%22id%22%7D%2Cparent_type%3D%27orderline%27

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 80485,
    "parent_type": "orderline",
    "parent_id": 142294,
    "parent_pricedecimals": 2,
    "order_id": 17617,
    "order_companyid": 1,
    "order_type": "FAKTUUR",
    "order_nr": 2020001246,
    "order_dc_id": 0,
    "orderline_id": 142294,
    "orderline_linenr": 1,
    "orderline_nr1": "",
    "orderline_description": "",
    "orderline_quantity": 0,
    "pricelinkedtocostcalculation": false,
    "pricelinkmethod": "Unit Price",
    "item_id": 0,
    "item_nr1": "",
    "item_description": "",
    "page": 1,
    "linenr": 2,
    "type": "product",
    "type_localized": "Article",
    "group": "",
    "nr": "",
    "description": "",
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "quantity": 0,
    "vf": 1,
    "workers": 0,
    "days": 0,
    "workinghours_perworker_perday": 8,
    "unit": "",
    "price_unit": 0.0,
    "price_total_without_margin": 0.0,
    "margin": 0,
    "price_total_with_margin": 0.0,
    "product_id": 0,
    "machine_id": 0,
    "hour_id": 0,
    "address_id_subcontractor": 0,
    "ts_lastupdate": "2026–05–07 09:21:09"
  }
]
}