Start a new topic

Post a General Ledger Transaction and post to job cost

The following example posts a two line General Ledger entry, and also updates a job cost account.


{
  "date":"2018-09-18",
  "items":[
              {
                 "account":{
                            "accountNo":"70100"
                            },
                "memo":"Expense posting for labor",
                "type":"POrv+",
                "document":"PO-400766",
                "jobNo":"0001",
                "jobAccountNo":"0001",
                "baseDebitAmount":"997"
               },
              {
                 "account":{
                            "accountNo":"21130"
                            },
                "memo":"Expense posting for labor",
                "type":"POrv+",
                "document":"PO-400766",
                "baseCreditAmount":"997"
               }
            ]
}


This example assumes the General Ledger accounts exist, the date is within a valid fiscal period, and the job 0001 and job account 0001 exist.


To post the above, use the following endpoint.


https://localhost:10880/api/v1/companies/SuperCo/gl/transactions/


Login or Signup to post a comment