Link a Price Model to Pricing Rule

post

/rest/v16/pricingSetup/rules/{ruleVarName}/ruleModels

Use this endpoint to link a price model to a pricing rule.Note: This does not add a new price model.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : PricingRuleModel
Type: object
Show Source
  • Title: The Adjustment Type of price model
    Read Only: true
    Allowed Values: [ "discountPercent", "discountAmount", "markupPercent", "markupAmount" ]
    Adjustment Type.
  • Created By
    Title: Created By
    Read Only: true
    The details of the user who created the record.
  • Title: Date Added
    Read Only: true
    Creation Date of the Price Model to Pricing Rule link.
  • Title: Date Modified
    Read Only: true
    Last modified date of the Price Model to Pricing Rule link.
  • Title: Description
    Read Only: true
    The description of the linked Price Model.
  • Title: Dynamic Pricing Type
    Read Only: true
    Allowed Values: [ "static", "advanced", "volume", "tiered", "rateCard", "attributeBasedCharge" ]
    The type of dynamic pricing applied by the linked Price Model.
  • Title: Edit Restriction
    Read Only: true
    Allowed Values: [ "UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED" ]
    Pricing Edit Restriction.
  • Title: Has BOM Item
    Read Only: true
    Indicates whether this model has prices defined for BOM Items.
  • Title: Has Charge Support
    Read Only: true
    Indicates whether this model has charge support.
  • Last Modified By
    Title: Last Modified By
    Read Only: true
    The details of the user who modified the record.
  • Links
  • Title: The List Type for the price model
    Read Only: true
    Allowed Values: [ "priceList", "discountList", "advanced", "markupList" ]
    List Type.
  • Title: Name
    Read Only: true
    The name of the linked Price Model.
  • Title: Order Number
    The position(starting from 1) of the linked Price Model within the Pricing Rule.
  • Title: Linked Pricing Rules Count
    Read Only: true
    The count of pricing rules linked to this model.
  • Title: Value Type
    Read Only: true
    Allowed Values: [ "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent" ]
    The type of discount applied by the linked Price Model.
  • Title: Variable Name
    The Unique Variable Name of the linked Price Model.
Nested Schema : Created By
Title: Created By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : Last Modified By
Title: Last Modified By
Read Only: true
The details of the user who modified the record.
Match All
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : PricingRuleModel
Type: object
Show Source
  • Title: The Adjustment Type of price model
    Read Only: true
    Allowed Values: [ "discountPercent", "discountAmount", "markupPercent", "markupAmount" ]
    Adjustment Type.
  • Created By
    Title: Created By
    Read Only: true
    The details of the user who created the record.
  • Title: Date Added
    Read Only: true
    Creation Date of the Price Model to Pricing Rule link.
  • Title: Date Modified
    Read Only: true
    Last modified date of the Price Model to Pricing Rule link.
  • Title: Description
    Read Only: true
    The description of the linked Price Model.
  • Title: Dynamic Pricing Type
    Read Only: true
    Allowed Values: [ "static", "advanced", "volume", "tiered", "rateCard", "attributeBasedCharge" ]
    The type of dynamic pricing applied by the linked Price Model.
  • Title: Edit Restriction
    Read Only: true
    Allowed Values: [ "UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED" ]
    Pricing Edit Restriction.
  • Title: Has BOM Item
    Read Only: true
    Indicates whether this model has prices defined for BOM Items.
  • Title: Has Charge Support
    Read Only: true
    Indicates whether this model has charge support.
  • Last Modified By
    Title: Last Modified By
    Read Only: true
    The details of the user who modified the record.
  • Links
  • Title: The List Type for the price model
    Read Only: true
    Allowed Values: [ "priceList", "discountList", "advanced", "markupList" ]
    List Type.
  • Title: Name
    Read Only: true
    The name of the linked Price Model.
  • Title: Order Number
    The position(starting from 1) of the linked Price Model within the Pricing Rule.
  • Title: Linked Pricing Rules Count
    Read Only: true
    The count of pricing rules linked to this model.
  • Title: Value Type
    Read Only: true
    Allowed Values: [ "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent" ]
    The type of discount applied by the linked Price Model.
  • Title: Variable Name
    The Unique Variable Name of the linked Price Model.
Nested Schema : Created By
Title: Created By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : Last Modified By
Title: Last Modified By
Read Only: true
The details of the user who modified the record.
Match All
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Back to Top

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 - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/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"
}
Back to Top