Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.

Query Parameters

from
string

REQUIRED — inclusive period start (YYYY-MM-DD, from <= to). Missing/inverted → 400.

to
string

REQUIRED — inclusive period end (YYYY-MM-DD, from <= to). Missing/inverted → 400.

store
string

Optional — narrow the écritures comptables to one store by its canonical id.

format
string

Output representation: json (default) returns the structured payload documented on the 200 response; file instead streams the raw, legal tab-delimited FEC text as a text/plain; charset=utf-8 attachment (Content-Disposition: attachment; filename="FEC_<from>_<to>.txt") — the body is the file itself, not this JSON envelope. Any other value 400s.

Response

For format=json (default): the structured FEC export — balanced entries, preview totals and the FEC text. For format=file: this JSON envelope is REPLACED by the raw tab-delimited FEC file streamed as a text/plain; charset=utf-8 attachment (Content-Disposition: attachment; filename="FEC_<from>_<to>.txt") — the content field below is exactly that file body.

For format=json (default): the structured FEC export — balanced entries, preview totals and the FEC text. For format=file: this JSON envelope is REPLACED by the raw tab-delimited FEC file streamed as a text/plain; charset=utf-8 attachment (Content-Disposition: attachment; filename="FEC_<from>_<to>.txt") — the content field below is exactly that file body.

from
string
required
to
string
required
entryCount
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
totalDebitCents
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
totalCreditCents
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
balanced
boolean
required
fileName
string
required
content
string
required
entries
object[]
required