Create Miscellaneous Expense Control

POST {{base_url}}/DataEntry/miControl

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 miscellaneous expenses.

Request Body

{"Batch"=>"MIBatch00001", "Description"=>"Miscellaneous Expense API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "Total"=>620, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "miMaster"=>[{"Batch"=>"MIBatch00001", "RefNo"=>"00REFFEFERR", "TransDate"=>"2017-12-29T00:00:00.000", "Description"=>"Maste record 1", "Posted"=>"N", "Seq"=>1, "CurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>"", "Diary"=>"D1", "DiaryNo"=>0}], "miDetail"=>[{"Batch"=>"MIBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC1", "Seq"=>1, "Description"=>"Line 1", "WBS1"=>"0B199901.500", "WBS2"=>" ", "WBS3"=>" ", "Account"=>"60100", "Amount"=>500, "CurrencyExchangeOverrideRate"=>0}, {"Batch"=>"MIBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC2", "Seq"=>2, "Description"=>"Line 1", "WBS1"=>"0B199901.500", "WBS2"=>" ", "WBS3"=>" ", "Account"=>"60100", "Amount"=>120, "CurrencyExchangeOverrideRate"=>0}]}

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":"MIBatch00001","Description":"Miscellaneous Expense API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","DefaultCurrencyCode":"USD","Total":620,"SumTotal":620,"DiffTotal":0,"Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0"}]