Create Unit Control
POST {{base_url}}/DataEntry/unControl
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.
Request Body
{"Batch"=>"UNBatch00001", "Description"=>"Unit Transaction API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "Total"=>120, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "Diary"=>"D1", "DiaryNo"=>0, "TSCount"=>0, "unMaster"=>[{"Batch"=>"UNBatch00001", "Unit"=>"00002", "Posted"=>"N", "Seq"=>1, "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>""}], "unDetail"=>[{"Batch"=>"UNBatch00001", "Unit"=>"00002", "PKey"=>"APIPKey00001", "Seq"=>1, "TransDate"=>"2017-12-28T00:00:00.000", "Description"=>"Test", "WBS1"=>"20080AR0.248", "WBS2"=>"001", "WBS3"=>" ", "TableNo"=>"AA_1", "Account"=>"52401", "Quantity"=>30, "Employee"=>"", "EmployeeCompany"=>"", "CurrencyExchangeOverrideRate"=>0, "tkPKey"=>""}]}
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":"UNBatch00001","Description":"Unit Transaction API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","Total":120,"SumTotal":30,"DiffTotal":90,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0","Diary":"D1","DiaryNo":1464,"TSCount":0}]