reverse_gl_journal_entry
Storno a posted journal entry: post its mirror image (accountant role).
Nothing is deleted; the original stays, linked, and the reversal entry is returned. The only VAT-correct storno door — VAT postings, open items and what the document spawned are all unwound.
body.posting_date dates the reversal and decides its period; omitted, it reuses
the original's. A closed-period entry needs one in an open period and a person:
the reversal is booked there; the entry stays unchanged.
409 when: the entry is a reversal or already corrected; a payroll run holds it; the date
falls in a filed VAT period; an open item still carries a live settlement; the target period
is closed or sealed; or a closed-period entry cannot be corrected (the reason is named). A
closed-period entry armed to reverse itself is left to the auto-reversal run (nightly, or
POST …/gl/auto-reversals/run by a person): conflict.closedPeriodEntryAutoReverses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"entry_id": "<entry_id>"
},
"name": "reverse_gl_journal_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| entry_id | Yes | ||
| company_id | Yes |