A valid request URL is required to generate request examples{
"lines": [
{
"skuId": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"expectedQuantity": 10,
"countedQuantity": 8,
"varianceQuantity": -2,
"unitCostCents": 1500,
"valuedVarianceCents": -3000
}
],
"countedLineCount": 1,
"uncountedLineCount": 0,
"totalValuedVarianceCents": -3000,
"shrinkageValueCents": -3000,
"overageValueCents": 0
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123,
"fieldErrors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}Get a count session's valued variance
Returns the valued (book vs counted) variance of one physical count session: a per-line delta valued in integer cents, plus the shrinkage / overage totals. Read it after recording lines to preview the adjustment a close would emit. 404s for an unknown session id.
A valid request URL is required to generate request examples{
"lines": [
{
"skuId": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"expectedQuantity": 10,
"countedQuantity": 8,
"varianceQuantity": -2,
"unitCostCents": 1500,
"valuedVarianceCents": -3000
}
],
"countedLineCount": 1,
"uncountedLineCount": 0,
"totalValuedVarianceCents": -3000,
"shrinkageValueCents": -3000,
"overageValueCents": 0
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123,
"fieldErrors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}Authorizations
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.
Path Parameters
The physical count session (comptage) id.
1Response
The session's per-line valued variance with the shrinkage/overage totals.
The session's per-line valued variance with the shrinkage/overage totals.
Per-SKU book-vs-counted variance.
Show child attributes
Show child attributes
Lines with a recorded count.
0 <= x <= 9007199254740991Lines still awaiting a count.
0 <= x <= 9007199254740991Net valued variance across all lines, in cents.
-9007199254740991 <= x <= 9007199254740991Sum of the negative (loss) variances, in cents.
-9007199254740991 <= x <= 9007199254740991Sum of the positive (surplus) variances, in cents.
-9007199254740991 <= x <= 9007199254740991
