Create Employee Expense Master
POST {{base_url}}/DataEntry/exMaster/:Batch|MasterPKey
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 expense.
Request Body
{"Batch"=>"EXNonBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308D", "Employee"=>"0AANEWJPY", "ReportDate"=>"2017-12-17T00: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"=>"EXNonBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308D", "PKey"=>"PAUL1120745868346", "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"=>"EXNonBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"PAUL1120745868346", "TaxCode"=>"NY_TAX", "Seq"=>1, "TaxAmount"=>25, "CompoundOnTaxCode"=>""}, {"Batch"=>"EXNonBatch00001", "MasterPKey"=>"551A9F01962E4BB1B4ACF97B4019308C", "PKey"=>"PAUL1120745868346", "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
[{"Employee":"0AANEWJPY","EmplName":"AA Employeein752USJPY","ReportDate":"2017-12-17T00:00:00.000","ReportName":"API Report in Company A","AdvanceAmount":0,"TotalDue":375,"Batch":"EXNonBatch00001","MasterPKey":"551A9F01962E4BB1B4ACF97B4019308D","Posted":"N","Seq":1,"DefaultCurrencyCode":"USD","CurrencyExchangeOverrideMethod":"N","CurrencyExchangeOverrideDate":"","CurrencyExchangeOverrideRate":0,"PaymentCurrencyCode":"USD","PaymentExchangeOverrideMethod":"N","PaymentExchangeOverrideDate":"","PaymentExchangeOverrideRate":0,"Status":"N","StatusDescription":"In Progress","AuthorizedByName":"","AuthorizedBy":"","RejectReason":"","ModUser":"ADMIN","ModUserEmployee":"0000A0001","ModDate":"2015-06-29T20:03:16.407"}]