Create Employee Repayment Control

POST {{base_url}}/DataEntry/erControl

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 repayments.

Request Body

{"Batch"=>"ERBatch00001", "Description"=>"Employee Repayment API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "Total"=>620, "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "erMaster"=>[{"Batch"=>"ERBatch00001", "RefNo"=>"00REFFEFERR", "TransDate"=>"2017-12-23T00:00:00.000", "TransComment"=>"Employee Repayment Entry from API Import", "Posted"=>"N", "Seq"=>1, "CurrencyCode"=>"USD", "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModDate"=>"", "Diary"=>"D1", "DiaryNo"=>0}], "erDetail"=>[{"Batch"=>"ERBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC1", "Seq"=>1, "Description"=>"", "Employee"=>"0AAAPPRVD", "BankCode"=>"ASF Env.", "Amount"=>500}, {"Batch"=>"ERBatch00001", "RefNo"=>"00REFFEFERR", "PKey"=>"PKEY000ABC2", "Seq"=>2, "Description"=>"", "Employee"=>"0AAAPPRVD", "BankCode"=>"ASF Env.", "Amount"=>120}]}

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