{
 "openapi": "3.1.0",
 "info": {
  "title": "Inventory Valuation (Supply Chain)",
  "version": "20261030b",
  "description": "What stock is worth, item by item, by the costing method each item is costed with — beside what it would be worth at standard cost."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "inventory-valuation": {
    "type": "object",
    "required": [],
    "properties": {
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "item_id": {
      "type": "string",
      "format": "uuid",
      "description": "Item id",
      "readOnly": true
     },
     "item_no": {
      "type": "string",
      "description": "Item no",
      "readOnly": true
     },
     "item_name": {
      "type": "string",
      "description": "Item name",
      "readOnly": true
     },
     "uom": {
      "type": "string",
      "description": "Uom",
      "readOnly": true
     },
     "cost_method": {
      "type": "string",
      "description": "Cost method",
      "readOnly": true
     },
     "on_hand": {
      "type": "string",
      "format": "decimal",
      "description": "On hand",
      "readOnly": true
     },
     "standard_cost": {
      "type": "string",
      "format": "decimal",
      "description": "Standard cost",
      "readOnly": true
     },
     "unit_value": {
      "type": "string",
      "format": "decimal",
      "description": "Unit value",
      "readOnly": true
     },
     "stock_value": {
      "type": "string",
      "format": "decimal",
      "description": "Stock value",
      "readOnly": true
     },
     "value_at_standard": {
      "type": "string",
      "format": "decimal",
      "description": "Value at standard",
      "readOnly": true
     },
     "open_layers": {
      "type": "integer",
      "description": "Open layers",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/inventory-valuation": {
   "get": {
    "summary": "list inventory-valuation",
    "operationId": "list_inventory_valuation_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post inventory valuation",
    "operationId": "action_inventory_valuation_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/inventory-valuation/{item_id}": {
   "get": {
    "summary": "get inventory-valuation",
    "operationId": "get_inventory_valuation_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/inventory-valuation/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_inventory_valuation_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/inventory-valuation/{id}": {
   "put": {
    "summary": "Put inventory valuation",
    "operationId": "action_inventory_valuation_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete inventory valuation",
    "operationId": "action_inventory_valuation_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}