Create Timesheet Control

POST {{base_url}}/DataEntry/tsControl

NOTE: This applies if you have the Use Files to Group Transactions option set to Yes in Settings » Accounting » Transactions.

Use this endpoint to create a batch for a set of timesheets.

Request Body

{"Batch"=>"TSBatch00001", "Description"=>"Timesheets API Test 1", "Recurring"=>"N", "StartDate"=>"2017-12-16T00:00:00.000", "EndDate"=>"2017-12-31T00:00:00.000", "RegHrsTotal"=>64, "OvtHrsTotal"=>0, "SpecialOvtHrsTotal"=>0, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "Diary"=>"D1", "DiaryNo"=>0, "tsMaster"=>[{"Batch"=>"TSBatch00001", "Employee"=>"000000002", "Posted"=>"N", "Seq"=>1, "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>""}], "tsDetail"=>[{"Batch"=>"TSBatch00001", "Employee"=>"000000002", "PKey"=>"APIAA00001", "Seq"=>1, "TransDate"=>"2017-12-16T00:00:00.000", "WBS1"=>"20080AR0.079", "WBS2"=>" ", "WBS3"=>" ", "LaborCode"=>"01:00B:0A:4:0", "BillCategory"=>"12", "Locale"=>"", "RegHrs"=>8, "OvtHrs"=>0, "SpecialOvtHrs"=>0, "TransComment"=>""}]}

HEADERS

KeyDatatypeRequiredDescription
Content-TypestringRequired.

The type of content supported by the API endpoint. | | Authorization | string | | Required.

The type of authorization supported by the API endpoint. |

RESPONSES

status: Created

[{"Batch":"TSBatch00001","Description":"Timesheets API Test 1","Recurring":"N","StartDate":"2017-12-16T00:00:00.000","EndDate":"2017-12-31T00:00:00.000","RegHrsTotal":64,"SumRegHrsTotal":8,"DiffRegHrsTotal":56,"OvtHrsTotal":0,"SumOvtHrsTotal":0,"DiffOvtHrsTotal":0,"SpecialOvtHrsTotal":0,"SumSpecialOvtHrsTotal":0,"DiffSpecialOvtHrsTotal":0,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0","Diary":"D1","DiaryNo":1463}]