Create Journal Entry Control
POST {{base_url}}/DataEntry/jeControl
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 journal entries.
Request Body
{"Batch"=>"JEBatch00001", "Description"=>"Journal Entry API Test 1", "Recurring"=>"N", "EndDate"=>"2017-12-31T00:00:00.000", "DefaultCurrencyCode"=>"USD", "Total"=>44, "CreditsTotal"=>44, "AllowTaxEntries"=>"N", "Selected"=>"N", "Posted"=>"N", "Creator"=>"ADMIN", "Period"=>201305, "Company"=>"A0", "RecurSchedule"=>"N", "RecurClearAmounts"=>"N", "RecurStartDate"=>"", "RecurFrequency"=>"", "RecurType"=>"", "RecurTimes"=>0, "RecurExpirationDate"=>"", "RecurAutoPost"=>"N", "RecurProcessQueue"=>"", "RecurTimesUsed"=>0, "RecurLastPostDate"=>"", "Reverse"=>"N", "ReverseDate"=>"", "ReverseAutoPost"=>"N", "ReverseProcessQueue"=>"", "RecurAlert"=>"N", "ReverseAlert"=>"N", "ProcessID"=>"", "jeMaster"=>[{"Batch"=>"JEBatch00001", "RefNo"=>"00000002589", "TransDate"=>"2017-12-12T00:00:00.000", "Description"=>"Master Record 1", "Type"=>"3", "UpdateBilled"=>"N", "Posted"=>"N", "Seq"=>0, "CurrencyCode"=>"USD", "CurrencyExchangeOverrideMethod"=>"N", "CurrencyExchangeOverrideDate"=>"", "CurrencyExchangeOverrideRate"=>0, "Status"=>"N", "AuthorizedBy"=>"", "RejectReason"=>"", "ModUser"=>"", "ModUserEmployee"=>"", "ModDate"=>"", "Diary"=>"D1", "DiaryNo"=>0, "AllowAssetEntries"=>"N"}], "jeDetail"=>[{"Batch"=>"JEBatch00001", "RefNo"=>"00000002589", "PKey"=>"APIPKey00001", "Seq"=>1, "EquipmentID"=>"", "EquipmentDesc"=>"", "Description"=>"22222", "WBS1"=>"0A199900.900", "WBS2"=>"A222", "WBS3"=>" ", "Account"=>"455EU", "DebitAmount"=>144, "CreditAmount"=>0, "CurrencyExchangeOverrideRate"=>0, "SuppressBill"=>"N", "LinkCompany"=>"", "DebitAmountFunctionalCurrency"=>0, "CreditAmountFunctionalCurrency"=>0, "DebitAmountProjectCurrency"=>0, "CreditAmountProjectCurrency"=>0}], "jeDetailTax"=>[{"Batch"=>"JEBatch00001", "RefNo"=>"00000002589", "PKey"=>"APIPKey00001", "TaxCode"=>"NY_TAX", "Seq"=>1, "TaxCreditAmount"=>25, "TaxDebitAmount"=>0, "CompoundOnTaxCode"=>""}, {"Batch"=>"JEBatch00001", "RefNo"=>"00000002589", "PKey"=>"APIPKey00001", "TaxCode"=>"AGS", "Seq"=>2, "TaxCreditAmount"=>50, "TaxDebitAmount"=>0, "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":"JEBatch00001","Description":"Journal Entry API Test 1","Recurring":"N","EndDate":"2017-12-31T00:00:00.000","DefaultCurrencyCode":"USD","Total":44,"CreditsTotal":44,"SumDebitsTotal":144,"SumCreditsTotal":75,"DiffDebitsTotal":-100,"DiffCreditsTotal":-31,"AllowTaxEntries":"N","Selected":"N","Posted":"N","Creator":"ADMIN","Period":201305,"Company":"A0","RecurSchedule":"N","RecurClearAmounts":"N","RecurStartDate":"","RecurFrequency":"","RecurType":"","RecurTimes":0,"RecurExpirationDate":"","RecurAutoPost":"N","RecurProcessQueue":"","RecurTimesUsed":0,"RecurLastPostDate":"","Reverse":"N","ReverseDate":"","ReverseAutoPost":"N","ReverseProcessQueue":"","RecurAlert":"N","ReverseAlert":"N","ProcessID":""}]