---
title: "Create Journal Entry File"
method: POST
path: "/companies/{company_id}/journal-entry-files"
tags: ["journal-export"]
---

# Create Journal Entry File

`POST /companies/{company_id}/journal-entry-files`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/journal-entry-files`
- Auth: none declared

Generate a journal-entry export file from the selected bank entries (legacy).

200 → the file bytes as an ``attachment`` download, with ``X-Journal-*`` summary
headers. 422 ``{"msg"}`` on any invalid/ineligible/empty/over-cap selection. 503
``{"msg"}`` when the accountant is unreachable / fails. 409
``conflict.documentDateFiscalYearNotOpen`` when a selected movement's date has no
bookable fiscal year (ZET-316) — see the module docstring for why that one is not
retryable.

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- JournalEntryFileRequest: POST body for ``/companies/{company_id}/journal-entry-files``. ``bank_entry_ids`` is the selection of bank entries to export (≥1). Duplicates are rejected (not deduped) by the selection layer.
  - `bank_entry_ids` string[], required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
