Skip to main content
POST
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.

Body

application/json
store
string

REQUIRED — the register chain id (per store) to seal the closure into. Missing → 400.

kind
enum<string>

REQUIRED — the closure kind (daily / monthly / annual) to seal.

Available options:
daily,
monthly,
annual
period
string

REQUIRED — the period key matching the kind (YYYY-MM-DD / YYYY-MM / YYYY); a mismatch 400s.

Response

The sealed (or already-sealed) closure record.

The sealed (or already-sealed) closure record.

id
string
required
chainId
string
required
kind
enum<string>
required
Available options:
daily,
monthly,
annual
period
string
required
periodStart
string
required
periodEnd
string
required
ticketCount
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
grossTotalCents
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
grandTotalCents
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
sequenceNumber
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
closedAt
string
required
previousValue
string
required
algorithm
string
required
value
string
required