{
 "openapi": "3.1.0",
 "info": {
  "title": "Warehouse Tasks (Supply Chain)",
  "version": "20261030b",
  "description": "One move: this quantity of this item, from this bin, to that one. Every kind of warehouse work is this shape, which is why there is one list rather than six. Confirming a task is the only thing here that moves stock."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "warehouse-tasks": {
    "type": "object",
    "required": [
     "warehouse_id"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "warehouse_id": {
      "type": "string",
      "format": "uuid",
      "description": "Warehouse"
     },
     "task_no": {
      "type": "string",
      "description": "Task no",
      "readOnly": true
     },
     "warehouse_order_id": {
      "type": "string",
      "format": "uuid",
      "description": "Warehouse order id"
     },
     "wave_id": {
      "type": "string",
      "format": "uuid",
      "description": "Wave id"
     },
     "wave_demand_id": {
      "type": "string",
      "format": "uuid",
      "description": "Wave demand id",
      "readOnly": true
     },
     "task_type": {
      "type": "string",
      "description": "Type"
     },
     "sequence_no": {
      "type": "integer",
      "description": "Sequence no"
     },
     "item_id": {
      "type": "string",
      "format": "uuid",
      "description": "Item"
     },
     "hu_id": {
      "type": "string",
      "format": "uuid",
      "description": "Handling unit"
     },
     "lot_no": {
      "type": "string",
      "description": "Lot"
     },
     "serial_id": {
      "type": "string",
      "format": "uuid",
      "description": "Serial id",
      "readOnly": true
     },
     "quantity": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity"
     },
     "uom_id": {
      "type": "string",
      "format": "uuid",
      "description": "Unit"
     },
     "quantity_stock_uom": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity stock uom",
      "readOnly": true
     },
     "quantity_confirmed": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity confirmed",
      "readOnly": true
     },
     "from_bin_id": {
      "type": "string",
      "format": "uuid",
      "description": "From bin"
     },
     "to_bin_id": {
      "type": "string",
      "format": "uuid",
      "description": "To bin"
     },
     "from_staging_area_id": {
      "type": "string",
      "format": "uuid",
      "description": "From staging area id"
     },
     "to_staging_area_id": {
      "type": "string",
      "format": "uuid",
      "description": "To staging area id"
     },
     "stock_status": {
      "type": "string",
      "description": "Stock status"
     },
     "resource_id": {
      "type": "string",
      "format": "uuid",
      "description": "Assigned to"
     },
     "assigned_at": {
      "type": "string",
      "format": "date-time",
      "description": "Assigned at",
      "readOnly": true
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "description": "Started at",
      "readOnly": true
     },
     "confirmed_at": {
      "type": "string",
      "format": "date-time",
      "description": "Confirmed at",
      "readOnly": true
     },
     "confirmed_by": {
      "type": "string",
      "format": "uuid",
      "description": "Confirmed by",
      "readOnly": true
     },
     "standard_minutes": {
      "type": "string",
      "format": "decimal",
      "description": "Standard minutes",
      "readOnly": true
     },
     "actual_minutes": {
      "type": "string",
      "format": "decimal",
      "description": "Actual minutes",
      "readOnly": true
     },
     "travel_meters": {
      "type": "string",
      "format": "decimal",
      "description": "Travel meters",
      "readOnly": true
     },
     "priority": {
      "type": "integer",
      "description": "Priority"
     },
     "due_at": {
      "type": "string",
      "format": "date-time",
      "description": "Due"
     },
     "exception_code": {
      "type": "string",
      "description": "Exception code",
      "readOnly": true
     },
     "exception_note": {
      "type": "string",
      "description": "Exception note",
      "readOnly": true
     },
     "short_quantity": {
      "type": "string",
      "format": "decimal",
      "description": "Short quantity",
      "readOnly": true
     },
     "inventory_txn_id": {
      "type": "string",
      "format": "decimal",
      "description": "Inventory txn id",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/warehouse-tasks": {
   "get": {
    "summary": "list warehouse-tasks",
    "operationId": "list_warehouse_tasks_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create warehouse-tasks",
    "operationId": "create_warehouse_tasks_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/warehouse-tasks/{id}": {
   "get": {
    "summary": "get warehouse-tasks",
    "operationId": "get_warehouse_tasks_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change warehouse-tasks",
    "operationId": "change_warehouse_tasks_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete warehouse-tasks",
    "operationId": "delete_warehouse_tasks_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/warehouse-tasks/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_warehouse_tasks_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/warehouse-tasks/{id}/confirm": {
   "post": {
    "summary": "Confirm",
    "operationId": "action_warehouse_tasks_0_6",
    "description": "Body keys: quantity, toBinId, actualMinutes, exceptionCode, exceptionNote",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}