{
 "openapi": "3.1.0",
 "info": {
  "title": "Items (Supply Chain)",
  "version": "20261030b",
  "description": "Open an item and everything about it is there: its organizations, sales, purchasing, planning, work definition, revisions, stocking, quality, costing and lot control, each one dated so you can read it as it stood on any day."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "items": {
    "type": "object",
    "required": [
     "item_no",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "item_no": {
      "type": "string",
      "description": "Item number"
     },
     "name": {
      "type": "string",
      "description": "Name"
     },
     "description": {
      "type": "string",
      "description": "Description"
     },
     "item_type": {
      "type": "string",
      "description": "Type",
      "enum": [
       "raw",
       "component",
       "semi_finished",
       "finished",
       "service",
       "mro"
      ]
     },
     "uom": {
      "type": "string",
      "description": "Unit of measure"
     },
     "standard_cost": {
      "type": "string",
      "format": "decimal",
      "description": "Standard cost"
     },
     "list_price": {
      "type": "string",
      "format": "decimal",
      "description": "List price"
     },
     "lot_controlled": {
      "type": "boolean",
      "description": "Lot controlled"
     },
     "serial_controlled": {
      "type": "boolean",
      "description": "Serial controlled"
     },
     "shelf_life_days": {
      "type": "integer",
      "description": "Shelf life (days)"
     },
     "hazardous": {
      "type": "boolean",
      "description": "Hazardous"
     },
     "safety_stock": {
      "type": "string",
      "format": "decimal",
      "description": "Safety stock"
     },
     "reorder_point": {
      "type": "string",
      "format": "decimal",
      "description": "Reorder point"
     },
     "is_active": {
      "type": "boolean",
      "description": "Is active"
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "location_id": {
      "type": "string",
      "format": "uuid",
      "description": "Location id",
      "readOnly": true
     },
     "warehouse_id": {
      "type": "string",
      "format": "uuid",
      "description": "Warehouse id",
      "readOnly": true
     },
     "serial_prefix": {
      "type": "string",
      "description": "Serial prefix"
     },
     "serialization_mode": {
      "type": "string",
      "description": "Serialization"
     },
     "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_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "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
     },
     "hsn_code": {
      "type": "string",
      "description": "HSN/SAC code"
     },
     "uqc": {
      "type": "string",
      "description": "Unit quantity code (UQC)"
     },
     "is_service": {
      "type": "boolean",
      "description": "A service (SAC)"
     },
     "cess_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Cess rate"
     },
     "tax_classification_id": {
      "type": "string",
      "format": "uuid",
      "description": "Tax classification id",
      "readOnly": true
     },
     "drop_ship_default": {
      "type": "boolean",
      "description": "Drop ship default",
      "readOnly": true
     },
     "drop_ship_supplier_id": {
      "type": "string",
      "format": "uuid",
      "description": "Drop ship supplier id",
      "readOnly": true
     },
     "merged_into_id": {
      "type": "string",
      "format": "uuid",
      "description": "Merged into id",
      "readOnly": true
     },
     "gst_tax_code": {
      "type": "string",
      "description": "GST tax code (sales)"
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/items": {
   "get": {
    "summary": "list items",
    "operationId": "list_items_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create items",
    "operationId": "create_items_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}": {
   "get": {
    "summary": "get items",
    "operationId": "get_items_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change items",
    "operationId": "change_items_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete items",
    "operationId": "delete_items_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}/profile": {
   "get": {
    "summary": "Profile",
    "operationId": "action_items_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}/where-used": {
   "get": {
    "summary": "Where used",
    "operationId": "action_items_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}/assign-org": {
   "post": {
    "summary": "Assign org",
    "operationId": "action_items_0_6",
    "description": "Body keys: orgUnitId*, effectiveFrom, copyFrom",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}/base-unit": {
   "get": {
    "summary": "Base unit",
    "operationId": "action_items_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}/units": {
   "get": {
    "summary": "Units",
    "operationId": "action_items_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_items_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/items/{parentId}/uoms": {
   "get": {
    "summary": "Uoms",
    "operationId": "action_items_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Uoms",
    "operationId": "action_items_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/items/{parentId}/uoms/{lineId}": {
   "put": {
    "summary": "Uoms",
    "operationId": "action_items_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Uoms",
    "operationId": "action_items_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}