Create Unit By Project Control
POST {{base_url}}/DataEntry/upControl
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 units by project.
Request Body
{"Batch"=>"UPBatch00001", "Description"=>"Unit by Projects API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "Total"=>31, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "Diary"=>"D1", "DiaryNo"=>0, "upMaster"=>[{"Batch"=>"UPBatch00001", "RefNo"=>"API00001", "Posted"=>"N", "Seq"=>1, "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "Status"=>"A", "AuthorizedByName"=>"Bill Hunmanb", "AuthorizedBy"=>"0000A0001", "RejectReason"=>"", "ModUser"=>"ADMIN", "ModDate"=>"2015-05-08T17:52:53.703"}], "upDetail"=>[{"Batch"=>"UPBatch00001", "RefNo"=>"API00001", "PKey"=>"APIPKey00001", "Seq"=>1, "TransDate"=>"2017-12-28T00:00:00.000", "Description"=>"Test", "WBS1"=>"1314ACC0.052", "WBS2"=>"001", "WBS3"=>" ", "CurrencyCode"=>"USD", "DefaultUnitTable"=>"", "Unit"=>"ATS01", "CostRate"=>12, "BillingRate"=>0, "TableNo"=>"AA_timesheet", "Account"=>"52900", "Quantity"=>6, "Employee"=>"0000A0001", "EmployeeSpecificRevenue"=>"N", "EmployeeCompany"=>"B0", "CurrencyExchangeOverrideRate"=>0}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | Required. |
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":"UPBatch00001","Description":"Unit by Projects API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","Total":31,"SumTotal":6,"DiffTotal":25,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0","Diary":"D1","DiaryNo":1465}]