{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-siebel/json-schema/oracle-siebel-opportunity-schema.json",
  "title": "Opportunity",
  "description": "A Siebel CRM Opportunity business component record representing a potential sales deal in the pipeline",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-siebel-opportunities-api-openapi.yml#/components/schemas/Opportunity",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique row identifier for the opportunity record"
    },
    "Name": {
      "type": "string",
      "description": "Opportunity name"
    },
    "Account": {
      "type": "string",
      "description": "Associated account name"
    },
    "Account Id": {
      "type": "string",
      "description": "Row identifier of the associated account"
    },
    "Sales Stage": {
      "type": "string",
      "description": "Current stage in the sales process"
    },
    "Status": {
      "type": "string",
      "description": "Opportunity status"
    },
    "Close Date": {
      "type": "string",
      "description": "Expected close date"
    },
    "Revenue": {
      "type": "number",
      "description": "Expected revenue amount"
    },
    "Win Probability": {
      "type": "number",
      "description": "Estimated probability of winning the deal",
      "minimum": 0,
      "maximum": 100
    },
    "Description": {
      "type": "string",
      "description": "Detailed description of the opportunity"
    },
    "Primary Organization Id": {
      "type": "string",
      "description": "Row identifier of the primary organization"
    },
    "Link": {
      "type": "array",
      "description": "HATEOAS links to related resources",
      "items": {
        "$ref": "#/$defs/LinkObject"
      }
    }
  },
  "$defs": {
    "LinkObject": {
      "type": "object",
      "description": "HATEOAS link object providing navigation references to related Siebel REST API resources",
      "properties": {
        "rel": {
          "type": "string",
          "description": "Relationship type (self, child, parent)",
          "enum": [
            "self",
            "child",
            "parent"
          ]
        },
        "href": {
          "type": "string",
          "format": "uri",
          "description": "Full URL to the related resource"
        },
        "name": {
          "type": "string",
          "description": "Name of the related business component"
        }
      }
    }
  }
}