Create (POST) Journal Entry
Use this API to create a journal entry in the Transaction Center.
To create a journal entry:
Execute a POST command on the endpoint
{{url}}/ledger/{{TransType}}, by setting the variable
TransType to JE and specifying the transaction data for that journal entry in the request body.
For example, here is a request submitted using cURL:
curl --request POST \ --url 'https://{{url}}/ledger/JE' \ --header 'authorization: Bearer {{oauth_token}}' \ --header 'content-type: application/json' \ --data '{ "Batch": "PSA-API-JEBatch01", "Recurring": "Y", "Posted": "N", "Creator": "ADMIN", "Period": "201305", "EndDate": "2013-05-26T00:00:00.000", "Total": "0", "PostPeriod": "0", "PostSeq": "0", "Company": "0A", "DefaultCurrencyCode": "USD", "AllowTaxEntries": "Y", "jeMaster": [ { "Batch": "PSA-API-JEBatch01", "RefNo": "000000PSAAPI", "TransDate": "2013-05-22T00:00:00.000", "Type": "3", "Description": "Description Test", "Posted": "N", "Seq": "2", "UpdateBilled": "N", "CurrencyCode": "USD", "CurrencyExchangeOverrideMethod": "N", "CurrencyExchangeOverrideRate": "0", "Status": "S", "AuthorizedBy": "", "RejectReason": "", "ModUser": "ADMIN", "ModDate": "", "Diary": "" } ], "jeDetail": [ { "Batch": "PSA-API-JEBatch01", "RefNo": "000000PSAAPI", "PKey": "PSAAPIPKey1", "Seq": "1", "WBS1": "0A900000.US0", "WBS2": "A000", "WBS3": "", "Account": "51200", "DebitAmount": "560.00", "CreditAmount": "0", "Description": "Line 1", "TaxType": "I", "SuppressBill": "N", "CurrencyExchangeOverrideRate": "0", "LinkCompany": "", "DebitAmountFunctionalCurrency": "560.00", "CreditAmountFunctionalCurrency": "0", "DebitAmountProjectCurrency": "560.00", "CreditAmountProjectCurrency": "0" }, { "Batch": "PSA-API-JEBatch01", "RefNo": "000000PSAAPI", "PKey": "PSAAPIPKey2", "Seq": "2", "WBS1": "0A199900.400", "WBS2": "", "WBS3": "", "Account": "52311", "DebitAmount": "0", "CreditAmount": "560.00", "Description": "Line 2", "TaxType": "I", "SuppressBill": "N", "CurrencyExchangeOverrideRate": "0", "LinkCompany": "", "DebitAmountFunctionalCurrency": "0", "CreditAmountFunctionalCurrency": "560.00", "DebitAmountProjectCurrency": "0", "CreditAmountProjectCurrency": "560.00" } ], "jeDetailTax": [ { "Batch": "PSA-API-JEBatch01", "RefNo": "000000PSAAPI", "PKey": "PSAAPIPKey1", "TaxCode": "Y15", "TaxDebitAmount": "18", "TaxCreditAmount": "0", "CompoundOnTaxCode": "Y11", "Seq": "1" }, { "Batch": "PSA-API-JEBatch01", "RefNo": "000000PSAAPI", "PKey": "PSAAPIPKey2", "TaxCode": "LOW3HIGH12", "TaxDebitAmount": "0", "TaxCreditAmount": "18", "CompoundOnTaxCode": "", "Seq": "1" } ] }'
A successful POST returns the JSON representation of the newly created journal entry.