Get an opportunity

get

/crmRestApi/resources/11.13.18.05/deals/{dealsUniqID}/child/MatchedOpportunity/{OptyId}

Request

Path Parameters
  • The unique identifier of the opportunity.
  • This is the hash key of the attributes which make up the composite key for the Deal Registrations resource and used to uniquely identify an instance of Deal Registrations. The client should not generate the hash key value. Instead, the client should query on the Deal Registrations collection resource in order to navigate to a specific instance of Deal Registrations to get the hash key.
Query Parameters
  • This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2

    Format: <attr1>=<val1>,<attr2>=<value2>
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : deals-MatchedOpportunity-item-response
Type: object
Show Source
  • Title: Account Number
    Read Only: true
    Maximum Length: 30
    The party number of the account associated with the matched opportunity.
  • The unique identifier of the asset associated with the opportunity.
  • Title: Asset Number
    Maximum Length: 100
    The alternate key identifier of the asset associated with the opportunity.
  • Title: Asset
    The asset product associated with the opportunity.
  • Title: Asset Serial Number
    Read Only: true
    Maximum Length: 100
    The asset serial number associated with the opportunity.
  • Title: Assignment Mode
    Maximum Length: 30
    Specifies the types of assignment mode options available for controlling auto assignment default behavior for opportunity record updates.
  • Title: Duration
    Read Only: true
    The average duration, in number of days, that the opportunity remains in the current sales stage.
  • Title: Batch Tag
    Maximum Length: 30
    The batch tag of the opportunity.
  • Title: Budget Amount
    Budget amount from the sales account.
  • Title: Budget Amount Currency
    Maximum Length: 15
    The currency code for budget amount from the sales account.
  • Title: Date Budget Available
    The date and time when the opportunity budget was made available.
  • Title: Budgeted
    Maximum Length: 1
    Default Value: false
    Indicates if the opportunity sales account has the budget approved for the potential purchase. If the value is true, then the sales account has the budget approved for the purchase. The default value is False.
  • Title: Key Internal Sponsor
    Maximum Length: 1
    Default Value: false
    Indicates if the opportunity has an internal sponsor. If the value is true, then the opportunity has an internal sponsor. The default value is False.
  • Title: Close Period
    Read Only: true
    The close period of the opportunity.
  • Title: Comments
    Maximum Length: 2000
    The user-provided comments for the opportunity.
  • Title: Conflict ID
    Default Value: 0
    Disconnected Mobile: this value is used to guarantee the uniqueness of the row when duplicates are created in different databases (i.e. mobile databases or the server).
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the opportunity record.
  • Title: Creation Date
    Read Only: true
    The date and time when the opportunity record was created.
  • Title: Conversion Rate
    This rate is used for the conversion of the revenue amount to the CRM common currency to facilitate the computation of the revenue forecast metrics. This is the amount that one currency can be exchanged for, at a specific point of time.
  • Title: CRM Common Currency
    Read Only: true
    Maximum Length: 15
    CRM common currency code.
  • Title: Currency
    Maximum Length: 15
    The currency code of the matched opportunity. This attribute is used by CRM Extensibility framework. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. Review and update the profile option using the Setup and Maintenance work area, Manage Currency Profile Options task.
  • Title: Billing Account
    The unique identifier of the customer billing account associated with the opportunity.
  • Title: Estimated Deal Duration
    Maximum Length: 30
    The estimated time, in days, required to close the deal. A list of valid values is defined in the lookup MOO_SETID_DEAL_HORIZION. Review and update the codes using the Setup and Maintenance work area, Manage Standard Lookups task.
  • Title: Decision Level
    Maximum Length: 30
    The job level of the person who takes the final decision for the opportunity. A list of valid values is defined in the lookup MOO_SETID_DECISION_LEVEL. Review and update the codes using the Setup and Maintenance work area, Manage Standard Lookups task.
  • Read Only: true
    Indicates whether the opportunity can be deleted.
  • Title: Sales Objective
    Maximum Length: 2000
    The description of the opportunity, including the sales objective.
  • Title: Description
    Read Only: true
    Maximum Length: 255
    The description of the sales objective of the opportunity.
  • Title: Worst Case
    Default Value: 0
    The minimum amount of revenue for the opportunity.
  • Title: Close Date
    The date and time when the opportunity was closed.
  • Title: Owner Email
    Read Only: true
    Maximum Length: 320
    The e-mail address of the employee resource that owns the opportunity.
  • Title: Expected Revenue
    Default Value: 0
    The expected revenue from the opportunity.
  • Title: Forecast Category
    Maximum Length: 30
    Specifies the categories used to represent the commitment level for sales forecasting such as pipeline, best case, most likely and so on.
  • Title: Include in Forecast
    Maximum Length: 30
    The code that indicates if the revenue forecast should be overridden. The valid values are ALWAYS, NEVER, and CRITERIA.
  • Title: Hint Code
    Read Only: true
    Maximum Length: 10
    AI hint code.
  • Title: Installed Base Asset
    Identifier of the installed base asset of the opportunity.
  • Title: Installed Base Asset Number
    Read Only: true
    Maximum Length: 80
    Asset number of the installed base asset of the opportunity.
  • Title: Installed Base Asset Serial Number
    Read Only: true
    Maximum Length: 80
    The associated installed base Asset's Serial number
  • Title: Primary Contact
    The unique identifier of the primary contact associated with the opportunity.
  • Title: Last Updated Date
    Read Only: true
    The date and time when the opportunity record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the opportunity record.
  • Title: Last Update Login
    Maximum Length: 32
    The login of the user who last updated the opportunity record.
  • Title: Line of Business
    Maximum Length: 30
    The code indicating which line of business owns the opportunity.
  • Links
  • Title: Status Category
    Read Only: true
    Maximum Length: 30
    The status category of the opportunity status.
  • Title: Manage General Profile Data
    Read Only: true
    Allows management of general opportunity information such as competitors, lead, source, contacts, references, interactions, and assessments.
  • Title: Manage Restricted Profile Data
    Read Only: true
    Allows management of restricted opportunity information such as sales method, sales stage, sales account, primary contact, and partners.
  • Title: Manage Revenue Data
    Read Only: true
    Allows management of revenue data, such as products and recurring revenue information.
  • Title: Manage Team Data
    Read Only: true
    Allows management of opportunity sales team data.
  • Title: Stalled Deal Limit
    Read Only: true
    The maximum duration, in number of days, that the opportunity can remain in the sales stage before it is considered stalled.
  • Title: Name
    Maximum Length: 275
    The name of the opportunity.
  • Title: Opportunity Origin
    Maximum Length: 30
    Default Value: SALES_OPTY
    The value for the origin of the opportunity.
  • Title: Opportunity Type
    Maximum Length: 30
    Display the different types of opportunity such as new, renewal and expansion.
  • Title: Opportunity Created By
    Maximum Length: 64
    The user who created the opportunity.
  • Title: Opportunity Creation Date
    The date and time when the opportunity was created.
  • Title: Opportunity ID
    The unique identifier of the opportunity.
  • Title: Opportunity Last Updated Date
    The date when the opportunity was last updated.
  • Title: Opportunity Last Updated By
    Maximum Length: 64
    The user who last updated the opportunity.
  • Title: Opportunity Number
    Maximum Length: 30
    The unique alternate identifier for the opportunity.
  • Title: Owner Number
    Read Only: true
    Maximum Length: 30
    The owner party number of the opportunity.
  • Title: Owner
    The unique identifier of a valid employee resource who owns and manages the opportunity.
  • Title: Owner
    Read Only: true
    Maximum Length: 360
    The name of the opportunity owner.
  • Title: Primary Competitor
    Read Only: true
    Maximum Length: 900
    The unique name of the primary competitor for the opportunity.
  • Title: Phase
    Read Only: true
    Maximum Length: 30
    Default Value: "B - Working the Deal"
    The code indicating the current phase of the opportunity sales stage.
  • Title: Predicted Win Probability
    Read Only: true
    AI predicted win probability percent.
  • Title: Primary Campaign ID
    The unique identifier of the primary campaign associated with the matched opportunity.
  • Title: Primary Campaign
    The name of the primary campaign associated with the matched opportunity.
  • Title: Primary Campaign Number
    Maximum Length: 30
    The alternate unique identifier of the primary campaign associated with the matched opportunity.
  • Title: Primary Competitor
    The unique identifier of the primary competitor associated with the opportunity.
  • Title: Primary Competitor Party Number
    Read Only: true
    Maximum Length: 30
    The party number of the primary competitor associated with the opportunity.
  • Title: Primary Contact Email
    Read Only: true
    Maximum Length: 320
    The e-mail address of the primary contact associated with the opportunity.
  • Title: Primary Contact Email Preference
    Read Only: true
    Maximum Length: 255
    Indicates if the primary contact has an email preference of do not email, ok to email, or no value.
  • Title: Primary Contact Phone
    Read Only: true
    The phone number of the primary contact associated with the opportunity.
  • Title: Primary Contact
    Read Only: true
    Maximum Length: 360
    The name of the primary contact associated with the opportunity.
  • Title: Primary Contact Party Number
    Read Only: true
    Maximum Length: 30
    The party number of the primary contact associated with the opportunity.
  • Title: Primary Contact Phone Preference
    Read Only: true
    Maximum Length: 255
    Indicates if the primary contact has a phone preference of do not call, ok to call, or no value.
  • Title: Business Unit ID
    The unique identifier of the business unit associated with the opportunity.
  • Title: Primary Partner Number
    Maximum Length: 30
    The party number of the primary partner associated with the opportunity.
  • Title: Primary Partner
    The unique identifier of the primary partner associated with the opportunity.
  • Title: Primary Partner
    Maximum Length: 360
    The organization party name of the primary partner associated with the opportunity.
  • Title: Summary Revenue Line ID
    The unique identifier of the summary revenue line associated with the opportunity.
  • Title: Primary Subscription Id
    The unique identifier of the primary subscription of the opportunity.
  • Title: Subscription Number
    Read Only: true
    Maximum Length: 120
    The alternate identifier of primary subscription of the opportunity.
  • Title: Primary Source Number
    Maximum Length: 100
    The unique identifier of the primary marketing source or campaign that generated the opportunity.
  • Title: Quota Factor
    Read Only: true
    The quota factor of the opportunity sales stage.
  • Title: Quoted
    Maximum Length: 1
    Default Value: false
    Indicates that a quote has been created for this Opportunity.
  • Title: Win Probability
    Read Only: true
    Default Value: 0
    The recommended probability of winning the opportunity in the sales stage.
  • Title: Win/Loss Reason
    Maximum Length: 30
    The reason for winning or losing the opportunity. A list of valid values is defined in the lookup MOO_SETID_WIN_LOSS_REASON. Review and update the codes using the Setup and Maintenance work area, Manage Standard Lookups task.
  • Title: Recommended Action
    Read Only: true
    Maximum Length: 180
    AI recommended action.
  • Read Only: true
    The record set of the opportunity.
  • Title: Registered
    Maximum Length: 30
    Indicates whether the opportunity was registered. The valid values are Expired, Yes, and No.
  • Title: Registration Status
    Maximum Length: 30
    The registration status of the opportunity.
  • Title: Registration Type
    Maximum Length: 30
    The registration type used by the partner to create the opportunity.
  • Title: Renewal Process
    Maximum Length: 30
    The renewal process can be manual, do not renew or automatic renewal.
  • Title: Amount
    Default Value: 0
    The revenue amount of the opportunity.
  • Title: Level of Risk
    Maximum Length: 30
    The risk level code of the opportunity. A list of valid values is defined in the lookup MOO_SETID_RISK_LEVE. Review and update the codes using the Setup and Maintenance work area, Manage Standard Lookups task.
  • Title: Customer Account
    Read Only: true
    Maximum Length: 900
    The unique name of the sales account that owns the opportunity.
  • Title: Sales Channel
    Maximum Length: 50
    The code indicating the sales channel for the opportunity.
  • Title: Sales Method
    Read Only: true
    Maximum Length: 50
    The sales method associated with the opportunity.
  • Title: Sales Method
    The unique identifier of the sales method associated with the opportunity.
  • Title: Sales Stage
    Read Only: true
    Maximum Length: 50
    The current sales stage of the opportunity.
  • Title: Sales Stage
    The unique identifier of the sales stage associated with the opportunity.
  • Indicates if the matched opportunity is selected.
  • Maximum Length: 80
    The public unique identifier for the CPQ configuration setup.
  • Title: Source Type
    Read Only: true
    The source type of the opportunity.
  • Title: Status
    Read Only: true
    Maximum Length: 30
    Default Value: "Open"
    The code indicating the default status of the sales stage associated with the opportunity.
  • Title: Status
    Maximum Length: 30
    The status of the opportunity. A list of valid values is defined in the lookup MOO_OPTY_STATUS. Review and update the codes using the Setup and Maintenance work area, Manage Standard Lookups task.
  • Title: Order
    Read Only: true
    The order of the opportunity's sales stage in the sales method.
  • Title: Strategic Value
    Maximum Length: 30
    The strategic value that the opportunity has for the sales account. A list of valid values is defined in the lookup MOO_SETID_STRATEGIC_VALUE. Review and update the codes using the Setup and Maintenance work area, Manage Standard Lookups task.
  • Title: Account
    The unique identifier of the sales account associated with the opportunity.
  • Title: Account
    Read Only: true
    Maximum Length: 360
    The name of the sales account associated with the opportunity.
  • Title: Account Country
    Read Only: true
    Maximum Length: 2
    Country of the primary account's primary address.
  • Read Only: true
    Indicates whether the opportunity can be updated.
  • Title: Best Case
    Default Value: 0
    The maximum amount of revenue for the opportunity.
  • Title: Win Probability
    The estimated probability of winning the opportunity.
Back to Top

Examples

The following example shows how to get an opportunity by submitting a get request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/deals/300100071991763/child/MatchedOpportunity/300100089504947

Example of Response Body

The following shows an example of the response body in JSON format.

{    
  PrimaryOrganizationId: 100000015105046
  ChampionFlag: false
  CurrencyCode: "USD"
  SalesMethodId: 100000012430001
  SalesStageId: 100000012430007
  Name: "Major Application Upgrade"
  OptyId: 300100089504947
  OptyNumber: "CDRM_98919"
  OwnerResourcePartyId: 100000016934102
  ...
}

Back to Top