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
id
string
required

Caller-supplied unique count-session id (409 if it exists).

Minimum string length: 1
shopId
string
required

The store (magasin) whose stock is being counted.

Minimum string length: 1
lines
object[]
required

The seeded count lines (at least one).

Minimum array length: 1

Response

The opened count session (status open, every line uncounted).

The opened count session (status open, every line uncounted).

id
string
required
Minimum string length: 1
shopId
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
open,
closed
lines
object[]
required