Journal Entry

General ledger journal with debit and credit detail lines. Total debits must equal total credits.

Path Parameter::DOCKEY (integer) — the internal document ID used in the URL path

Endpoints

GET
/journalentry

List journal entries with pagination and filters

GET
/journalentry/:DOCKEY

Get a single journal entry by internal ID

POST
/journalentry

Create a new journal entry

PUT
/journalentry/:DOCKEY

Update an existing journal entry

DELETE
/journalentry/:DOCKEY

Delete a journal entry

Fields

FieldTypeRequiredNotes
dockeyintegerNoSend 0 to auto-assign.
Default: 0
docnostringNoLeave blank to auto-generate the journal number.
Default: ""
docdatestring
Yes
Document date in YYYY-MM-DD. Proven: "2026-09-30".
postdatestring
Yes
Posting date in YYYY-MM-DD. Proven: "2026-09-30".
journalstring
Yes
Journal type. Proven: "GENERAL".
descriptionstringNoJournal narrative. Proven: "Journal entry".
currencycodestringNoCurrency code. ---- means the base currency.
Default: "----"
sdsdocdetailarray
Yes
Debit and credit lines. At least one of each is needed.
sdsdocdetail[].dtlkeyintegerNoSend 0 for a new line.
Default: 0
sdsdocdetail[].codestring
Yes
Account code from GET /account → data[].code.
sdsdocdetail[].descriptionstringNoLine narrative. Proven: "Debit".
sdsdocdetail[].drstringNoDebit amount as a string decimal. Proven: "1000.00".
sdsdocdetail[].crstringNoCredit amount as a string decimal. Proven: "0.00".

Examples

POST — Create Journal Entry

POST /journalentry
{
  "dockey": 0,
  "docno": "",
  "docdate": "2026-09-30",
  "postdate": "2026-09-30",
  "journal": "GENERAL",
  "description": "Journal entry",
  "currencycode": "----",
  "sdsdocdetail": [
    {
      "dtlkey": 0,
      "code": "100-000",
      "description": "Debit",
      "dr": "1000.00",
      "cr": "0.00"
    },
    {
      "dtlkey": 0,
      "code": "500-000",
      "description": "Credit",
      "dr": "0.00",
      "cr": "1000.00"
    }
  ]
}

GET — List Journal Entries

GET /journalentry?offset=0

DELETE

DELETE /journalentry/1

Response: "OK" (plain text)

Notes