{
 "openapi": "3.1.0",
 "info": {
  "title": "Projected Stock (Supply Chain)",
  "version": "20261030b",
  "description": "What is on hand, what is coming, what is wanted, week by week for six months. The single most useful screen in planning and the one thing reorder advice could never show."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "projected-availability": {
    "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
     },
     "safety_stock": {
      "type": "string",
      "format": "decimal",
      "description": "Safety stock",
      "readOnly": true
     },
     "reorder_point": {
      "type": "string",
      "format": "decimal",
      "description": "Reorder point",
      "readOnly": true
     },
     "week_start": {
      "type": "string",
      "format": "date",
      "description": "Week start",
      "readOnly": true
     },
     "opening_available": {
      "type": "string",
      "format": "decimal",
      "description": "Opening available",
      "readOnly": true
     },
     "demand_in_week": {
      "type": "string",
      "format": "decimal",
      "description": "Demand in week",
      "readOnly": true
     },
     "supply_in_week": {
      "type": "string",
      "format": "decimal",
      "description": "Supply in week",
      "readOnly": true
     },
     "planned_in_week": {
      "type": "string",
      "format": "decimal",
      "description": "Planned in week",
      "readOnly": true
     },
     "projected_available": {
      "type": "string",
      "format": "decimal",
      "description": "Projected available",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/projected-availability": {
   "get": {
    "summary": "list projected-availability",
    "operationId": "list_projected_availability_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post projected stock",
    "operationId": "action_projected_availability_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/projected-availability/{item_id}": {
   "get": {
    "summary": "get projected-availability",
    "operationId": "get_projected_availability_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/projected-availability/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_projected_availability_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/projected-availability/{id}": {
   "put": {
    "summary": "Put projected stock",
    "operationId": "action_projected_availability_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete projected stock",
    "operationId": "action_projected_availability_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}