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 to one store by its canonical id.

format
string

json (default) returns the structured payload; csv streams the raw ledger CSV as a text/csv; charset=utf-8 attachment (ecritures_<from>_<to>.csv). Any other value 400s.

delimiter
string

CSV field delimiter (default ;). One character.

decimalSeparator
string

Euro amount decimal separator, , (default) or ..

revenueAccount
string

Override the revenue (707) account. 3–20 digits.

vatAccount
string

Override the collected-VAT (44571) account. 3–20 digits.

roundingAccount
string

Override the rounding/suspense (471) account. 3–20 digits.

cashAccount
string

Override the cash encaissement (531) account. 3–20 digits.

bankAccount
string

Override the bank encaissement (512) account for card + split payments. 3–20 digits.

Response

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

For format=json (default): the structured export — balanced entries, totals and the CSV text. For format=csv: this JSON envelope is REPLACED by the raw ledger CSV streamed as a text/csv; charset=utf-8 attachment (Content-Disposition: attachment; filename="ecritures_<from>_<to>.csv") — 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