Create Employee Expense Control
POST {{base_url}}/DataEntry/exControl
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 employee expenses.
Request Body
{"Batch"=>"EXBatch00001", "Description"=>"Employee Expense API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "DefaultCurrencyCode"=>"USD", "Total"=>0, "AdvanceAmount"=>0, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "Diary"=>"D1", "exControlDefaultTaxCodes"=>[{"TaxCode"=>"AGS", "Batch"=>"EXBatch00001", "Seq"=>1}, {"TaxCode"=>"NY_TAX", "Batch"=>"EXBatch00001", "Seq"=>2}, {"TaxCode"=>"AMA", "Batch"=>"EXBatch00001", "Seq"=>3}], "exMaster"=>[{"Batch"=>"EXBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308C", "Employee"=>"0AANEWJPY", "ReportDate"=>"2017-12-16T00:00:00.000", "ReportName"=>"API Report in Company A", "AdvanceAmount"=>0, "TotalDue"=>375, "Posted"=>"N", "Seq"=>1, "DefaultCurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "PaymentCurrencyCode"=>"USD", "PaymentExchangeOverrideMethod"=>"N", "PaymentExchangeOverrideDate"=>"", "PaymentExchangeOverrideRate"=>0, "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"ADMIN", "ModUserEmployee"=>"0000A0001", "ModDate"=>"2015-06-29T20:03:16.407"}], "exDetail"=>[{"Batch"=>"EXBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"PAUL1120745868345", "Seq"=>1, "TransDate"=>"2017-12-16T00:00:00.000", "Description"=>"Test 1", "WBS1"=>"1314ACC0.072", "WBS2"=>"001", "WBS3"=>"0001", "Account"=>"58100", "CurrencyCode"=>"USD", "Amount"=>375, "TotalTax"=>75, "NetAmount"=>300, "CurrencyExchangeOverrideRate"=>0, "PaymentAmount"=>375, "PaymentExchangeRate"=>0, "PaymentExchangeInfo"=>"", "SuppressBill"=>"N"}], "exDetailTax"=>[{"Batch"=>"EXBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"PAUL1120745868345", "TaxCode"=>"NY_TAX", "Seq"=>1, "TaxAmount"=>25, "CompoundOnTaxCode"=>""}, {"Batch"=>"EXBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"PAUL1120745868345", "TaxCode"=>"AGS", "Seq"=>2, "TaxAmount"=>50, "CompoundOnTaxCode"=>""}]}
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":"EXBatch00001","Description":"Employee Expense API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","DefaultCurrencyCode":"USD","Total":0,"SumTotal":375,"DiffTotal":-375,"AdvanceAmount":0,"SumAdvanceAmount":0,"DiffAdvanceAmount":0,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0","Diary":"D1","DiaryNo":1455}]