{
  "openapi": "3.1.0",
  "info": {
    "title": "Rologi Flow API",
    "description": "Rologi APIs for automated warehouse control and management.\n\nRequests need no context headers: the site and system a request concerns are part of its data. `Ras-Api-Version` is optional and selects the API version; clients generating their models from this document should send the version they were generated from.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://rologi-flow.example.com",
      "description": "Example base URL. Your Rologi integration provides yours."
    }
  ],
  "security": [
    {
      "JWT": []
    }
  ],
  "tags": [
    {
      "name": "Pick Tasks",
      "description": "Operations for managing pick tasks."
    },
    {
      "name": "Putaway Tasks",
      "description": "Operations for managing putaway tasks."
    },
    {
      "name": "Decanting Tasks",
      "description": "Operations for managing Decanting Tasks."
    },
    {
      "name": "Simple Items",
      "description": "Operations for managing Simple Items and their multipacks."
    },
    {
      "name": "Stock",
      "description": "Operations for querying stock status."
    },
    {
      "name": "User Management",
      "description": "Operations for synchronizing warehouse user accounts from the integrated system into Rologi Flow."
    }
  ],
  "paths": {
    "/api/pick-tasks/{id}": {
      "put": {
        "tags": [
          "Pick Tasks"
        ],
        "summary": "Create or update the given Pick Task.",
        "operationId": "upsertPickTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the Pick Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 1234
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PickTaskResponse"
                }
              }
            }
          },
          "409": {
            "description": "Pick Task may not be updated any longer, because it has been completed, canceled or is locked by Rologi Flow process, or a line to remove has stock reserved. For a Pick Task which is finished or being canceled, see the `type` of the error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "400": {
            "description": "Invalid data was provided in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "get": {
        "tags": [
          "Pick Tasks"
        ],
        "summary": "Returns the Pick Task of the given identifier.",
        "operationId": "getPickTaskById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the Pick Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 1234
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PickTaskResponse"
                }
              }
            }
          },
          "404": {
            "description": "If no such Pick Task is found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "delete": {
        "tags": [
          "Pick Tasks"
        ],
        "summary": "Cancel Pick Task.",
        "description": "Requests the cancellation of the Pick Task with the given ID; a Pick Task is never removed. Goods picked already stay valid and leave with their container for the expedition. The goods left to pick are not picked any more. `PickTaskFinished` with the state `CANCELED` tells the picks done. The operation is idempotent.",
        "operationId": "deletePickTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier of the Pick Task to cancel.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 1234
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Cancellation has been accepted, the Pick Task is `REVOKED` until the picks in progress are finished."
          },
          "204": {
            "description": "Pick Task is canceled or it does not exist."
          },
          "409": {
            "description": "Pick Task may not be canceled, see the `type` of the error: `TASK_COMPLETED` or `TASK_FAILED` for good, `TASK_SUBMITTING` until its submission to the automation system ends, `TASK_PICKING` while the automation system does not support canceling a Pick Task being picked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/pick-tasks": {
      "get": {
        "tags": [
          "Pick Tasks"
        ],
        "summary": "List Pick Tasks.",
        "description": "Returns a paged list of Pick Tasks. Use paging parameters to traverse the result set.",
        "operationId": "getPickTasks",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "description": "Page number (1..n).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1,
              "description": "Page number (1..n).",
              "example": 1,
              "minimum": 1
            },
            "example": 1
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of items per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50,
              "description": "Number of items per page.",
              "example": 50,
              "maximum": 1000,
              "minimum": 1
            },
            "example": 50
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfPickTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request sorts by an unsupported field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "post": {
        "tags": [
          "Pick Tasks"
        ],
        "summary": "Search Pick Tasks.",
        "description": "Returns a paged list of Pick Tasks matching the free text and the filter. Searching, filtering, and sorting apply to all Pick Tasks before the page is cut.",
        "operationId": "searchPickTasks",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickTaskSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfPickTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request uses an unsupported field, operator, or sort.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/putaway-tasks/{id}": {
      "put": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "Create or update putaway task.",
        "description": "Creates a new putaway task if it does not exist, or updates it if it already exists.",
        "operationId": "upsertPutawayTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the putaway task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutawayTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PutawayTaskResponse"
                }
              }
            }
          },
          "409": {
            "description": "Putaway Task may not be updated any longer, because it has been completed or is locked by Rologi Flow process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "400": {
            "description": "Invalid data was provided in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "get": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "Returns the Putaway Task of the given identifier.",
        "operationId": "getPutawayTaskById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the Putaway Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PutawayTaskResponse"
                }
              }
            }
          },
          "404": {
            "description": "If no such Putaway Task is found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "patch": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "Update Putaway Task and/or Lines priority.",
        "description": "Priority of a Putaway Task and of each of its Lines is expressed by the same pair of sort keys: `priorityTimestamp` (earlier first) and `priority` (lower value first, 0 is the highest priority); missing values sort last. How the Task and Line pairs are combined is defined by the sorting strategy of the workstation activity processing the work, e.g. Task first and then Line, or Line first and then Task; strategies may differ per activity, and some automation technologies apply their own ordering. Putaway orders the Lines of all activated carts together, by Line priority first and then by Task priority. To prioritize by `priority` only (e.g. CRITICAL = 0, HIGH = 10, MEDIUM = 20, LOW = 30), never send `priorityTimestamp`; sending it for some Tasks or Lines only makes those sort before all others. The automation technology may evaluate `priorityTimestamp` with reduced precision. Only lines listed in the request are updated; omitted lines keep their current values. The Task priority pair is always replaced by the request, so an omitted or null field clears it; the same applies to the priority pair of each listed line. Putaway Tasks already in progress can be reprioritized as well; the new priority orders their remaining work. Requires a permission granted to administrators and to the WMS integration.",
        "operationId": "updatePriorityForPutawayTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the putaway task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutawayTaskPriorityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PutawayTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "A Putaway Task Line id in the request is unknown or listed more than once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The caller is not permitted to change Putaway Task priority.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "If no such Putaway Task is found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Putaway Task priority may not be updated any longer, because it has been completed or is locked by Rologi Flow process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "delete": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "Cancel putaway task.",
        "description": "Requests the cancellation of the putaway task with the given ID; a putaway task is never removed. Totes put away already stay valid and a tote just being put away is finished. The totes left are taken to the canceled goods area, then the putaway task becomes `CANCELED`. The operation is idempotent.",
        "operationId": "deletePutawayTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier of the putaway task to cancel.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Cancellation is accepted, the Putaway Task is `REVOKED` until the work in progress is finished."
          },
          "204": {
            "description": "Putaway Task is canceled or it does not exist."
          },
          "409": {
            "description": "Putaway Task may not be canceled any longer, see the `type` of the error: `TASK_COMPLETED` or `TASK_FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/putaway-tasks": {
      "get": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "List Putaway Tasks.",
        "description": "Returns a paged list of Putaway Tasks. Use paging parameters to traverse the result set.",
        "operationId": "getPutawayTasks",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "description": "Page number (1..n).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1,
              "description": "Page number (1..n).",
              "example": 1,
              "minimum": 1
            },
            "example": 1
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of items per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50,
              "description": "Number of items per page.",
              "example": 50,
              "maximum": 1000,
              "minimum": 1
            },
            "example": 50
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfPutawayTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request sorts by an unsupported field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "post": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "Search Putaway Tasks.",
        "description": "Returns a paged list of Putaway Tasks matching the free text and the filter. Searching, filtering, and sorting apply to all Putaway Tasks before the page is cut.",
        "operationId": "searchPutawayTasks",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutawayTaskSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfPutawayTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request uses an unsupported field, operator, or sort.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/putaway-tasks/{id}/lines/{lineId}": {
      "delete": {
        "tags": [
          "Putaway Tasks"
        ],
        "summary": "Cancel putaway task line.",
        "description": "Requests the cancellation of a single line of the putaway task; a line is never removed. A tote just being put away is finished and the line ends up `COMPLETED`, unless the operator gives the tote up. The other lines go on. A tote not put away is taken to the canceled goods area with its cart once the cart has nothing else to put away. The outcome of the putaway task is told by `PutawayTaskFinished`. The operation is idempotent.",
        "operationId": "deletePutawayTaskLine",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier of the putaway task of the line.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "lineId",
            "in": "path",
            "description": "Identifier of the putaway task line to cancel, unique within its putaway task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 1
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Cancellation is accepted, the line is `REVOKED` until the operator finishes the tote."
          },
          "204": {
            "description": "The line is canceled or it does not exist."
          },
          "409": {
            "description": "The line may not be canceled any longer, see the `type` of the error: `TASK_COMPLETED` or `TASK_FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/decanting-tasks/{id}": {
      "put": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "Create or update Decanting Task.",
        "description": "Creates a new Decanting Task if it does not exist, or updates it if it already exists.",
        "operationId": "upsertDecantingTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the Decanting Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecantingTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecantingTaskResponse"
                }
              }
            }
          },
          "409": {
            "description": "Decanting Task may not be updated any longer, because it has been completed or is locked by Rologi Flow process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "400": {
            "description": "Invalid data was provided in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "get": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "Returns the Decanting Task of the given identifier.",
        "operationId": "getDecantingTaskById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the Decanting Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecantingTaskResponse"
                }
              }
            }
          },
          "404": {
            "description": "If no such Decanting Task is found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "patch": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "Update Decanting Task and/or Lines priority.",
        "description": "Priority of a Decanting Task and of each of its Lines is expressed by the same pair of sort keys: `priorityTimestamp` (earlier first) and `priority` (lower value first, 0 is the highest priority); missing values sort last. How the Task and Line pairs are combined is defined by the sorting strategy of the workstation activity processing the work, e.g. Task first and then Line, or Line first and then Task; strategies may differ per activity, and some automation technologies apply their own ordering. Decanting orders by Task priority first and then by Line priority, keeping the Lines of a Task together. To prioritize by `priority` only (e.g. CRITICAL = 0, HIGH = 10, MEDIUM = 20, LOW = 30), never send `priorityTimestamp`; sending it for some Tasks or Lines only makes those sort before all others. The automation technology may evaluate `priorityTimestamp` with reduced precision. Only lines listed in the request are updated; omitted lines keep their current values. The Task priority pair is always replaced by the request, so an omitted or null field clears it; the same applies to the priority pair of each listed line. Decanting Tasks already in progress can be reprioritized as well; the new priority orders their remaining work. Requires a permission granted to administrators and to the WMS integration.",
        "operationId": "updatePriorityForDecantingTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the Decanting Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecantingTaskPriorityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecantingTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "A Decanting Task Line id in the request is unknown or listed more than once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The caller is not permitted to change Decanting Task priority.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "If no such Decanting Task is found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Decanting Task priority may not be updated any longer, because it has been completed or is locked by Rologi Flow process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "delete": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "Cancel Decanting Task.",
        "description": "Requests the cancellation of the Decanting Task with the given ID; a Decanting Task is never removed. Goods decanted already stay valid. The goods left to decant are taken to the canceled goods area by an operator, then the Decanting Task becomes `CANCELED`. The operation is idempotent.",
        "operationId": "deleteDecantingTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier of the Decanting Task to cancel.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Cancellation has been accepted, the Decanting Task is `REVOKED` until the goods left are taken away."
          },
          "204": {
            "description": "Decanting Task is canceled or it does not exist."
          },
          "409": {
            "description": "Decanting Task may not be canceled any longer, see the `type` of the error: `TASK_COMPLETED` or `TASK_FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/decanting-tasks": {
      "get": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "List Decanting Tasks.",
        "description": "Returns a paged list of Decanting Tasks. Use paging parameters to traverse the result set.",
        "operationId": "getDecantingTasks",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "description": "Page number (1..n).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1,
              "description": "Page number (1..n).",
              "example": 1,
              "minimum": 1
            },
            "example": 1
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of items per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50,
              "description": "Number of items per page.",
              "example": 50,
              "maximum": 1000,
              "minimum": 1
            },
            "example": 50
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfDecantingTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request sorts by an unsupported field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "post": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "Search Decanting Tasks.",
        "description": "Returns a paged list of Decanting Tasks matching the free text and the filter. Searching, filtering, and sorting apply to all Decanting Tasks before the page is cut.",
        "operationId": "searchDecantingTasks",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecantingTaskSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfDecantingTaskResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request uses an unsupported field, operator, or sort.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/decanting-tasks/{id}/lines/{lineId}": {
      "delete": {
        "tags": [
          "Decanting Tasks"
        ],
        "summary": "Cancel Decanting Task Line.",
        "description": "Requests the cancellation of a single line of the Decanting Task; a line is never removed. Goods decanted already stay valid. The goods left to decant are taken to the canceled goods area by an operator, then the line becomes `CANCELED`. The other lines go on. When the last open line is finished, `DecantingTaskFinished` tells the outcome of the Decanting Task. The operation is idempotent.",
        "operationId": "deleteDecantingTaskLine",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier of the Decanting Task of the line.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 12345
          },
          {
            "name": "lineId",
            "in": "path",
            "description": "Identifier of the Decanting Task Line to cancel, unique within its Decanting Task.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": 1
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Cancellation has been accepted, the line is `REVOKED` until the goods left are taken away."
          },
          "204": {
            "description": "The line is canceled or it does not exist."
          },
          "409": {
            "description": "The line may not be canceled any longer, see the `type` of the error: `TASK_COMPLETED` or `TASK_FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/simple-items/{id}": {
      "put": {
        "tags": [
          "Simple Items"
        ],
        "summary": "Create or update simple item.",
        "description": "Creates a new simple item if it does not exist, or updates it if it already exists.",
        "operationId": "upsertSimpleItem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSimpleItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleItemResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "400": {
            "description": "Invalid data was provided in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "get": {
        "tags": [
          "Simple Items"
        ],
        "summary": "Get simple item by ID.",
        "description": "Returns full details of a simple item for the given identifier.",
        "operationId": "getSimpleItemById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleItemResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "delete": {
        "tags": [
          "Simple Items"
        ],
        "summary": "Delete simple item.",
        "description": "Deletes the simple item with the given ID. The operation is idempotent.",
        "operationId": "deleteSimpleItem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/simple-items": {
      "post": {
        "tags": [
          "Simple Items"
        ],
        "summary": "Upsert simple items in batch.",
        "description": "Upserts multiple simple items in a single request. Unknown identifiers will be inserted, matching identifiers will be either ignored or updated (depending on setting in the request body). In case of multiple entries sharing the same ID, only the last one will be processed.",
        "operationId": "batchUpsertSimpleItems",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpsertRequestOfUpsertSimpleItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "207": {
            "description": "See response body for detailed information about the operation outcomes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchUpsertResponse"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchUpsertResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "400": {
            "description": "Invalid data was provided in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "get": {
        "tags": [
          "Simple Items"
        ],
        "summary": "List simple items.",
        "description": "Returns a paged list of simple items. Use paging parameters to traverse the result set.\n\nSorting supports the fields:\n\n- `id`\n- `name`\n- `uom`",
        "operationId": "getAllSimpleItems",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "description": "Page number (1..n).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1,
              "description": "Page number (1..n).",
              "example": 1,
              "minimum": 1
            },
            "example": 1
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of items per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50,
              "description": "Number of items per page.",
              "example": 50,
              "maximum": 1000,
              "minimum": 1
            },
            "example": 50
          },
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfSimpleItemSummaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      },
      "delete": {
        "tags": [
          "Simple Items"
        ],
        "summary": "Delete simple items in batch.",
        "description": "Deletes multiple simple items in a single request. Unknown identifiers are ignored, matching identifiers will be deleted.",
        "operationId": "batchDeleteSimpleItems",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchDeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "400": {
            "description": "Invalid data was provided in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/simple-items/search": {
      "post": {
        "tags": [
          "Simple Items"
        ],
        "summary": "Search simple items.",
        "description": "Returns a paged list of simple items matching the free text and the filter. Searching, filtering, and sorting apply to the whole catalogue before the page is cut.",
        "operationId": "searchSimpleItems",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimpleItemSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOfSimpleItemSummaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request uses an unsupported field, operator, or sort.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/stock/list-stock": {
      "post": {
        "tags": [
          "Stock"
        ],
        "summary": "List current stock levels.",
        "description": "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.",
        "operationId": "listStock",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListStockRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful retrieval of stock levels.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request refers to an unknown system.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    },
    "/api/users/import": {
      "post": {
        "tags": [
          "User Management"
        ],
        "summary": "Import or synchronize users.",
        "description": "Accepts a batch of user records from the integrated system and queues them for processing in Rologi Flow. Existing users are updated, unknown users are created, and users marked as DELETED are removed.",
        "operationId": "importUsers",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserEntry"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "User import accepted for processing."
          },
          "401": {
            "description": "Unauthorized – invalid or missing JWT bearer token."
          },
          "403": {
            "description": "Forbidden – authenticated but not authorized to access this resource."
          },
          "500": {
            "description": "Rologi Flow service internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Rologi Flow service error. The request should be retried according to the agreed retry policy."
          },
          "503": {
            "description": "Rologi Flow service is not available. The request should be retried according to the agreed retry policy."
          },
          "504": {
            "description": "Rologi Flow service timeout. The request should be retried according to the agreed retry policy."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BatchDeleteRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BatchError": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        }
      },
      "BatchUpsertRequestOfUpsertSimpleItemRequest": {
        "type": "object",
        "properties": {
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdEntryOfUpsertSimpleItemRequest"
            }
          }
        }
      },
      "BatchUpsertResponse": {
        "type": "object",
        "properties": {
          "upserted": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchError"
            }
          }
        }
      },
      "Container": {
        "type": "object",
        "description": "Container used to hold or move goods (tote, pallet, bin, tray, and similar).",
        "properties": {
          "type": {
            "type": "string",
            "description": "Type of the container.",
            "enum": [
              "PALLET",
              "CART",
              "PUT_WALL",
              "TOTE",
              "CRATE",
              "BOX",
              "BAG",
              "SLOT",
              "AUTOSTORE_BIN",
              "WELAND_TRAY"
            ],
            "example": "TOTE"
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional container variant (for example size or model).",
            "example": "TOTE-S"
          },
          "lpn": {
            "type": [
              "string",
              "null"
            ],
            "description": "License plate number, barcode, or other scannable identifier of the container.",
            "example": "TOTE-001-001"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional physical location of the container.",
            "example": "AS1-01-001"
          }
        },
        "required": [
          "type"
        ]
      },
      "DecantingTaskLine": {
        "type": "object",
        "description": "Represents a single line item within a Decanting Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Decanting Task Line, it needs to be unique in the context of a single Decanting Task.",
            "example": "1"
          },
          "item": {
            "type": "string",
            "description": "Stock keeping unit identifier.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity to be decanted."
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Line-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "container": {
            "description": "The optional container in which the items are placed.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Container"
              },
              {
                "type": "null"
              }
            ]
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the item.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the item.",
            "example": "X24078"
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of the item.",
            "example": "2025-12-31"
          }
        },
        "required": [
          "id",
          "item",
          "quantity"
        ]
      },
      "DecantingTaskLinePriorityUpdate": {
        "type": "object",
        "description": "Priority update for a single Decanting Task Line.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Decanting Task Line, unique within the Decanting Task.",
            "example": "1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds. Omitted or null clears it.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Line-level priority key, lower value first (0 is the highest priority); missing values sort last. Omitted or null clears it.",
            "example": 1
          }
        },
        "required": [
          "id"
        ]
      },
      "DecantingTaskLineResponse": {
        "type": "object",
        "description": "Represents a single line item within a Decanting Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Decanting Task Line, it needs to be unique in the context of a single Decanting Task.",
            "example": "1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Line-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "state": {
            "type": "string",
            "description": "Current state of the Decanting Task Line.",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "item": {
            "type": "string",
            "description": "Stock keeping unit identifier.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity to be decanted."
          },
          "container": {
            "description": "The optional container in which the items are placed.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Container"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of the item.",
            "example": "2025-12-31"
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the item.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the item.",
            "example": "X24078"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Decanting Task Line reached a final state, whichever it is, see its state for the outcome. Not given until then.",
            "example": "2025-11-01T10:05:00.000Z"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time when the Decanting Task Line was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.",
            "example": "2025-11-01T08:15:30.125Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the latest change of the Decanting Task Line recorded in Rologi Flow. It is not the time of its completion.",
            "example": "2025-11-01T09:42:10.500Z"
          }
        },
        "required": [
          "createdAt",
          "id",
          "item",
          "quantity",
          "state",
          "updatedAt"
        ]
      },
      "DecantingTaskPriorityRequest": {
        "type": "object",
        "description": "Request to update priority of a Decanting Task and its lines.",
        "properties": {
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds. Omitted or null clears it.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Task-level priority key, lower value first (0 is the highest priority); missing values sort last. Omitted or null clears it.",
            "example": 1
          },
          "lines": {
            "type": "array",
            "description": "List of Decanting Task Lines whose priority should be updated.",
            "items": {
              "$ref": "#/components/schemas/DecantingTaskLinePriorityUpdate"
            }
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional reason for the priority change given by the operator, kept in the audit trail of the Decanting Task.",
            "example": "Urgent customer order"
          }
        },
        "required": [
          "lines"
        ]
      },
      "DecantingTaskRequest": {
        "type": "object",
        "description": "Request to create or update a Decanting Task.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Identifier of the site or warehouse.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system within the site or warehouse.",
            "example": "AS1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Task-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name for the Decanting Task.",
            "example": "Morning DHL delivery 2025-11-01"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional type of the Decanting Task.",
            "example": "GOODS_RECEIPT"
          },
          "supplier": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name of the supplier.",
            "example": "Acme Company Ltd."
          },
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "The container from which the items of this Decanting Task are sourced."
          },
          "traits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional free-form key/value traits of the Decanting Task, e.g. a reference the integrated system needs to see with it. Rologi Flow keeps them as received without interpreting them and returns them with the Decanting Task. Each create or update replaces them, so traits not sent are removed.",
            "example": {
              "deliveryNote": "DN-2025-000456"
            }
          },
          "lines": {
            "type": "array",
            "description": "List of Decanting Task Lines.",
            "items": {
              "$ref": "#/components/schemas/DecantingTaskLine"
            }
          }
        },
        "required": [
          "container",
          "lines",
          "site",
          "system"
        ]
      },
      "DecantingTaskResponse": {
        "type": "object",
        "description": "Decanting Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the Decanting Task.",
            "example": "12345"
          },
          "site": {
            "type": "string",
            "description": "Identifier of the site or warehouse.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system within the site or warehouse.",
            "example": "AS1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Decanting Task.",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name for the Decanting Task.",
            "example": "Morning DHL delivery 2025-11-01"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Task-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional type of the Decanting Task.",
            "example": "GOODS_RECEIPT"
          },
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "The container from which the items of this Decanting Task are sourced."
          },
          "traits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Free-form key/value traits of the Decanting Task as supplied by the integrated system. Not given when none were supplied.",
            "example": {
              "deliveryNote": "DN-2025-000456"
            }
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Decanting Task reached a final state, whichever it is, see its state for the outcome. Not given until then.",
            "example": "2025-11-01T10:05:00.000Z"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time when the Decanting Task was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.",
            "example": "2025-11-01T08:15:30.125Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the latest change of the Decanting Task recorded in Rologi Flow. It is not the time of its completion.",
            "example": "2025-11-01T09:42:10.500Z"
          },
          "lines": {
            "type": "array",
            "description": "List of this Decanting Task Lines.",
            "items": {
              "$ref": "#/components/schemas/DecantingTaskLineResponse"
            }
          }
        },
        "required": [
          "container",
          "createdAt",
          "id",
          "lines",
          "site",
          "state",
          "system",
          "updatedAt"
        ]
      },
      "DecantingTaskSearchRequest": {
        "type": "object",
        "description": "Search for Decanting Tasks. Fields of a nested list match when at least one element matches. Unknown or unsupported fields are rejected with `400`. Results are always ordered by `id` last, so paging is stable.\n\n`search` matches a resource when **any** of these fields contains the text (OR):\n\n- `id`\n- `name`\n\n`filter` conditions may use these fields. A resource must match **all** conditions, and the `search` if given (AND):\n\n- `id`\n- `name`\n- `site`\n- `system`\n- `state`\n- `type`\n- `priority`\n- `priorityTimestamp`\n- `container.lpn`\n- `finishedAt`\n- `createdAt`\n- `updatedAt`\n- `lines.id`\n- `lines.state`\n- `lines.item`\n- `lines.container.lpn`\n\n`page.sort` accepts these fields:\n\n- `id`\n- `name`\n- `site`\n- `system`\n- `state`\n- `type`\n- `priority`\n- `priorityTimestamp`\n- `container.lpn`\n- `finishedAt`\n- `createdAt`\n- `updatedAt`",
        "properties": {
          "filter": {
            "description": "Optional query filter. Currently only `FilterQuery` (type `QUERY`) is supported.",
            "example": {
              "type": "QUERY",
              "query": [
                {
                  "field": "state",
                  "operator": "in",
                  "value": [
                    "COMPLETED",
                    "CANCELED",
                    "FAILED"
                  ]
                }
              ]
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/QueryFilter"
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "$ref": "#/components/schemas/Page",
            "description": "Paging and sort parameters. When not specified it defaults to page number 1, size 50, and unsorted."
          },
          "search": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional free text. A resource matches when any of its searchable fields contains the text, ignoring case. The text is taken as a whole, without wildcards. Combined with `filter` using logical AND.",
            "example": "chocolate"
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Represents a single error with details about what went wrong.",
        "properties": {
          "field": {
            "type": [
              "string",
              "null"
            ],
            "description": "Field name where the error occurred, if applicable. It is missing when the error is nor related to a given field",
            "example": "quantity.amount"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message.",
            "example": "Quantity amount must be positive."
          },
          "type": {
            "type": "string",
            "description": "ProcessStage or category of the error.",
            "example": "ValidationError"
          }
        },
        "required": [
          "message",
          "type"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Generic error response containing errors details.",
        "properties": {
          "errors": {
            "type": "array",
            "description": "List of errors that occurred.",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the error occurred.",
            "example": "2025-01-15T10:30:00Z"
          }
        },
        "required": [
          "errors",
          "timestamp"
        ]
      },
      "ExpiryDateRange": {
        "type": "object",
        "description": "Represents an expiry date range with optional minimum and maximum boundaries. If a boundary is not specified, any date is acceptable for that boundary.",
        "properties": {
          "min": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional minimum date of the range. If not specified, any date is acceptable as the minimum.",
            "example": "2025-12-31"
          },
          "max": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional maximum date of the range. If not specified, any date is acceptable as the maximum.",
            "example": "2026-12-31"
          }
        }
      },
      "FilterCondition": {
        "type": "object",
        "description": "Single field filter condition.",
        "properties": {
          "field": {
            "type": "string",
            "description": "Entity field name to filter on.",
            "example": "name"
          },
          "operator": {
            "type": "string",
            "description": "Comparison operator.",
            "enum": [
              "is",
              "eq",
              "ne",
              "co",
              "sw",
              "ew",
              "gt",
              "gte",
              "lt",
              "lte",
              "in"
            ]
          },
          "value": {
            "type": [
              "string",
              "number",
              "integer",
              "boolean",
              "array",
              "null"
            ],
            "description": "Value to compare against. Type depends on the field and operator (scalar or collection for `in`). The server coerces JSON values to the entity field type (e.g. TSID as base32 string, enum constant name, ISO-8601 instant). Use `true` or `false` with operator `is` for null checks.",
            "example": "John"
          }
        },
        "required": [
          "field",
          "operator"
        ]
      },
      "IdEntryOfUpsertSimpleItemRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "entry": {
            "$ref": "#/components/schemas/UpsertSimpleItemRequest"
          }
        }
      },
      "ItemPackagingUnitResponse": {
        "type": "object",
        "description": "Representation of a packaging the item arrives in from a supplier",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the packaging within the item",
            "example": "CARTON-60"
          },
          "scancode": {
            "type": "string",
            "description": "Scancode printed on the packaging",
            "example": "18000500037564"
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "description": "Number of pieces of the item contained in the packaging",
            "example": 60
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the packaging",
            "example": "https://cdn.example.com/items/chocolate-bar-carton-60.png"
          },
          "dimensions": {
            "description": "Outer size of the packaging",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of the packaging",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ItemWeight": {
        "type": "object",
        "description": "Weight of goods, expressed in whole numbers of the unit it carries. At least one of the values has to be provided.",
        "properties": {
          "net": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Weight of the goods alone.",
            "example": 43
          },
          "gross": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Weight of the goods including their wrapping.",
            "example": 47
          },
          "unit": {
            "type": "string",
            "default": "GRAM",
            "description": "Unit the weight values are expressed in.",
            "enum": [
              "GRAM"
            ],
            "example": "GRAM"
          }
        }
      },
      "ListStockRequest": {
        "type": "object",
        "description": "Request to list stock levels.",
        "properties": {
          "systems": {
            "type": [
              "array",
              "null"
            ],
            "description": "Optional set of systems to filter by. If not provided, stock from all systems is returned. An empty set returns no stock.",
            "example": [
              "AS1",
              "AS2"
            ],
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          },
          "skus": {
            "type": [
              "array",
              "null"
            ],
            "description": "Optional set of SKUs (items or components) to filter by. If not provided, all SKUs are returned. An empty set returns no stock.",
            "example": [
              "digital-camera"
            ],
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          }
        }
      },
      "NominalDimensions": {
        "type": "object",
        "description": "Physical size, expressed in the unit it carries. Length is the longer base side; width is the shorter (width ≤ length).",
        "properties": {
          "length": {
            "type": "integer",
            "format": "int32",
            "description": "Longer base side.",
            "example": 400
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "description": "Shorter base side.",
            "example": 300
          },
          "height": {
            "type": "integer",
            "format": "int32",
            "description": "Height.",
            "example": 220
          },
          "unit": {
            "type": "string",
            "description": "Unit the dimensions are expressed in.",
            "enum": [
              "MILLIMETER"
            ],
            "example": "MILLIMETER"
          }
        },
        "required": [
          "height",
          "length",
          "width"
        ]
      },
      "PackResponse": {
        "type": "object",
        "description": "Representation of a multipack belonging to a simple item",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the multipack",
            "example": "CHOCOLATE-BAR-PACK-6",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "description": "Human readable name of the multipack",
            "example": "Chocolate Bar - Pack of 6",
            "minLength": 1
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the multipack",
            "example": "https://cdn.example.com/items/chocolate-bar-pack-6.png"
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "description": "Number of base items contained in the multipack",
            "example": 6
          },
          "scancodes": {
            "type": "array",
            "description": "Scannable barcodes assigned to the multipack, in ascending order",
            "example": [
              "2000000000001",
              "2000000000002"
            ],
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "packagingUnits": {
            "type": "array",
            "description": "Supplier packagings defined for this multipack, ordered by identifier",
            "items": {
              "$ref": "#/components/schemas/ItemPackagingUnitResponse"
            },
            "uniqueItems": true
          },
          "dimensions": {
            "description": "Outer size of the multipack",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of the multipack",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "scancodes"
        ]
      },
      "Page": {
        "type": "object",
        "description": "Paging and sort parameters (1-based page number).",
        "properties": {
          "number": {
            "type": "integer",
            "format": "int32",
            "default": 1,
            "description": "Page number (1..n).",
            "example": 1,
            "minimum": 1
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "default": 50,
            "description": "Number of items per page.",
            "example": 50,
            "maximum": 1000,
            "minimum": 1
          },
          "sort": {
            "type": "string",
            "description": "Optional sort criteria as a compact string. Defaults to unsorted if not given.",
            "example": "state desc, name"
          }
        }
      },
      "PageInfo": {
        "type": "object",
        "description": "Paging metadata describing the current slice of a larger result set.",
        "properties": {
          "number": {
            "type": "integer",
            "format": "int32",
            "description": "1-based index of this page (same convention as paging request parameter `number`).",
            "example": 1,
            "minimum": 1
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "description": "Page size requested (maximum number of items per page).",
            "example": 50,
            "minimum": 1
          },
          "totalElements": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of matching items across all pages.",
            "minimum": 0
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "description": "Total number of pages for the query at the requested page size.",
            "minimum": 0
          }
        },
        "required": [
          "number",
          "size",
          "totalElements",
          "totalPages"
        ]
      },
      "PageOfDecantingTaskResponse": {
        "type": "object",
        "description": "Paginated result: items for the current page plus paging metadata. Page numbers are 1-based and match the paging request parameters.",
        "properties": {
          "content": {
            "type": "array",
            "description": "Items for this page (length may be less than the requested size on the last page).",
            "items": {
              "$ref": "#/components/schemas/DecantingTaskResponse"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo",
            "description": "Paging metadata for this response."
          }
        },
        "required": [
          "content",
          "page"
        ]
      },
      "PageOfPickTaskResponse": {
        "type": "object",
        "description": "Paginated result: items for the current page plus paging metadata. Page numbers are 1-based and match the paging request parameters.",
        "properties": {
          "content": {
            "type": "array",
            "description": "Items for this page (length may be less than the requested size on the last page).",
            "items": {
              "$ref": "#/components/schemas/PickTaskResponse"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo",
            "description": "Paging metadata for this response."
          }
        },
        "required": [
          "content",
          "page"
        ]
      },
      "PageOfPutawayTaskResponse": {
        "type": "object",
        "description": "Paginated result: items for the current page plus paging metadata. Page numbers are 1-based and match the paging request parameters.",
        "properties": {
          "content": {
            "type": "array",
            "description": "Items for this page (length may be less than the requested size on the last page).",
            "items": {
              "$ref": "#/components/schemas/PutawayTaskResponse"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo",
            "description": "Paging metadata for this response."
          }
        },
        "required": [
          "content",
          "page"
        ]
      },
      "PageOfSimpleItemSummaryResponse": {
        "type": "object",
        "description": "Paginated result: items for the current page plus paging metadata. Page numbers are 1-based and match the paging request parameters.",
        "properties": {
          "content": {
            "type": "array",
            "description": "Items for this page (length may be less than the requested size on the last page).",
            "items": {
              "$ref": "#/components/schemas/SimpleItemSummaryResponse"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo",
            "description": "Paging metadata for this response."
          }
        },
        "required": [
          "content",
          "page"
        ]
      },
      "PickTaskLine": {
        "type": "object",
        "description": "Represents a single line item within a Pick Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Pick Task Line, it needs to be unique in the context of a single Pick Task.",
            "example": "1"
          },
          "item": {
            "type": "string",
            "description": "Stock keeping unit identifier.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity to be picked."
          },
          "expiryDateRange": {
            "description": "Optional expiry date range for the item. Specifies minimum and/or maximum expiry dates.",
            "example": {
              "min": "2025-12-31",
              "max": "2026-12-31"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/ExpiryDateRange"
              },
              {
                "type": "null"
              }
            ]
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the item.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the item.",
            "example": "X24078"
          }
        },
        "required": [
          "id",
          "item",
          "quantity"
        ]
      },
      "PickTaskLineResponse": {
        "type": "object",
        "description": "Represents a single line item within a Pick Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Pick Task Line, it needs to be unique in the context of a single Pick Task.",
            "example": "1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Pick Task Line.",
            "enum": [
              "CREATED",
              "SUBMITTED",
              "PICKING",
              "COMPLETED",
              "SHORT_PICKED",
              "CANCELED",
              "FAILED"
            ]
          },
          "item": {
            "type": "string",
            "description": "Stock keeping unit identifier.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity to be picked."
          },
          "expiryDateRange": {
            "description": "Optional expiry date range for the item. Specifies minimum and/or maximum expiry dates.",
            "example": {
              "min": "2025-12-31",
              "max": "2026-12-31"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/ExpiryDateRange"
              },
              {
                "type": "null"
              }
            ]
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the item.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the item.",
            "example": "X24078"
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the picking of the Pick Task Line started by its first pick. Not given until then.",
            "example": "2025-11-01T09:12:45.250Z"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Pick Task Line reached a final state, whichever it is, see its state for the outcome. Not given until then.",
            "example": "2025-11-01T10:05:00.000Z"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time when the Pick Task Line was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.",
            "example": "2025-11-01T08:15:30.125Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the latest change of the Pick Task Line recorded in Rologi Flow. It is not the time of its completion.",
            "example": "2025-11-01T09:42:10.500Z"
          }
        },
        "required": [
          "createdAt",
          "id",
          "item",
          "quantity",
          "state",
          "updatedAt"
        ]
      },
      "PickTaskRequest": {
        "type": "object",
        "description": "Request to create or update a Pick Task.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Identifier of the site or warehouse.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system within the site or warehouse from which stock should be picked.",
            "example": "AS1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Optional timestamp used for priority ordering of Pick Tasks. The current time is used internally when not given.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Priority within the same priority timestamp. Lower values indicate higher priority.",
            "example": 1
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name for the Pick Task.",
            "example": "1012345678 - John Doe"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional type of the Pick Task.",
            "example": "CUSTOMER_ORDER"
          },
          "traits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional free-form key/value traits of the Pick Task, e.g. a reference the integrated system needs to see with it. Rologi Flow keeps them as received without interpreting them and returns them with the Pick Task. Each create or update replaces them, so traits not sent are removed.",
            "example": {
              "orderId": "SO-2025-000123"
            }
          },
          "lines": {
            "type": "array",
            "description": "List of Pick Task Lines.",
            "items": {
              "$ref": "#/components/schemas/PickTaskLine"
            }
          }
        },
        "required": [
          "lines",
          "site",
          "system"
        ]
      },
      "PickTaskResponse": {
        "type": "object",
        "description": "Pick Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the Pick Task.",
            "example": "1234"
          },
          "site": {
            "type": "string",
            "description": "Identifier of the site or warehouse.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Location of the stock to be picked from an automation technology in the site or warehouse.",
            "example": "AS1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Pick Task.",
            "enum": [
              "CREATED",
              "GROUPING_RESOLVED",
              "ALLOCATION_RESOLVED",
              "SUBMITTED",
              "PICKING",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name for the Pick Task.",
            "example": "Morning DHL transfer 2025-10-12"
          },
          "priorityTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp used for priority ordering of Pick Tasks.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Priority within the same priority timestamp. Lower values indicate higher priority.",
            "example": 1
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional type of the Pick Task.",
            "example": "CUSTOMER_ORDER"
          },
          "traits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Free-form key/value traits of the Pick Task as supplied by the integrated system. Not given when none were supplied.",
            "example": {
              "orderId": "SO-2025-000123"
            }
          },
          "pickTaskGroup": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional Pick Task Group identifier. Pick Tasks may be grouped together for batch processing.",
            "example": "NF27CH7D6W00"
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the picking of the Pick Task started by its first pick. Not given until then.",
            "example": "2025-11-01T09:12:45.250Z"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Pick Task reached a final state, whichever it is, see its state for the outcome. Not given until then.",
            "example": "2025-11-01T10:05:00.000Z"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time when the Pick Task was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.",
            "example": "2025-11-01T08:15:30.125Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the latest change of the Pick Task recorded in Rologi Flow. It is not the time of its completion.",
            "example": "2025-11-01T09:42:10.500Z"
          },
          "lines": {
            "type": "array",
            "description": "List of this Pick Task Lines.",
            "items": {
              "$ref": "#/components/schemas/PickTaskLineResponse"
            }
          }
        },
        "required": [
          "createdAt",
          "id",
          "lines",
          "name",
          "priority",
          "priorityTimestamp",
          "site",
          "state",
          "system",
          "updatedAt"
        ]
      },
      "PickTaskSearchRequest": {
        "type": "object",
        "description": "Search for Pick Tasks. Fields of a nested list match when at least one element matches. Unknown or unsupported fields are rejected with `400`. Results are always ordered by `id` last, so paging is stable.\n\n`search` matches a resource when **any** of these fields contains the text (OR):\n\n- `id`\n- `name`\n\n`filter` conditions may use these fields. A resource must match **all** conditions, and the `search` if given (AND):\n\n- `id`\n- `name`\n- `site`\n- `system`\n- `state`\n- `type`\n- `priority`\n- `priorityTimestamp`\n- `startedAt`\n- `finishedAt`\n- `createdAt`\n- `updatedAt`\n- `pickTaskGroup`\n- `lines.id`\n- `lines.state`\n- `lines.item`\n\n`page.sort` accepts these fields:\n\n- `id`\n- `name`\n- `site`\n- `system`\n- `state`\n- `type`\n- `priority`\n- `priorityTimestamp`\n- `startedAt`\n- `finishedAt`\n- `createdAt`\n- `updatedAt`",
        "properties": {
          "filter": {
            "description": "Optional query filter. Currently only `FilterQuery` (type `QUERY`) is supported.",
            "example": {
              "type": "QUERY",
              "query": [
                {
                  "field": "state",
                  "operator": "in",
                  "value": [
                    "COMPLETED",
                    "CANCELED",
                    "FAILED"
                  ]
                }
              ]
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/QueryFilter"
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "$ref": "#/components/schemas/Page",
            "description": "Paging and sort parameters. When not specified it defaults to page number 1, size 50, and unsorted."
          },
          "search": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional free text. A resource matches when any of its searchable fields contains the text, ignoring case. The text is taken as a whole, without wildcards. Combined with `filter` using logical AND.",
            "example": "chocolate"
          }
        }
      },
      "PutawayTaskLine": {
        "type": "object",
        "description": "Represents a single line item within a Putaway Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Putaway Task Line, it needs to be unique in the context of a single Putaway Task.",
            "example": "1"
          },
          "item": {
            "type": "string",
            "description": "Stock keeping unit identifier.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity to be put away."
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Line-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "container": {
            "description": "The optional container in which the items are placed and is used for putaway.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Container"
              },
              {
                "type": "null"
              }
            ]
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the item.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the item.",
            "example": "X24078"
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of the item.",
            "example": "2025-12-31"
          }
        },
        "required": [
          "id",
          "item",
          "quantity"
        ]
      },
      "PutawayTaskLinePriorityUpdate": {
        "type": "object",
        "description": "Priority update for a single Putaway Task Line.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Putaway Task Line, unique within the Putaway Task.",
            "example": "1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds. Omitted or null clears it.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Line-level priority key, lower value first (0 is the highest priority); missing values sort last. Omitted or null clears it.",
            "example": 1
          }
        },
        "required": [
          "id"
        ]
      },
      "PutawayTaskLineResponse": {
        "type": "object",
        "description": "Represents a single line item within a Putaway Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Putaway Task Line, it needs to be unique in the context of a single Putaway Task.",
            "example": "1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Line-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Line-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "state": {
            "type": "string",
            "description": "Current state of the Putaway Task Line.",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "item": {
            "type": "string",
            "description": "Stock keeping unit identifier.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity to be put away."
          },
          "container": {
            "description": "The optional container in  which the items are placed to be put away.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Container"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of the item.",
            "example": "2025-12-31"
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the item.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the item.",
            "example": "X24078"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Putaway Task Line reached a final state, whichever it is, see its state for the outcome. Not given until then.",
            "example": "2025-11-01T10:05:00.000Z"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time when the Putaway Task Line was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.",
            "example": "2025-11-01T08:15:30.125Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the latest change of the Putaway Task Line recorded in Rologi Flow. It is not the time of its completion.",
            "example": "2025-11-01T09:42:10.500Z"
          }
        },
        "required": [
          "createdAt",
          "id",
          "item",
          "quantity",
          "state",
          "updatedAt"
        ]
      },
      "PutawayTaskPriorityRequest": {
        "type": "object",
        "description": "Request to update priority of a Putaway Task and its lines.",
        "properties": {
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds. Omitted or null clears it.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Task-level priority key, lower value first (0 is the highest priority); missing values sort last. Omitted or null clears it.",
            "example": 1
          },
          "lines": {
            "type": "array",
            "description": "List of Putaway Task Lines whose priority should be updated.",
            "items": {
              "$ref": "#/components/schemas/PutawayTaskLinePriorityUpdate"
            }
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional reason for the priority change given by the operator, kept in the audit trail of the Putaway Task.",
            "example": "Urgent customer order"
          }
        },
        "required": [
          "lines"
        ]
      },
      "PutawayTaskRequest": {
        "type": "object",
        "description": "Request to create or update a Putaway Task.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Identifier of the site or warehouse.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system within the site or warehouse into which stock will be be placed.",
            "example": "AS1"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Task-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name for the Putaway Task.",
            "example": "Morning DHL delivery 2025-11-01"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional type of the Putaway Task.",
            "example": "GOODS_RECEIPT"
          },
          "supplier": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name of the supplier.",
            "example": "Acme Company Ltd."
          },
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "The container from which the items of this Putaway Task are sourced."
          },
          "traits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional free-form key/value traits of the Putaway Task, e.g. a reference the integrated system needs to see with it. Rologi Flow keeps them as received without interpreting them and returns them with the Putaway Task. Each create or update replaces them, so traits not sent are removed.",
            "example": {
              "deliveryNote": "DN-2025-000456"
            }
          },
          "lines": {
            "type": "array",
            "description": "List of Putaway Task Lines.",
            "items": {
              "$ref": "#/components/schemas/PutawayTaskLine"
            }
          }
        },
        "required": [
          "container",
          "lines",
          "site",
          "system"
        ]
      },
      "PutawayTaskResponse": {
        "type": "object",
        "description": "Putaway Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the Putaway Task.",
            "example": "12345"
          },
          "site": {
            "type": "string",
            "description": "Identifier of the site or warehouse.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system within the site or warehouse into which stock will be be placed.",
            "example": "AS1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Putaway Task.",
            "enum": [
              "CREATED",
              "ACTIVATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name for the Putaway Task.",
            "example": "Morning DHL delivery 2025-11-01"
          },
          "priorityTimestamp": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Task-level priority key, earlier first; missing values sort last. Rounded to whole seconds.",
            "example": "2025-11-01T10:30:00Z"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Task-level priority key, lower value first (0 is the highest priority); missing values sort last.",
            "example": 1
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional type of the Putaway Task.",
            "example": "GOODS_RECEIPT"
          },
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "The container from which the items of this Putaway Task are sourced."
          },
          "traits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Free-form key/value traits of the Putaway Task as supplied by the integrated system. Not given when none were supplied.",
            "example": {
              "deliveryNote": "DN-2025-000456"
            }
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Putaway Task reached a final state, whichever it is, see its state for the outcome. Not given until then.",
            "example": "2025-11-01T10:05:00.000Z"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time when the Putaway Task was created in Rologi Flow, e.g. received from the integrated system. It is not the start of its execution.",
            "example": "2025-11-01T08:15:30.125Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time of the latest change of the Putaway Task recorded in Rologi Flow. It is not the time of its completion.",
            "example": "2025-11-01T09:42:10.500Z"
          },
          "lines": {
            "type": "array",
            "description": "List of this Putaway Task Lines.",
            "items": {
              "$ref": "#/components/schemas/PutawayTaskLineResponse"
            }
          }
        },
        "required": [
          "container",
          "createdAt",
          "id",
          "lines",
          "site",
          "state",
          "system",
          "updatedAt"
        ]
      },
      "PutawayTaskSearchRequest": {
        "type": "object",
        "description": "Search for Putaway Tasks. Fields of a nested list match when at least one element matches. Unknown or unsupported fields are rejected with `400`. Results are always ordered by `id` last, so paging is stable.\n\n`search` matches a resource when **any** of these fields contains the text (OR):\n\n- `id`\n- `name`\n\n`filter` conditions may use these fields. A resource must match **all** conditions, and the `search` if given (AND):\n\n- `id`\n- `name`\n- `site`\n- `system`\n- `state`\n- `type`\n- `priority`\n- `priorityTimestamp`\n- `container.lpn`\n- `finishedAt`\n- `createdAt`\n- `updatedAt`\n- `lines.id`\n- `lines.state`\n- `lines.item`\n- `lines.container.lpn`\n\n`page.sort` accepts these fields:\n\n- `id`\n- `name`\n- `site`\n- `system`\n- `state`\n- `type`\n- `priority`\n- `priorityTimestamp`\n- `container.lpn`\n- `finishedAt`\n- `createdAt`\n- `updatedAt`",
        "properties": {
          "filter": {
            "description": "Optional query filter. Currently only `FilterQuery` (type `QUERY`) is supported.",
            "example": {
              "type": "QUERY",
              "query": [
                {
                  "field": "state",
                  "operator": "in",
                  "value": [
                    "COMPLETED",
                    "CANCELED",
                    "FAILED"
                  ]
                }
              ]
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/QueryFilter"
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "$ref": "#/components/schemas/Page",
            "description": "Paging and sort parameters. When not specified it defaults to page number 1, size 50, and unsorted."
          },
          "search": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional free text. A resource matches when any of its searchable fields contains the text, ignoring case. The text is taken as a whole, without wildcards. Combined with `filter` using logical AND.",
            "example": "chocolate"
          }
        }
      },
      "Quantity": {
        "type": "object",
        "description": "Represents a measurable amount of an item or product.",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Numeric value representing the quantity amount.",
            "example": 3
          },
          "unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "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.",
            "enum": [
              "PIECE",
              "GRAM",
              "KILOGRAM"
            ],
            "example": "PIECE"
          }
        }
      },
      "QueryFilter": {
        "type": "object",
        "description": "Filter combining multiple field conditions with logical AND.",
        "properties": {
          "query": {
            "type": "array",
            "description": "List of conditions. All conditions must match (logical AND).",
            "items": {
              "$ref": "#/components/schemas/FilterCondition"
            }
          },
          "type": {
            "type": "string",
            "description": "QUERY type discriminator.",
            "enum": [
              "QUERY",
              "SCANCODE"
            ],
            "example": "QUERY"
          }
        },
        "required": [
          "query",
          "type"
        ]
      },
      "RequestedItemPackagingUnit": {
        "type": "object",
        "description": "Definition of a packaging the item arrives in from a supplier. Not a sellable unit - use multipacks for those.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the packaging within the item",
            "example": "CARTON-60",
            "minLength": 1
          },
          "scancode": {
            "type": "string",
            "description": "Scancode printed on the packaging. Several packagings of the same item may share it while a supplier phases a change in.",
            "example": "18000500037564",
            "minLength": 1
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "description": "Number of pieces of the item contained in the packaging",
            "example": 60,
            "minimum": 0
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the packaging, used for visual verification before decanting",
            "example": "https://cdn.example.com/items/chocolate-bar-carton-60.png"
          },
          "dimensions": {
            "description": "Outer size of the packaging",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of the packaging",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "scancode"
        ]
      },
      "RequestedPack": {
        "type": "object",
        "description": "Definition of a requested multipack to be created with the item",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the multipack",
            "example": "CHOCOLATE-BAR-PACK-6",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "description": "Human readable name of the multipack",
            "example": "Chocolate Bar - Pack of 6",
            "minLength": 1
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the multipack",
            "example": "https://cdn.example.com/items/chocolate-bar-pack-6.png"
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "description": "Number of base items contained in the multipack",
            "example": 6
          },
          "scancodes": {
            "type": "array",
            "description": "Set of scannable barcodes assigned to the multipack",
            "example": [
              "2000000000001",
              "2000000000002"
            ],
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "packagingUnits": {
            "type": "array",
            "description": "Optional supplier packagings the multipack arrives in",
            "items": {
              "$ref": "#/components/schemas/RequestedItemPackagingUnit"
            },
            "uniqueItems": true
          },
          "dimensions": {
            "description": "Outer size of the multipack. Accepted only for items with unit of measure PIECE.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of the multipack. Accepted only for items with unit of measure PIECE.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "scancodes"
        ]
      },
      "SimpleItemResponse": {
        "type": "object",
        "description": "Full representation of a simple item, including multipacks",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the item",
            "example": "CHOCOLATE-BAR"
          },
          "name": {
            "type": "string",
            "description": "Human readable name of the item",
            "example": "Chocolate Bar"
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the item",
            "example": "https://cdn.example.com/items/chocolate-bar.png"
          },
          "scancodes": {
            "type": "array",
            "description": "Scannable barcodes assigned to the item, in ascending order",
            "example": [
              "8000500037567",
              "8591000000005"
            ],
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          },
          "uom": {
            "type": "string",
            "description": "Base unit of measure for the item",
            "enum": [
              "PIECE",
              "GRAM",
              "KILOGRAM"
            ],
            "example": "PIECE"
          },
          "packs": {
            "type": "array",
            "description": "Multipacks defined for this item, ordered by identifier",
            "items": {
              "$ref": "#/components/schemas/PackResponse"
            },
            "uniqueItems": true
          },
          "packagingUnits": {
            "type": "array",
            "description": "Supplier packagings defined for this item, ordered by identifier",
            "items": {
              "$ref": "#/components/schemas/ItemPackagingUnitResponse"
            },
            "uniqueItems": true
          },
          "dimensions": {
            "description": "Outer size of one piece of the item",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of one piece of the item",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "SimpleItemSearchRequest": {
        "type": "object",
        "description": "Search for simple items. `search` also finds an item by a scancode of one of its multipacks or supplier packagings. Fields of a nested list match when at least one element matches. Unknown or unsupported fields are rejected with `400`. Results are always ordered by `id` last, so paging is stable.\n\n`search` matches a resource when **any** of these fields contains the text (OR):\n\n- `id`\n- `name`\n- `scancodes`\n- `packs.id`\n- `packs.name`\n- `packs.scancodes`\n- `packagingUnits.scancode`\n- `packs.packagingUnits.scancode`\n\n`filter` conditions may use these fields. A resource must match **all** conditions, and the `search` if given (AND):\n\n- `id`\n- `name`\n- `scancodes`\n- `packs.id`\n- `packs.name`\n- `packs.scancodes`\n- `packagingUnits.scancode`\n- `packs.packagingUnits.scancode`\n- `uom`\n\n`page.sort` accepts these fields:\n\n- `id`\n- `name`\n- `uom`",
        "properties": {
          "filter": {
            "description": "Optional query filter. Currently only `FilterQuery` (type `QUERY`) is supported.",
            "example": {
              "type": "QUERY",
              "query": [
                {
                  "field": "state",
                  "operator": "in",
                  "value": [
                    "COMPLETED",
                    "CANCELED",
                    "FAILED"
                  ]
                }
              ]
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/QueryFilter"
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "$ref": "#/components/schemas/Page",
            "description": "Paging and sort parameters. When not specified it defaults to page number 1, size 50, and unsorted."
          },
          "search": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional free text. A resource matches when any of its searchable fields contains the text, ignoring case. The text is taken as a whole, without wildcards. Combined with `filter` using logical AND.",
            "example": "chocolate"
          }
        }
      },
      "SimpleItemSummaryResponse": {
        "type": "object",
        "description": "Simple item as returned by listings and searches. Carries the same data as the full representation.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the item",
            "example": "CHOCOLATE-BAR"
          },
          "name": {
            "type": "string",
            "description": "Human readable name of the item",
            "example": "Chocolate Bar"
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the item",
            "example": "https://cdn.example.com/items/chocolate-bar.png"
          },
          "scancodes": {
            "type": "array",
            "description": "Scannable barcodes assigned to the item, in ascending order",
            "example": [
              "8000500037567",
              "8591000000005"
            ],
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          },
          "uom": {
            "type": "string",
            "description": "Base unit of measure for the item",
            "enum": [
              "PIECE",
              "GRAM",
              "KILOGRAM"
            ],
            "example": "PIECE"
          },
          "packs": {
            "type": "array",
            "description": "Multipacks defined for this item, ordered by identifier. Left out when the item has none.",
            "items": {
              "$ref": "#/components/schemas/PackResponse"
            },
            "uniqueItems": true
          },
          "packagingUnits": {
            "type": "array",
            "description": "Supplier packagings defined for this item, ordered by identifier. Left out when the item has none.",
            "items": {
              "$ref": "#/components/schemas/ItemPackagingUnitResponse"
            },
            "uniqueItems": true
          },
          "dimensions": {
            "description": "Outer size of one piece of the item. Left out when unknown.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of one piece of the item. Left out when unknown.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Stock": {
        "type": "object",
        "description": "Represents physical stock level for an item.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the stock level. It stays the same as long as the stock remains in its container.",
            "example": "01226N0640J7R"
          },
          "site": {
            "type": "string",
            "description": "Identifier of the site.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the system.",
            "example": "AS1"
          },
          "sku": {
            "type": "string",
            "description": "Identifier of the SKU (item or component).",
            "example": "digital-camera"
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number.",
            "example": "X24078"
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date.",
            "example": "2025-12-31"
          },
          "physicalQuantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Current quantity physically present. It is the sum of allocated, blocked and available quantities."
          },
          "allocatedQuantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Current quantity allocated for picking."
          },
          "blockedQuantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Current quantity blocked from being allocated for picking. Typically due to quality issue suspicion, recall, etc."
          },
          "availableQuantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Current quantity available for allocation for picking."
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional location identifier.",
            "example": "AS1-01-001"
          },
          "container": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional identifier (typically some scancode like EAN13) of storage container (present on the location) containing the item.",
            "example": "1234567890123"
          }
        }
      },
      "StockResponse": {
        "type": "object",
        "description": "Response containing current stock levels.",
        "properties": {
          "stock": {
            "type": "array",
            "description": "List of stock levels.",
            "items": {
              "$ref": "#/components/schemas/Stock"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of the stock snapshot.",
            "example": "2025-11-01T10:30:00Z"
          }
        }
      },
      "UpsertSimpleItemRequest": {
        "type": "object",
        "description": "Request to create a new item if it does not exist, or update an existing item",
        "properties": {
          "name": {
            "type": "string",
            "description": "Human readable name of the item",
            "example": "Chocolate Bar",
            "minLength": 1
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to an image representing the item",
            "example": "https://cdn.example.com/items/chocolate-bar.png"
          },
          "scancodes": {
            "type": "array",
            "description": "Set of scannable barcodes assigned to the item",
            "example": [
              "8000500037567",
              "8591000000005"
            ],
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "uom": {
            "type": "string",
            "description": "Base unit of measure for the item",
            "enum": [
              "PIECE",
              "GRAM",
              "KILOGRAM"
            ],
            "example": "PIECE"
          },
          "packs": {
            "type": "array",
            "description": "Optional multipacks for the item",
            "items": {
              "$ref": "#/components/schemas/RequestedPack"
            },
            "uniqueItems": true
          },
          "packagingUnits": {
            "type": "array",
            "description": "Optional supplier packagings the item arrives in",
            "items": {
              "$ref": "#/components/schemas/RequestedItemPackagingUnit"
            },
            "uniqueItems": true
          },
          "dimensions": {
            "description": "Outer size of one piece of the item. Accepted only for items with unit of measure PIECE.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/NominalDimensions"
              },
              {
                "type": "null"
              }
            ]
          },
          "weight": {
            "description": "Weight of one piece of the item. Accepted only for items with unit of measure PIECE.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ItemWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "scancodes"
        ]
      },
      "UserEntry": {
        "type": "object",
        "description": "User record to import or synchronize.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The user's identity, used to uniquely identify the user in Rologi Flow as well as in the integrated system.",
            "example": "12345678"
          },
          "fullName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the user.",
            "example": "Jane Doe"
          },
          "status": {
            "type": "string",
            "description": "Lifecycle status of the user account.",
            "enum": [
              "ACTIVE",
              "DISABLED",
              "DELETED"
            ]
          },
          "roles": {
            "type": "array",
            "description": "Role identifiers assigned to the user.",
            "example": [
              "PICKING",
              "PUTAWAY"
            ],
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          }
        },
        "required": [
          "id",
          "status"
        ]
      }
    },
    "securitySchemes": {
      "JWT": {
        "type": "http",
        "description": "JWT bearer token authentication.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
