VismaBouwsoftAPICalls.v1_POST_CostCalculation | Method |
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 | Number |
parent_id | Number |
parent_type | String |
order_id | Number |
order_dc_id | Number |
orderline_id | Number |
item_id | Number |
page | Number |
name | String |
description | String |
value | Number |
parent_pricedecimals | Number |
order_companyid | Number |
order_type | String |
order_nr | Number |
orderline_linenr | Number |
orderline_nr1 | String |
orderline_description | String |
orderline_quantity | Number |
pricelinkedtocostcalculation | Boolean |
pricelinkmethod | String |
item_nr1 | String |
item_description | String |
linenr | Number |
type | String |
type_localized | String |
group | String |
nr | String |
job_id | Number |
job_code | String |
job_name | String |
quantity | Number |
vf | Number |
workers | Number |
days | Number |
workinghours_perworker_perday | Number |
unit | String |
price_unit | Number |
price_total_without_margin | Number |
margin | Number |
price_total_with_margin | Number |
product_id | Number |
machine_id | Number |
hour_id | Number |
address_id_subcontractor | Number |
/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": 74515,
"parent_type": "orderline",
"parent_id": 139690,
"parent_pricedecimals": 2,
"order_id": 16124,
"order_companyid": 1,
"order_type": "FAKTUUR",
"order_nr": 2020001046,
"order_dc_id": 0,
"orderline_id": 139690,
"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
}
]
}
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": 74516,
"parent_type": "orderline",
"parent_id": 139690,
"parent_pricedecimals": 2,
"order_id": 16124,
"order_companyid": 1,
"order_type": "FAKTUUR",
"order_nr": 2020001046,
"order_dc_id": 0,
"orderline_id": 139690,
"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
}
]
}
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": 74517,
"parent_type": "orderline",
"parent_id": 139690,
"parent_pricedecimals": 2,
"order_id": 16124,
"order_companyid": 1,
"order_type": "FAKTUUR",
"order_nr": 2020001046,
"order_dc_id": 0,
"orderline_id": 139690,
"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
}
]
}