v1

latestOpenAPI 3.0.32026-07-268955212.1 KB
journal-entries

Reverse a journal entry

Reverse a journal entry for the company.

Journal entries possible to reverse

  • It's possible to reverse journal entries that have been created through the API. Journal entries that have been created through the Bokio UI can't be reversed through the API.
  • Journal entries that belong to a Bokio invoice or similar cannot be reversed using this endpoint.
  • Journal entries that have been reversed can not be reversed again.

Handling validation errors:

If this operation returns a 400 status code, inspect the response body's apiError object for more information. There will be additional information in the innerCode if the code=validation-error.

Scope: journal-entries:write

post/companies/{companyId}/journal-entries/{journalEntryId}/reverse

Response

Journal entry reversed

idstring uuid
titlestring
journalEntryNumberstring
datestring date
reversingJournalEntryIdstring uuid nullable
reversedByJournalEntryIdstring uuid nullable

Example response

{
  "id": "a419cf69-db6f-4de9-992c-b1a60942a443",
  "title": "invoice 1234",
  "journalEntryNumber": "V342",
  "date": "2024-10-10",
  "items": [
    {
      "id": 1,
      "debit": 200,
      "credit": 0,
      "account": 1930,
      "tags": []
    },
    {
      "id": 2,
      "debit": 0,
      "credit": 40,
      "account": 3011,
      "tags": []
    },
    {
      "id": 3,
      "debit": 0,
      "credit": 160,
      "account": 2611,
      "tags": []
    }
  ],
  "tags": []
}