{
  "openapi": "3.1.0",
  "info": {
    "title": "Rologi Flow events",
    "description": "Events that Rologi Flow sends to the integrated system.",
    "version": "1.0"
  },
  "tags": [
    {
      "name": "Picking process operations and events",
      "description": "Picking operations the integrated system provides for Rologi Flow, and picking events Rologi Flow sends to it."
    },
    {
      "name": "Decanting process events",
      "description": "Decanting events sent by Rologi Flow to the integrated system."
    },
    {
      "name": "Putaway process events",
      "description": "Putaway task events sent by Rologi Flow to the integrated system."
    }
  ],
  "paths": {},
  "webhooks": {
    "pickTaskStarted": {
      "post": {
        "tags": [
          "Picking process operations and events"
        ],
        "summary": "Sent when a Pick Task has been started on Automation System.",
        "operationId": "pickTaskStarted",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickTaskStarted"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "containerOpened": {
      "post": {
        "tags": [
          "Picking process operations and events"
        ],
        "summary": "Sent when a container has been opened for picking on Automation System.",
        "operationId": "containerOpened",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickContainerOpened"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "pick": {
      "post": {
        "tags": [
          "Picking process operations and events"
        ],
        "summary": "Sent when an individual pick operation has been completed on Automation System.",
        "description": "Notifies the integrated system that items were picked from a source container to an optional target container. Container payloads are polymorphic: handling containers use `type` values such as `TOTE` or `PALLET` with an LPN, while grid storage bins use `type` `AUTOSTORE_BIN` with `id` and `compartment`.",
        "operationId": "pick",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pick"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "containerClosed": {
      "post": {
        "tags": [
          "Picking process operations and events"
        ],
        "summary": "Sent when a target container has been closed during picking on Automation System.",
        "operationId": "containerClosed",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickContainerClosed"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "pickTaskFinished": {
      "post": {
        "tags": [
          "Picking process operations and events"
        ],
        "summary": "Sent when picking of a Pick Task is completed on Automation System or when the Pick Task is canceled or aborted by an admin user or the integrated system.",
        "operationId": "pickTaskFinished",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickTaskFinished"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "decantingTaskStarted": {
      "post": {
        "tags": [
          "Decanting process events"
        ],
        "summary": "Decanting Task started",
        "description": "Sent when work on a Decanting Task has started.",
        "operationId": "decantingTaskStarted",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecantingTaskStarted"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "placed": {
      "post": {
        "tags": [
          "Decanting process events"
        ],
        "summary": "Place completed",
        "description": "Sent when an operator places a quantity during decanting. Includes optional source and required target containers.",
        "operationId": "placed",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Placed"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "decantingTaskFinished": {
      "post": {
        "tags": [
          "Decanting process events"
        ],
        "summary": "Decanting Task finished",
        "description": "Sent when a Decanting Task is completed, canceled, or failed.",
        "operationId": "decantingTaskFinished",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecantingTaskFinished"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "putawayTaskCreated": {
      "post": {
        "tags": [
          "Putaway process events"
        ],
        "summary": "Sent when a Putaway Task created from a decanting process is ready to be put away.",
        "description": "Notifies the integrated system of a Putaway Task it has not created itself, e.g. one per decanted cart, before its putaway starts. Each line describes its composition from Decanting Task Lines. The content of the task does not change afterwards.",
        "operationId": "putawayTaskCreated",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutawayTaskCreated"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "putawayTaskStarted": {
      "post": {
        "tags": [
          "Putaway process events"
        ],
        "summary": "Sent when the putaway process of a Putaway Task has been started.",
        "operationId": "putawayTaskStarted",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutawayTaskStarted"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "putaway": {
      "post": {
        "tags": [
          "Putaway process events"
        ],
        "summary": "Sent when an operator puts a quantity during a Putaway Work.",
        "description": "Notifies the integrated system that items were moved from an optional source container to an optional target container. Container payloads are polymorphic: handling containers use `type` values such as `TOTE` or `PALLET` with an LPN, while grid storage bins use `type` `AUTOSTORE_BIN` with `id` and `compartment`.",
        "operationId": "putaway",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Put"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "putawayTaskFinished": {
      "post": {
        "tags": [
          "Putaway process events"
        ],
        "summary": "Sent when the putaway process of a Putaway Task has been finished by completing the task or when the task is canceled or aborted by an admin user or the integrated system.",
        "operationId": "putawayTaskFinished",
        "parameters": [
          {
            "name": "Ras-Api-Version",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "1",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutawayTaskFinished"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "An internal error occurred during request processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClosedTogetherWith": {
        "type": "object",
        "description": "Picking work and containers closed together with the closed container.",
        "properties": {
          "pickTask": {
            "type": "string",
            "description": "Identifier of the Pick Task closed together with the container, e.g. completed by its last container, or canceled.",
            "example": "123"
          },
          "pickTaskGroup": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the Pick Task Group closed together with the container, completed by its last Pick Task. It is omitted when the Pick Task Group is still open or the Pick Task is not part of any.",
            "example": "NF27CH7D6W00"
          },
          "containers": {
            "type": [
              "array",
              "null"
            ],
            "description": "Other containers closed together with the container, e.g. the other open containers of the Pick Task, or the open containers placed in the closed one. It is omitted when no other container has been closed.",
            "example": [
              {
                "type": "TOTE",
                "variant": "VLM-TOTE-M",
                "lpn": "TOTE-001-002"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/Container"
            },
            "uniqueItems": true
          }
        }
      },
      "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"
        ]
      },
      "ContainerItem": {
        "type": "object",
        "description": "Represents a single line item from a Pick Task that was placed into the closed container. This provides detailed information about what was picked, including the source Pick Task and line, the item SKU, quantity, and any associated metadata such as LPNs (License Plate Numbers) or expiry dates.",
        "properties": {
          "pickTask": {
            "type": "string",
            "description": "Identifier of the Pick Task from which this item line originated. This identifies which Pick Task contained the requirement to pick this item.",
            "example": "123"
          },
          "pickTaskGroup": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional Pick Task Group identifier. This is specified only if the Pick Task is part of a batch picking operation.",
            "example": "NF27CH7D6W00"
          },
          "pickTaskLine": {
            "type": "string",
            "description": "Identifier of the specific line within the Pick Task. This identifies which line item within the Pick Task this entry corresponds to.",
            "example": "1"
          },
          "containers": {
            "type": "array",
            "description": "List of container identifiers that this item has been picked into.",
            "example": [
              "TOTE-001-001",
              "BAG-001"
            ],
            "items": {
              "type": "string"
            }
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Total quantity of items that were picked for this line and placed into the container. This represents the actual quantity picked, which may differ from the requested quantity if partial picks occurred."
          },
          "scancodes": {
            "type": [
              "array",
              "null"
            ],
            "description": "Scancodes of the picked units (usually EAN codes) scanned while picking them. They identify the exact units picked, which matters for variable measure products, e.g. packed meat, whose code carries the exact net weight of the product packed in the unit. It is omitted when no scancode has been scanned.",
            "example": [
              "2912345012508"
            ],
            "items": {
              "type": "string"
            }
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of the picked items. The date is omitted if the items do not have an expiry date.",
            "example": "2025-11-01"
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the picked items. This field is provided only if a lot number was defined.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the picked items. This field is provided only if a batch number was defined.",
            "example": "X24078"
          }
        }
      },
      "DecantingSource": {
        "type": "object",
        "description": "Decanting Task Line contribution that forms part of a Putaway Task Line.",
        "properties": {
          "task": {
            "type": "string",
            "description": "Identifier of the Decanting Task.",
            "example": "ASN-2025-001"
          },
          "line": {
            "type": "string",
            "description": "Identifier of the Decanting Task Line within the Decanting Task.",
            "example": "1"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity taken from this Decanting Task Line into the Putaway Task Line."
          }
        },
        "required": [
          "line",
          "quantity",
          "task"
        ]
      },
      "DecantingTask": {
        "type": "object",
        "description": "Decanting Task at the time of the place.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Decanting Task id.",
            "example": "123"
          },
          "state": {
            "type": "string",
            "description": "State of the Decanting Task.",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "DecantingTaskFinished": {
        "type": "object",
        "description": "Event sent when a Decanting Task has been completed, canceled, or failed.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Site or warehouse where the Decanting Task was finished.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Automation system where the task was finished.",
            "example": "AS1"
          },
          "workstation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Workstation where the task was finished. Omitted when the task was canceled outside an active process.",
            "example": "001"
          },
          "operator": {
            "type": [
              "string",
              "null"
            ],
            "description": "Operator who finished the task. Omitted when the task is finished automatically.",
            "example": "john.doe@example.com"
          },
          "decantingTask": {
            "type": "string",
            "description": "Identifier of the finished Decanting Task.",
            "example": "123"
          },
          "state": {
            "type": "string",
            "description": "Final state of the Decanting Task.",
            "enum": [
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When the Decanting Task was finished.",
            "example": "2025-10-10T09:06:00.915356Z"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Location where the goods left to decant wait after the cancellation of the Decanting Task. Omitted when no goods are left.",
            "example": "canceled-goods-area"
          }
        },
        "required": [
          "decantingTask",
          "site",
          "state",
          "system",
          "timestamp"
        ]
      },
      "DecantingTaskStarted": {
        "type": "object",
        "description": "Event sent when a Decanting Task has been started.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Site or warehouse where the Decanting Task was started.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Automation system where the task was started.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Workstation where the task was started.",
            "example": "001"
          },
          "operator": {
            "type": [
              "string",
              "null"
            ],
            "description": "Operator who started the task. Omitted when the task is started automatically.",
            "example": "john.doe@example.com"
          },
          "decantingTask": {
            "type": "string",
            "description": "Identifier of the started Decanting Task.",
            "example": "123"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When the Decanting Task was started.",
            "example": "2025-10-10T09:06:00.915356Z"
          }
        },
        "required": [
          "decantingTask",
          "site",
          "system",
          "timestamp",
          "workstation"
        ]
      },
      "DecantingWork": {
        "type": "object",
        "description": "Decanting Task and line associated with this place.",
        "properties": {
          "task": {
            "$ref": "#/components/schemas/DecantingTask",
            "description": "Decanting Task at the time of the place."
          },
          "line": {
            "$ref": "#/components/schemas/PlacedDecantingTaskLine",
            "description": "Decanting Task Line associated with this place."
          }
        },
        "required": [
          "line",
          "task"
        ]
      },
      "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"
        ]
      },
      "Pick": {
        "type": "object",
        "description": "Event notification sent when a pick operation has been completed during picking process.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the pick was performed.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system where the pick was performed.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the pick was performed.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "User identification of the operator who performed the pick.",
            "example": "john.doe@example.com"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the pick operation.",
            "example": "NG01AMKM01ZG"
          },
          "pickWork": {
            "$ref": "#/components/schemas/PickPickWork",
            "description": "Pick Work associated with this pick."
          },
          "item": {
            "type": "string",
            "description": "SKU identifier of the picked item.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity of items picked in this operation."
          },
          "scancodes": {
            "type": [
              "array",
              "null"
            ],
            "description": "Optional list of scannable codes (for example item barcodes) associated with the picked items.",
            "example": [
              "8590000125008"
            ],
            "items": {
              "type": "string"
            }
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of the picked item."
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of the picked item. Provided only when a lot number was defined.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of the picked item. Provided only when a batch number was defined.",
            "example": "X24078"
          },
          "source": {
            "$ref": "#/components/schemas/PickSource",
            "description": "Source of the pick operation."
          },
          "target": {
            "description": "Target container information for the pick. It is omitted when no target container was used for picking.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PickTarget"
              },
              {
                "type": "null"
              }
            ]
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the pick operation was completed.",
            "example": "2025-10-09T12:20:56.255671Z"
          }
        },
        "required": [
          "id",
          "item",
          "operator",
          "pickWork",
          "quantity",
          "site",
          "source",
          "system",
          "timestamp",
          "workstation"
        ]
      },
      "PickContainerClosed": {
        "type": "object",
        "description": "Event sent when a container has been closed during picking on Automation System, or canceled or aborted by an admin. Includes a summary of items picked into the container and any related Pick Tasks or containers closed with it.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the container was closed.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the Automation System where the container was closed.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the container was closed.",
            "example": "001"
          },
          "operators": {
            "type": "array",
            "description": "Identifiers of the operators who were picking into this container. This identifies the persons who picked into this container, or the admin user who canceled the Pick Task associated with this container. It may contain a single user if the picking process is stationary and dedicated to a single person.",
            "example": "[john.doe@example.com, jane.doe@example.com]",
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          },
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "The container that has been closed, the same one as was opened for picking. Its location is the place in the warehouse where the closed container is handed over, so that the integrated system knows where it lies.",
            "example": {
              "type": "TOTE",
              "variant": "VLM-TOTE-M",
              "lpn": "TOTE-001-001",
              "location": "HANDOVER-01"
            }
          },
          "items": {
            "type": "array",
            "description": "Complete list of all items that were picked into this container. This provides a record of all items in the container at the time of container closure. Note that a single item may be split into multiple entries when they were picked into different containers or have different expiry dates, lot numbers, or batch numbers; in other words, each unique combination of these attributes results in a separate item entry.",
            "items": {
              "$ref": "#/components/schemas/ContainerItem"
            }
          },
          "closedTogetherWith": {
            "description": "Picking work and other containers closed together with this container, e.g. the Pick Task completed by its last container, the Pick Task Group completed by its last Pick Task, or the other open containers of the Pick Task. They are all announced in this single event, so that the integrated system closes them at once and consistently with the container. It is omitted when nothing else has been closed.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ClosedTogetherWith"
              },
              {
                "type": "null"
              }
            ]
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp indicating when the container was closed.",
            "example": "2025-11-09T12:24:01.629725Z"
          }
        },
        "required": [
          "site"
        ]
      },
      "PickContainerOpened": {
        "type": "object",
        "description": "Event sent when a container has been opened for picking on Automation System: a Pick Cart is opened by its activation for its Pick Task Group (or its single Pick Task), and a tote on the Pick Cart is opened by the first item picked into it for its Pick Task.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the container was opened.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the Automation System where the container was opened.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the container was opened: where the Pick Cart was activated, or where the first item was picked into the tote.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "User identification of the operator responsible for the container: the one who prepared the Pick Cart, or who picked the first item into the tote.",
            "example": "john.doe@example.com"
          },
          "pickWork": {
            "$ref": "#/components/schemas/PickContainerOpenedPickWork",
            "description": "Picking work the container was opened for."
          },
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "The container that has been opened for picking. Its location is the place in the warehouse where the container is picked into, e.g. where the Pick Cart is parked.",
            "example": {
              "type": "TOTE",
              "variant": "VLM-TOTE-M",
              "lpn": "TOTE-001-001",
              "location": "AM-CARTS-01"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp indicating when the container was opened.",
            "example": "2025-11-09T12:24:01.629725Z"
          }
        },
        "required": [
          "container",
          "operator",
          "pickWork",
          "site",
          "system",
          "timestamp",
          "workstation"
        ]
      },
      "PickContainerOpenedPickWork": {
        "type": "object",
        "description": "Picking work the container was opened for: a Pick Cart is opened for its Pick Task Group, or for its Pick Task when it holds a single Pick Task without a group; a tote is opened for its Pick Task and the Pick Task Group of the task, if any.",
        "properties": {
          "task": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the Pick Task the container was opened for. All items picked into a tote are associated with this Pick Task until the tote is closed.",
            "example": "123"
          },
          "taskGroup": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the Pick Task Group the container was opened for, if the picking is part of a multi-order picking.",
            "example": "NF27CH7D6W00"
          }
        }
      },
      "PickPickTask": {
        "type": "object",
        "description": "Pick Task state at the time of the pick.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Pick Task.",
            "example": "1234"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Pick Task.",
            "enum": [
              "CREATED",
              "GROUPING_RESOLVED",
              "ALLOCATION_RESOLVED",
              "SUBMITTED",
              "PICKING",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "PickPickTaskLine": {
        "type": "object",
        "description": "Pick Task Line information associated with a pick operation.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Pick Task Line.",
            "example": "1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Pick Task Line.",
            "enum": [
              "CREATED",
              "SUBMITTED",
              "PICKING",
              "COMPLETED",
              "SHORT_PICKED",
              "CANCELED",
              "FAILED"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "PickPickWork": {
        "type": "object",
        "description": "Pick Task and line context associated with this pick.",
        "properties": {
          "task": {
            "$ref": "#/components/schemas/PickPickTask",
            "description": "Pick Task associated with this pick."
          },
          "line": {
            "$ref": "#/components/schemas/PickPickTaskLine",
            "description": "Pick Task Line associated with this pick."
          },
          "taskGroup": {
            "description": "Optional multi-task information associated with this pick if its pick task is part of multi-order picking. It is omitted when the pick is not associated with a multi-task.",
            "example": "NF27CH7D6W00",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PickTaskGroup"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "line",
          "task",
          "taskGroup"
        ]
      },
      "PickSource": {
        "type": "object",
        "description": "Source of a pick operation.",
        "properties": {
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "Container from which items were picked.",
            "example": {
              "type": "AUTOSTORE_BIN",
              "lpn": "100001"
            }
          }
        },
        "required": [
          "container"
        ]
      },
      "PickTarget": {
        "type": "object",
        "description": "Target of a pick operation.",
        "properties": {
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "Container in which the items were placed.",
            "example": {
              "type": "TOTE",
              "variant": "TOTE-S",
              "lpn": "TTS-001-001"
            }
          }
        },
        "required": [
          "container"
        ]
      },
      "PickTaskFinished": {
        "type": "object",
        "description": "Event notification when a Pick Task has been completed on Automation System, canceled or aborted.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the task was picked.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system where the task was picked.",
            "example": "AS1"
          },
          "workstation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional identifier of the Workstation where the task was completed.",
            "example": "001"
          },
          "operator": {
            "type": [
              "string",
              "null"
            ],
            "description": "User identification of the operator who finished the task. Omitted when no operator took part, e.g. the task was canceled before any pick.",
            "example": "john.doe@example.com"
          },
          "pickTaskGroup": {
            "description": "Optional multi-task information associated with this pick task if it is part of multi-order picking. It is omitted when the pick is not associated with a multi-task.",
            "example": "NF27CH7D6W00",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PickTaskGroup"
              },
              {
                "type": "null"
              }
            ]
          },
          "pickTask": {
            "$ref": "#/components/schemas/PickTaskFinishedPickTask",
            "description": "Details of the completed or canceled Pick Task."
          }
        },
        "required": [
          "pickTask",
          "site",
          "system"
        ]
      },
      "PickTaskFinishedPick": {
        "type": "object",
        "description": "Represents a single pick operation that was performed.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of this pick operation. It is unique across all picks.",
            "example": "NG01AMKM01ZG"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the pick was performed.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "User identification of the operator who performed the pick.",
            "example": "john.doe@example.com"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity of items picked in this operation."
          },
          "scancodes": {
            "type": [
              "array",
              "null"
            ],
            "description": "Optional list of scannable codes associated with the picked items.",
            "example": [
              "8590000125008"
            ],
            "items": {
              "type": "string"
            }
          },
          "expiryDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Optional expiry date of this picked items."
          },
          "lotNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional lot number of this pick. This field is provided only if a lot number was defined.",
            "example": "XYZ24041508A"
          },
          "batchNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional batch number of this pick. This field is provided only if a batch number was defined.",
            "example": "X24078"
          },
          "source": {
            "description": "Source bin information for the pick.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourceCell"
              }
            ]
          },
          "target": {
            "description": "Target containers information for the pick. It is omitted when no container used for picking.",
            "example": [
              "TOTE-001-001"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/PickTaskFinishedTarget"
              },
              {
                "type": "null"
              }
            ]
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the pick operation occurred.",
            "example": "2025-11-09T12:24:01.629725Z"
          }
        },
        "required": [
          "id",
          "operator",
          "quantity",
          "source",
          "timestamp",
          "workstation"
        ]
      },
      "PickTaskFinishedPickTask": {
        "type": "object",
        "description": "Details of a Pick Task including its state, lines, and timing information.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Pick Task.",
            "example": "123"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Pick Task.",
            "enum": [
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "lines": {
            "type": "array",
            "description": "List of Pick Task lines that were part of this task.",
            "items": {
              "$ref": "#/components/schemas/PickTaskFinishedPickTaskLine"
            }
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the picking of the Pick Task started by its first pick. Not given when the Pick Task was finished without any pick, e.g. canceled before picking.",
            "example": "2025-11-09T12:24:01.629725Z"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Pick Task reached its final state, see its state for the outcome.",
            "example": "2025-11-09T12:24:18.735297Z"
          }
        },
        "required": [
          "id",
          "lines",
          "state"
        ]
      },
      "PickTaskFinishedPickTaskLine": {
        "type": "object",
        "description": "Represents a single line item within a Pick Task.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Pick Task line.",
            "example": "1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Pick Task line.",
            "enum": [
              "CREATED",
              "SUBMITTED",
              "PICKING",
              "COMPLETED",
              "SHORT_PICKED",
              "CANCELED",
              "FAILED"
            ]
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Requested quantity of items to be picked for this line."
          },
          "picks": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of individual pick operations performed for this line. It may be omitted or empty when there has been no pick operation.",
            "items": {
              "$ref": "#/components/schemas/PickTaskFinishedPick"
            }
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the picking of the Pick Task Line started by its first pick. Not given when the line was finished without any pick.",
            "example": "2025-11-09T12:24:01.629725Z"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time when the Pick Task Line reached a final state, see its state for the outcome. Not given when the line has not reached one.",
            "example": "2025-11-09T12:24:14.815297Z"
          }
        },
        "required": [
          "id",
          "quantity",
          "state"
        ]
      },
      "PickTaskFinishedTarget": {
        "type": "object",
        "description": "Target information for a pick operation.",
        "properties": {
          "containers": {
            "type": "array",
            "description": "Identifiers of containers in which the items were placed. The list is ordered from the first open container to the last one.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PickTaskGroup": {
        "type": "object",
        "description": "Pick Task Group information associated with a Pick Task if it is part of multi-order picking.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Optional multi-task identifier associated with the pick task if it is part of multi-order picking. It is omitted when the pick is not associated with a multi-task.",
            "example": "NF27CH7D6W00"
          },
          "state": {
            "type": "string",
            "description": "Current state of the multi-task.",
            "enum": [
              "OPEN",
              "COMPLETED"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "PickTaskStarted": {
        "type": "object",
        "description": "Event notification when a Pick Task has been started on Automation System.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the pick has been started.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the Automation system.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the task was started.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "User identification of the operator who started the task.",
            "example": "john.doe@example.com"
          },
          "pickTaskGroup": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional identifier of this Pick Task if it is part of a multi-order picking.",
            "example": "NF27CH7D6W00"
          },
          "pickTask": {
            "type": "string",
            "description": "Identifier of the Pick Task.",
            "example": "123"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the Pick Task was started.",
            "example": "2025-11-09T12:24:01.629725Z"
          }
        },
        "required": [
          "operator",
          "pickTask",
          "site",
          "system",
          "timestamp",
          "workstation"
        ]
      },
      "Placed": {
        "type": "object",
        "description": "Event sent when a place operation has been completed during decanting.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Site or warehouse where the place was performed.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Automation system where the place was performed.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Workstation where the place was performed.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "Operator who performed the place.",
            "example": "john.doe@example.com"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the place operation.",
            "example": "NF27CH7GTR01"
          },
          "decantingWork": {
            "description": "Decanting work context. Omitted when the place was performed outside a Decanting Task.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/DecantingWork"
              },
              {
                "type": "null"
              }
            ]
          },
          "item": {
            "type": "string",
            "description": "SKU of the placed item.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity placed in this operation."
          },
          "scancodes": {
            "type": [
              "array",
              "null"
            ],
            "description": "Optional scannable codes of the placed items.",
            "example": [
              "8590000125008"
            ],
            "items": {
              "type": "string"
            }
          },
          "source": {
            "description": "Source of the place. Omitted when source information is not available.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PlacedSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "target": {
            "$ref": "#/components/schemas/PlacedTarget",
            "description": "Target of the place."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When the place was completed.",
            "example": "2025-10-10T09:06:00.915356Z"
          }
        },
        "required": [
          "id",
          "item",
          "operator",
          "quantity",
          "site",
          "system",
          "target",
          "timestamp",
          "workstation"
        ]
      },
      "PlacedDecantingTaskLine": {
        "type": "object",
        "description": "Decanting Task Line associated with a place.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Decanting Task Line id.",
            "example": "1"
          },
          "state": {
            "type": "string",
            "description": "State of the Decanting Task Line.",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "PlacedSource": {
        "type": "object",
        "description": "Source of a place operation.",
        "properties": {
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "Container from which items were taken, e.g. the pallet delivered for decanting.",
            "example": {
              "type": "PALLET",
              "lpn": "PAL-001",
              "location": "GATE-1"
            }
          }
        },
        "required": [
          "container"
        ]
      },
      "PlacedTarget": {
        "type": "object",
        "description": "Target of a place operation.",
        "properties": {
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "Container into which items were placed, e.g. a tote to be put away.",
            "example": {
              "type": "TOTE",
              "variant": "TOTE-S",
              "lpn": "TTS-001-001"
            }
          }
        },
        "required": [
          "container"
        ]
      },
      "Put": {
        "type": "object",
        "description": "Event notification sent when a put operation has been completed during putaway process.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the put was performed.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the automation system where the put was performed.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the put was performed.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "User identification of the operator who performed the put.",
            "example": "john.doe@example.com"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the put operation.",
            "example": "NF27CH7GTR01"
          },
          "putawayWork": {
            "description": "Putaway Work associated with this put. It is omitted if the put was performed manually outside a putaway task.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PutawayWork"
              },
              {
                "type": "null"
              }
            ]
          },
          "item": {
            "type": "string",
            "description": "SKU identifier of the item being put away.",
            "example": "digital-camera"
          },
          "quantity": {
            "$ref": "#/components/schemas/Quantity",
            "description": "Quantity of items put away in this operation."
          },
          "scancodes": {
            "type": [
              "array",
              "null"
            ],
            "description": "Optional list of scannable codes (for example item barcodes) associated with the put away items.",
            "example": [
              "8590000125008"
            ],
            "items": {
              "type": "string"
            }
          },
          "source": {
            "description": "Source of the put operation. It is omitted when no source information is available.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PutSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "target": {
            "$ref": "#/components/schemas/PutTarget",
            "description": "Target of the put operation."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the put operation was completed.",
            "example": "2025-10-10T09:06:00.915356Z"
          }
        },
        "required": [
          "id",
          "item",
          "operator",
          "quantity",
          "site",
          "source",
          "system",
          "target",
          "timestamp",
          "workstation"
        ]
      },
      "PutPutawayTaskLine": {
        "type": "object",
        "description": "Putaway Task Line information associated with a put operation.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Putaway Task Line.",
            "example": "1"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Putaway Task Line.",
            "enum": [
              "CREATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "decantingSources": {
            "type": [
              "array",
              "null"
            ],
            "description": "Decanting Task Lines that contributed to this Putaway Task Line, with the quantity taken from each. Omitted when the Putaway Task Line was not created from a decanting process. Quantities describe the composition of the Putaway Task Line; the integrated system allocates the put quantity across them.",
            "items": {
              "$ref": "#/components/schemas/DecantingSource"
            }
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "PutSource": {
        "type": "object",
        "description": "Source of a put operation.",
        "properties": {
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "Container from which items were taken, typically a handling container such as a tote put away as a whole.",
            "example": {
              "type": "TOTE",
              "variant": "TOTE-S",
              "lpn": "TTS-001-001"
            }
          }
        },
        "required": [
          "container"
        ]
      },
      "PutTarget": {
        "type": "object",
        "description": "Target of a put operation.",
        "properties": {
          "container": {
            "$ref": "#/components/schemas/Container",
            "description": "Container into which items were put, typically a storage container such as a grid storage bin or a tray.",
            "example": {
              "type": "WELAND_TRAY",
              "lpn": "2-5"
            }
          }
        },
        "required": [
          "container"
        ]
      },
      "PutawayTask": {
        "type": "object",
        "description": "Putaway Task state at the time of the put.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Putaway Task.",
            "example": "123"
          },
          "state": {
            "type": "string",
            "description": "Current state of the Putaway Task.",
            "enum": [
              "CREATED",
              "ACTIVATED",
              "IN_PROGRESS",
              "REVOKED",
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ]
      },
      "PutawayTaskCreated": {
        "type": "object",
        "description": "Event notification when a Putaway Task created on Automation System from a decanting process is ready to be put away, so that the integrated system learns the task before its putaway starts. The content of the task does not change afterwards.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the putaway task was created.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the Automation system.",
            "example": "AS1"
          },
          "workstation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the Workstation where the container of the task was activated for putaway. Omitted when the task is canceled before the activation, outside a workstation.",
            "example": "001"
          },
          "operator": {
            "type": "string",
            "description": "User identification of the operator who prepared the container of the task for putaway.",
            "example": "john.doe@example.com"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the Putaway Task.",
            "example": "12345"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional name of the Putaway Task.",
            "example": "CART-001"
          },
          "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, e.g. the cart with the decanted totes."
          },
          "lines": {
            "type": "array",
            "description": "List of this Putaway Task Lines.",
            "items": {
              "$ref": "#/components/schemas/PutawayTaskCreatedPutawayTaskLine"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the container of the task was activated for putaway.",
            "example": "2025-10-10T09:06:00.915356Z"
          }
        },
        "required": [
          "container",
          "id",
          "lines",
          "operator",
          "site",
          "system",
          "timestamp"
        ]
      },
      "PutawayTaskCreatedPutawayTaskLine": {
        "type": "object",
        "description": "Represents a single line item within a Putaway Task created from a decanting process.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the Putaway Task Line, it is 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
          },
          "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, e.g. a decanted tote.",
            "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"
          },
          "decantingSources": {
            "type": "array",
            "description": "Decanting Task Lines that contributed to this Putaway Task Line, with the quantity taken from each. Quantities describe the composition of the Putaway Task Line.",
            "items": {
              "$ref": "#/components/schemas/DecantingSource"
            }
          }
        },
        "required": [
          "decantingSources",
          "id",
          "item",
          "quantity"
        ]
      },
      "PutawayTaskFinished": {
        "type": "object",
        "description": "Event notification when a putaway task has been completed on Automation System or when the task is canceled or aborted by an admin user or the integrated system.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the putaway task was finished.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the Automation system.",
            "example": "AS1"
          },
          "workstation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the Workstation where the task was resumed. It may be omitted if the task was canceled outside a putaway process.",
            "example": "001"
          },
          "operator": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional user identification of the operator who finished the task. It is omitted if the task is finished automatically without an operator.",
            "example": "john.doe@example.com"
          },
          "putawayTask": {
            "type": "string",
            "description": "Identifier of the putaway task that was finished.",
            "example": "123"
          },
          "state": {
            "type": "string",
            "description": "Current state of the finished putaway task.",
            "enum": [
              "COMPLETED",
              "CANCELED",
              "FAILED"
            ]
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the putaway task was finished.",
            "example": "2025-10-10T09:06:00.915356Z"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Location where the containers not put away wait, e.g. the canceled goods area. Omitted when no containers are left.",
            "example": "canceled-goods-area"
          }
        },
        "required": [
          "operator",
          "putawayTask",
          "site",
          "state",
          "system",
          "timestamp"
        ]
      },
      "PutawayTaskStarted": {
        "type": "object",
        "description": "Event notification when a putaway task has been started on Automation System.",
        "properties": {
          "site": {
            "type": "string",
            "description": "Unique identifier of the site or warehouse where the putaway task was started.",
            "example": "1000"
          },
          "system": {
            "type": "string",
            "description": "Identifier of the Automation system.",
            "example": "AS1"
          },
          "workstation": {
            "type": "string",
            "description": "Identifier of the Workstation where the task was started.",
            "example": "001"
          },
          "operator": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional user identification of the operator who started the task. It is omitted if the task is started automatically without an operator.",
            "example": "john.doe@example.com"
          },
          "putawayTask": {
            "type": "string",
            "description": "Identifier of the putaway task that was started.",
            "example": "123"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the putaway task was started.",
            "example": "2025-10-10T09:06:00.915356Z"
          }
        },
        "required": [
          "operator",
          "putawayTask",
          "site",
          "system",
          "timestamp",
          "workstation"
        ]
      },
      "PutawayWork": {
        "type": "object",
        "description": "Putaway Task and line context associated with this put.",
        "properties": {
          "task": {
            "$ref": "#/components/schemas/PutawayTask",
            "description": "Putaway Task state at the time of the put."
          },
          "line": {
            "$ref": "#/components/schemas/PutPutawayTaskLine",
            "description": "Putaway Task Line associated with this put."
          }
        },
        "required": [
          "line",
          "task"
        ]
      },
      "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"
          }
        }
      },
      "Source": {
        "type": "object",
        "description": "Source information for a pick operation.",
        "discriminator": {
          "propertyName": "type"
        },
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CELL"
            ]
          }
        }
      },
      "SourceCarrier": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Unique code identifying the carrier (e.g. bin compartment, tray slot, ...) the items were picked from.",
            "example": "100011"
          }
        },
        "required": [
          "code"
        ]
      },
      "SourceCell": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Source"
          },
          {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Unique code identifying the storage location (usually a carrier cell, e.g. bin compartment, tray slot, ...) the items were picked from.",
                "example": "100011-2-2"
              },
              "carrier": {
                "$ref": "#/components/schemas/SourceCarrier",
                "description": "Information about the carrier (bin, tray, etc.) the items were picked from."
              },
              "type": {
                "type": "string",
                "description": "Type of source.",
                "enum": [
                  "CELL"
                ]
              }
            }
          }
        ],
        "description": "Source information for a pick operation.",
        "required": [
          "carrier",
          "code",
          "type"
        ]
      }
    }
  }
}
