Create Employee Repayment Master

POST {{base_url}}/DataEntry/erMaster/:Batch|MasterRefNo

NOTE: This applies if you have the Use Files to Group Transactions option set to No in Settings » Accounting » Transactions.

Use this endpoint to create a master record for an employee repayment.

Request Body

{"Batch"=>"ERNonBatch00001", "RefNo"=>"00REFFEFE11", "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"=>"IC", "DiaryNo"=>0, "erDetail"=>[{"Batch"=>"ERNonBatch00001", "RefNo"=>"00REFFEFE11", "PKey"=>"PKEY000ABC11", "Seq"=>1, "Description"=>"", "Employee"=>"0AAAPPRVD", "BankCode"=>"ASF Env.", "Amount"=>500}, {"Batch"=>"ERNonBatch00001", "RefNo"=>"00REFFEFE11", "PKey"=>"PKEY000ABC12", "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":"ERNonBatch00001","RefNo":"00REFFEFE11","TransDate":"2017-12-23T00:00:00.000","TransComment":"Employee Repayment Entry from API Import","Posted":"N","Seq":1,"CurrencyCode":"USD","Status":"N","StatusDescription":"In Progress","AuthorizedByName":"","AuthorizedBy":"","RejectReason":"","ModUser":"","ModUserEmployee":"","ModDate":"","Diary":"D1","DiaryNo":1454}]