OfficeGest
Stocks/Recounts/{recount}/Lines

Add or update recount lines

Adds or increments article lines in a recount. Supports article lookup by article_id or barcode. Lot field is required for lot-managed articles. Each line quantity is accumulated on existing entries.

POST
/stocks/recounts/{recount}/lines
AuthorizationBearer <token>

In: header

Path Parameters

recountstring
linesarray<object>

List of article lines to add or increment in the recount.

lines.*.article_id?string

Article identifier. Required when barcode is not provided.

lines.*.barcode?string

Article barcode. Used as fallback when article_id is not provided.

lines.*.quantitynumber

Quantity to add. Accumulated on existing entry for the same article and lot.

lines.*.lot?string

Lot identifier. Required for lot-managed articles.

Response Body

curl -X POST "https://og-tenant1.test:8003/api/v2/stocks/recounts/string/lines" \
  -H "Content-Type: application/json" \
  -d '{
    "lines": [
      {
        "quantity": 5
      }
    ],
    "lines.*.quantity": 5
  }'
Empty
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}