Stock

List stock

POST
/api/stock/list-stock
List current stock levels.
curl --request POST \
  --url https://rologi-flow.example.com/api/stock/list-stock \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Ras-Api-Version: 1' \
  --data '
{
  "systems": [
    "AS1",
    "AS2"
  ],
  "skus": [
    "digital-camera"
  ]
}
'
{
  "stock": [
    {
      "id": "01226N0640J7R",
      "site": "1000",
      "system": "AS1",
      "sku": "digital-camera",
      "lotNumber": "XYZ24041508A",
      "batchNumber": "X24078",
      "expiryDate": "2025-12-31",
      "physicalQuantity": {
        "amount": 3,
        "unit": "PIECE"
      },
      "allocatedQuantity": {
        "amount": 3,
        "unit": "PIECE"
      },
      "blockedQuantity": {
        "amount": 3,
        "unit": "PIECE"
      },
      "availableQuantity": {
        "amount": 3,
        "unit": "PIECE"
      },
      "location": "AS1-01-001",
      "container": "1234567890123"
    }
  ],
  "timestamp": "2025-11-01T10:30:00Z"
}

Returns the current stock levels across one or more systems. The result can be narrowed down to the given systems and SKUs; a filter that is not provided applies no restriction.

Authorizations

Authorization
stringheaderrequired

JWT bearer token authentication.

Parameters

Ras-Api-Version
enum<string>header
Available options: 1

Body

application/json
systems
string[] | null

Optional set of systems to filter by. If not provided, stock from all systems is returned. An empty set returns no stock.

skus
string[] | null

Optional set of SKUs (items or components) to filter by. If not provided, all SKUs are returned. An empty set returns no stock.

Response

application/json

Successful retrieval of stock levels.

stock
object[]

List of stock levels.

Hide child attributes

stock.id
string

Unique identifier of the stock level. It stays the same as long as the stock remains in its container.

stock.site
string

Identifier of the site.

stock.system
string

Identifier of the system.

stock.sku
string

Identifier of the SKU (item or component).

stock.lotNumber
string | null

Optional lot number.

stock.batchNumber
string | null

Optional batch number.

stock.expiryDate
string | null

Optional expiry date.

stock.physicalQuantity
object

Current quantity physically present. It is the sum of allocated, blocked and available quantities.

Hide child attributes

stock.physicalQuantity.amount
number

Numeric value representing the quantity amount.

stock.physicalQuantity.unit
enum<string> | null

Unit of measure for the quantity, such as pieces or grams. If not given, the default unit of measure applies, which is pieces unless agreed otherwise.

Available options: PIECE, GRAM, KILOGRAM
stock.allocatedQuantity
object

Current quantity allocated for picking.

Hide child attributes

stock.allocatedQuantity.amount
number

Numeric value representing the quantity amount.

stock.allocatedQuantity.unit
enum<string> | null

Unit of measure for the quantity, such as pieces or grams. If not given, the default unit of measure applies, which is pieces unless agreed otherwise.

Available options: PIECE, GRAM, KILOGRAM
stock.blockedQuantity
object

Current quantity blocked from being allocated for picking. Typically due to quality issue suspicion, recall, etc.

Hide child attributes

stock.blockedQuantity.amount
number

Numeric value representing the quantity amount.

stock.blockedQuantity.unit
enum<string> | null

Unit of measure for the quantity, such as pieces or grams. If not given, the default unit of measure applies, which is pieces unless agreed otherwise.

Available options: PIECE, GRAM, KILOGRAM
stock.availableQuantity
object

Current quantity available for allocation for picking.

Hide child attributes

stock.availableQuantity.amount
number

Numeric value representing the quantity amount.

stock.availableQuantity.unit
enum<string> | null

Unit of measure for the quantity, such as pieces or grams. If not given, the default unit of measure applies, which is pieces unless agreed otherwise.

Available options: PIECE, GRAM, KILOGRAM
stock.location
string | null

Optional location identifier.

stock.container
string | null

Optional identifier (typically some scancode like EAN13) of storage container (present on the location) containing the item.

timestamp
string

Timestamp of the stock snapshot.