addCost¶
Supported, no replacement yet
This endpoint remains fully supported. No replacement exists in the new API yet, and no action is needed. When a replacement ships you will get 12 months' notice, and this site will be updated.
Reference¶
/rest/costs/addCost
acceptable request representations:
available response representations:
POST
Adds the costs specified in the POST data to the system. See file format section for more info on field format.acceptable request representations:
- application/json (NOTE: expects request parameter named "costs" to contain this, i.e. costs=<data>)
{
"costs" :
[{ "jobRef" : "J00GTH",
"jobClientRef" : "ABC23",
"clientId" : "3",
"costTypeId" : "23",
"description" : "desc",
"supplierId" : "34",
"resourceId" : "21",
"unit" : "1",
"postingType" : "1",
"quantity" : "3",
"date" : "12/12/2012",
"inputDate" : "12/12/2012",
"taxType" : "1",
"unitCost" : "23.45",
"unitSalesCost" : "45.54" }]
}available response representations:
- 200 - application/json
{
"result" : "success or fail",
"result_msg" : "error message"
}See the Costs API matrix for the full list of endpoints in this category.