Link a Pricing Model to Pricing Rule
post
                    /rest/v19/pricingSetup/rules/{ruleVariableName}/ruleModels
Use this endpoint to link a price model to a pricing rule. Note, this does not add a new pricing model.
                
                Request
Supported Media Types
                - application/json
Path Parameters
                
                
                
                
                
                
                Root Schema : PricingRuleModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            adjustmentType: 
            string()
            Title:The Adjustment Type of pricing modelRead Only:trueAllowed Values:[ "discountPercent", "discountAmount", "markupPercent", "markupAmount" ]Adjustment Type.
- 
            createdBy: 
             Created By
            
            Title:Created ByRead Only:trueThe details of the user who created the record.
- 
            dateAdded: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date AddedRead Only:trueCreation Date of the Pricing Model to Pricing Rule link.
- 
            dateModified: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date ModifiedRead Only:trueLast modified date of the Pricing Model to Pricing Rule link.
- 
            description: 
            string()
            Title:DescriptionRead Only:trueThe description of the linked Pricing Model.
- 
            dynamicPricingType: 
            string()
            Title:Dynamic Pricing TypeRead Only:trueAllowed Values:[ "static", "advanced", "volume", "tiered", "rateCard", "attributeBasedCharge" ]The type of dynamic pricing applied by the linked Pricing Model.
- 
            editRestriction: 
            string()
            Title:Edit RestrictionRead Only:trueAllowed Values:[ "UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED" ]Pricing Edit Restriction.
- 
            groupAccessEnabled: 
            boolean()
            Title:Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment
- 
            hasBomItem: 
            boolean()
            Title:Has BOM ItemRead Only:trueIndicates whether this model has prices defined for BOM Items.
- 
            hasChargeSupport: 
            boolean()
            Title:Has Charge SupportRead Only:trueIndicates whether this model has charge support.
- 
            lastModifiedBy: 
             Last Modified By
            
            Title:Last Modified ByRead Only:trueThe details of the user who modified the record.
- 
            links: 
            array  Links
            
            Title:LinksRead Only:trueThe link relations associated with the resource instance.
- 
            listType: 
            string()
            Title:The List Type for the pricing modelRead Only:trueAllowed Values:[ "priceList", "discountList", "advanced", "markupList", "advancedByTemplate" ]List Type.
- 
            name: 
            string()
            Title:NameRead Only:trueThe name of the linked Pricing Model.
- 
            orderNumber: 
            integer()
            Title:Order NumberThe position(starting from 1) of the linked Pricing Model within the Pricing Rule.
- 
            ruleCount: 
            integer()
            Title:Linked Pricing Rules CountRead Only:trueThe count of pricing rules linked to this model.
- 
            segmentLevelAccessType: 
            string()
            Title:Segment-level Access TypeRead Only:trueSegment-level Access Type
- 
            valueType: 
            string()
            Title:Value TypeRead Only:trueAllowed Values:[ "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent", "advancedByTemplate" ]The type of discount applied by the linked Pricing Model.
- 
            variableName: 
            string()
            Title:Variable NameThe Unique Variable Name of the linked Pricing Model.
Nested Schema : Created By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Created ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who created the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who created the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Last Modified By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Last Modified ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who modified the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who modified the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    LinksRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe link relations associated with the resource instance.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : UserDetails
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            emailId: 
            string()
            Title:Email IdEmail Id of the user
- 
            firstName: 
            string()
            Title:First NameFirst Name of the user
- 
            lastName: 
            string()
            Title:Last NameLast Name of the user
Response
Supported Media Types
                - application/json
200 Response
Success
                
                
                    Root Schema : PricingRuleModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            adjustmentType: 
            string()
            Title:The Adjustment Type of pricing modelRead Only:trueAllowed Values:[ "discountPercent", "discountAmount", "markupPercent", "markupAmount" ]Adjustment Type.
- 
            createdBy: 
             Created By
            
            Title:Created ByRead Only:trueThe details of the user who created the record.
- 
            dateAdded: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date AddedRead Only:trueCreation Date of the Pricing Model to Pricing Rule link.
- 
            dateModified: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date ModifiedRead Only:trueLast modified date of the Pricing Model to Pricing Rule link.
- 
            description: 
            string()
            Title:DescriptionRead Only:trueThe description of the linked Pricing Model.
- 
            dynamicPricingType: 
            string()
            Title:Dynamic Pricing TypeRead Only:trueAllowed Values:[ "static", "advanced", "volume", "tiered", "rateCard", "attributeBasedCharge" ]The type of dynamic pricing applied by the linked Pricing Model.
- 
            editRestriction: 
            string()
            Title:Edit RestrictionRead Only:trueAllowed Values:[ "UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED" ]Pricing Edit Restriction.
- 
            groupAccessEnabled: 
            boolean()
            Title:Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment
- 
            hasBomItem: 
            boolean()
            Title:Has BOM ItemRead Only:trueIndicates whether this model has prices defined for BOM Items.
- 
            hasChargeSupport: 
            boolean()
            Title:Has Charge SupportRead Only:trueIndicates whether this model has charge support.
- 
            lastModifiedBy: 
             Last Modified By
            
            Title:Last Modified ByRead Only:trueThe details of the user who modified the record.
- 
            links: 
            array  Links
            
            Title:LinksRead Only:trueThe link relations associated with the resource instance.
- 
            listType: 
            string()
            Title:The List Type for the pricing modelRead Only:trueAllowed Values:[ "priceList", "discountList", "advanced", "markupList", "advancedByTemplate" ]List Type.
- 
            name: 
            string()
            Title:NameRead Only:trueThe name of the linked Pricing Model.
- 
            orderNumber: 
            integer()
            Title:Order NumberThe position(starting from 1) of the linked Pricing Model within the Pricing Rule.
- 
            ruleCount: 
            integer()
            Title:Linked Pricing Rules CountRead Only:trueThe count of pricing rules linked to this model.
- 
            segmentLevelAccessType: 
            string()
            Title:Segment-level Access TypeRead Only:trueSegment-level Access Type
- 
            valueType: 
            string()
            Title:Value TypeRead Only:trueAllowed Values:[ "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent", "advancedByTemplate" ]The type of discount applied by the linked Pricing Model.
- 
            variableName: 
            string()
            Title:Variable NameThe Unique Variable Name of the linked Pricing Model.
Nested Schema : Created By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Created ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who created the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who created the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Last Modified By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Last Modified ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who modified the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who modified the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    LinksRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe link relations associated with the resource instance.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : UserDetails
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            emailId: 
            string()
            Title:Email IdEmail Id of the user
- 
            firstName: 
            string()
            Title:First NameFirst Name of the user
- 
            lastName: 
            string()
            Title:Last NameLast Name of the user
Examples
The following example shows how link a price model to a pricing rule in Pricing Engine by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/pricingSetup/rules/basePricingRule/ruleModels
Request Body Sample
{
  "variableName": "tierDiscountPricing"
}Response Body Sample
{
  "variableName": "tierDiscountPricing",
  "orderNumber": 2,
  "dateModified": "2022-12-02T21:02:13Z",
  "dateAdded": "2022-12-02T21:02:13Z",
  "name": "Tier Discount Pricing",
  "valueType": "discountAmount",
  "dynamicPricingType": "tiered"
}