{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-opportunity-revenue-schema.json",
  "title": "OpportunityRevenue",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-reporting-opportunityanalysis-1-0-opportunity-api-openapi.yml#/components/schemas/OpportunityRevenue",
  "type": "object",
  "properties": {
    "eloquaCampaignID": {
      "format": "int32",
      "type": "integer"
    },
    "opportunityID": {
      "format": "int32",
      "type": "integer"
    },
    "attributedRevenue": {
      "format": "double",
      "type": "number"
    },
    "influencedRevenue": {
      "format": "double",
      "type": "number"
    },
    "lastModifiedDate": {
      "format": "date-time",
      "type": "string"
    },
    "opportunity": {
      "$ref": "#/$defs/Opportunity"
    }
  },
  "$defs": {
    "Contact": {
      "type": "object",
      "properties": {
        "contactId": {
          "format": "int32",
          "type": "integer"
        },
        "createdDate": {
          "format": "date-time",
          "type": "string"
        },
        "createdDateHour": {
          "format": "date-time",
          "type": "string"
        },
        "lastModifiedDate": {
          "format": "date-time",
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "emailAddress": {
          "type": "string"
        },
        "emailAddressDomain": {
          "type": "string"
        },
        "contactAddress1": {
          "type": "string"
        },
        "contactAddress2": {
          "type": "string"
        },
        "contactAddress3": {
          "type": "string"
        },
        "contactCity": {
          "type": "string"
        },
        "contactStateProv": {
          "type": "string"
        },
        "contactZipPostalCode": {
          "type": "string"
        },
        "contactCountry": {
          "type": "string"
        },
        "businessPhone": {
          "type": "string"
        },
        "salesPerson": {
          "type": "string"
        },
        "mobilePhone": {
          "type": "string"
        },
        "fax": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "leadSourceMostRecent": {
          "type": "string"
        },
        "leadSourceOriginal": {
          "type": "string"
        },
        "territory": {
          "type": "string"
        },
        "accountID": {
          "format": "int32",
          "type": "integer"
        },
        "eloquaLinkedAccountId": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "Opportunity": {
      "type": "object",
      "properties": {
        "opportunityID": {
          "format": "int32",
          "type": "integer"
        },
        "opportunityName": {
          "type": "string"
        },
        "stageStatus": {
          "type": "string"
        },
        "opportunityClosedDateHour": {
          "format": "date-time",
          "type": "string"
        },
        "createdDate": {
          "format": "date-time",
          "type": "string"
        },
        "territory": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "totalOpportunityAmount": {
          "format": "double",
          "type": "number"
        },
        "lastModifiedDate": {
          "format": "date-time",
          "type": "string"
        },
        "primaryContactID": {
          "format": "int32",
          "type": "integer"
        },
        "crmCampaignID": {
          "type": "string"
        },
        "opportunityRevenues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpportunityRevenue"
          }
        },
        "contact": {
          "$ref": "#/$defs/Contact"
        }
      }
    },
    "OpportunityRevenue": {
      "type": "object",
      "properties": {
        "eloquaCampaignID": {
          "format": "int32",
          "type": "integer"
        },
        "opportunityID": {
          "format": "int32",
          "type": "integer"
        },
        "attributedRevenue": {
          "format": "double",
          "type": "number"
        },
        "influencedRevenue": {
          "format": "double",
          "type": "number"
        },
        "lastModifiedDate": {
          "format": "date-time",
          "type": "string"
        },
        "opportunity": {
          "$ref": "#/$defs/Opportunity"
        }
      }
    }
  }
}