{
 "openapi": "3.1.0",
 "info": {
  "title": "Item · Warehouse (Supply Chain)",
  "version": "20261030b",
  "description": "Dimensions, packing, putaway and picking — what the physical handling of the thing needs to know, as distinct from what planning needs."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "item-wms": {
    "type": "object",
    "required": [
     "item_id"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "item_id": {
      "type": "string",
      "format": "uuid",
      "description": "Item"
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Applies in"
     },
     "warehouse_id": {
      "type": "string",
      "format": "uuid",
      "description": "Warehouse (leave empty for all)"
     },
     "length_mm": {
      "type": "string",
      "format": "decimal",
      "description": "Length (mm)"
     },
     "width_mm": {
      "type": "string",
      "format": "decimal",
      "description": "Width (mm)"
     },
     "height_mm": {
      "type": "string",
      "format": "decimal",
      "description": "Height (mm)"
     },
     "gross_weight_kg": {
      "type": "string",
      "format": "decimal",
      "description": "Gross weight (kg)"
     },
     "net_weight_kg": {
      "type": "string",
      "format": "decimal",
      "description": "Net weight (kg)"
     },
     "volume_cm3": {
      "type": "string",
      "format": "decimal",
      "description": "Volume cm3"
     },
     "units_per_case": {
      "type": "string",
      "format": "decimal",
      "description": "Units per case"
     },
     "cases_per_layer": {
      "type": "string",
      "format": "decimal",
      "description": "Cases per layer"
     },
     "layers_per_pallet": {
      "type": "string",
      "format": "decimal",
      "description": "Layers per pallet"
     },
     "units_per_pallet": {
      "type": "string",
      "format": "decimal",
      "description": "Units per pallet"
     },
     "pallet_type": {
      "type": "string",
      "description": "Pallet type"
     },
     "is_stackable": {
      "type": "boolean",
      "description": "Stackable"
     },
     "max_stack_height": {
      "type": "integer",
      "description": "Max stack height"
     },
     "putaway_rule": {
      "type": "string",
      "description": "Putaway rule",
      "enum": [
       "default",
       "fixed",
       "nearest",
       "consolidate",
       "by_velocity",
       "by_zone",
       "manual"
      ]
     },
     "pick_rule": {
      "type": "string",
      "description": "Pick rule",
      "enum": [
       "fifo",
       "lifo",
       "fefo",
       "nearest",
       "by_lot",
       "by_serial",
       "manual"
      ]
     },
     "pick_uom": {
      "type": "string",
      "description": "Pick uom"
     },
     "velocity_class": {
      "type": "string",
      "description": "Velocity",
      "enum": [
       "fast",
       "medium",
       "slow",
       "dead"
      ]
     },
     "storage_zone": {
      "type": "string",
      "description": "Storage zone"
     },
     "requires_temperature_control": {
      "type": "boolean",
      "description": "Temperature controlled"
     },
     "min_temperature_c": {
      "type": "string",
      "format": "decimal",
      "description": "Minimum °C"
     },
     "max_temperature_c": {
      "type": "string",
      "format": "decimal",
      "description": "Maximum °C"
     },
     "requires_humidity_control": {
      "type": "boolean",
      "description": "Requires humidity control"
     },
     "is_fragile": {
      "type": "boolean",
      "description": "Fragile"
     },
     "is_high_value": {
      "type": "boolean",
      "description": "High value — secure storage"
     },
     "handling_notes": {
      "type": "string",
      "description": "Handling notes"
     },
     "requires_scan_on_receipt": {
      "type": "boolean",
      "description": "Must be scanned on receipt"
     },
     "requires_scan_on_pick": {
      "type": "boolean",
      "description": "Must be scanned on pick"
     },
     "gtin": {
      "type": "string",
      "description": "GTIN"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "effective_from": {
      "type": "string",
      "format": "date",
      "description": "In force from"
     },
     "effective_to": {
      "type": "string",
      "format": "date",
      "description": "Until"
     },
     "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/item-wms": {
   "get": {
    "summary": "list item-wms",
    "operationId": "list_item_wms_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create item-wms",
    "operationId": "create_item_wms_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/item-wms/{id}": {
   "get": {
    "summary": "get item-wms",
    "operationId": "get_item_wms_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change item-wms",
    "operationId": "change_item_wms_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete item-wms",
    "operationId": "delete_item_wms_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/item-wms/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_item_wms_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"
     }
    }
   }
  }
 }
}