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 pathEndpoints
GET
/journalentryList journal entries with pagination and filters
GET
/journalentry/:DOCKEYGet a single journal entry by internal ID
POST
/journalentryCreate a new journal entry
PUT
/journalentry/:DOCKEYUpdate an existing journal entry
DELETE
/journalentry/:DOCKEYDelete a journal entry
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| dockey | integer | No | Send 0 to auto-assign. Default: 0 |
| docno | string | No | Leave blank to auto-generate the journal number. Default: "" |
| docdate | string | Yes | Document date in YYYY-MM-DD. Proven: "2026-09-30". |
| postdate | string | Yes | Posting date in YYYY-MM-DD. Proven: "2026-09-30". |
| journal | string | Yes | Journal type. Proven: "GENERAL". |
| description | string | No | Journal narrative. Proven: "Journal entry". |
| currencycode | string | No | Currency code. ---- means the base currency. Default: "----" |
| sdsdocdetail | array | Yes | Debit and credit lines. At least one of each is needed. |
| sdsdocdetail[].dtlkey | integer | No | Send 0 for a new line. Default: 0 |
| sdsdocdetail[].code | string | Yes | Account code from GET /account → data[].code. |
| sdsdocdetail[].description | string | No | Line narrative. Proven: "Debit". |
| sdsdocdetail[].dr | string | No | Debit amount as a string decimal. Proven: "1000.00". |
| sdsdocdetail[].cr | string | No | Credit 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=0DELETE
DELETE /journalentry/1
Response: "OK" (plain text)Notes
- Total debits must equal total credits before the entry is accepted.
- Each detail line code must reference an existing account from GET /account.
- Unlike stock documents, the detail line code field holds an account code, not an item code.
