Update Pricing Rule

patch

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

Use this endpoint to update the specified pricing rule.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : PricingRule
Type: object
Show Source
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 : Customer Specific Conditions
Title: Customer Specific Conditions
Read Only: true
The collection of Customer specific conditions for the Pricing Rule.Note this is a child resource.
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 : Linked Price Models
Title: Linked Price Models
Read Only: true
The collection of linked Price Models. Note this is a child resource.
Match All
Show Source
Nested Schema : Simple Conditions
Title: Simple Conditions
The collection of simple conditions for the Pricing Rule of simple type. This is optional for other condition type.
Match All
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Nested Schema : PricingResourceCollection_PricingCustomerSpecificCondition
Type: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • Created By
    Title: Created By
    Read Only: true
    The details of the user who created the record.
  • Title: HasMore
    Read Only: true
    Indicates whether more resources are available on the server than the subset returned in the response. If the value is true, then there are more resources to retrieve from the server. The default value is false.
  • items
  • Last Modified By
    Title: Last Modified By
    Read Only: true
    The details of the user who modified the record.
  • Title: Limit
    Read Only: true
    The actual paging size used by the server.
  • Links
  • Title: OffSet
    Read Only: true
    The offset value used in the current page.
  • Title: Total Results
    Read Only: true
    Captures the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
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 : items
Type: array
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 : PricingCustomerSpecificCondition
Type: object
Show Source
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 : PricingResourceCollection_PricingRuleModel
Type: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • Created By
    Title: Created By
    Read Only: true
    The details of the user who created the record.
  • Title: HasMore
    Read Only: true
    Indicates whether more resources are available on the server than the subset returned in the response. If the value is true, then there are more resources to retrieve from the server. The default value is false.
  • items
  • Last Modified By
    Title: Last Modified By
    Read Only: true
    The details of the user who modified the record.
  • Title: Limit
    Read Only: true
    The actual paging size used by the server.
  • Links
  • Title: OffSet
    Read Only: true
    The offset value used in the current page.
  • Title: Total Results
    Read Only: true
    Captures the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
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 : items
Type: array
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 : 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 : SimpleConditions
Type: object
Show Source
Nested Schema : Simple Condition Rows
Type: array
Title: Simple Condition Rows
A list of Simple Condition Rows.
Show Source
Nested Schema : SimpleConditionRow
Type: object
Show Source
  • Title: Display Name
    The display name of the Simple Condition Row.
  • Title: Index
    The index (starting from 1) of the Simple Condition Row.
  • Title: Operator
    Allowed Values: [ "NONE", "EQUAL_TO", "NOT_EQUAL_TO", "GREATER_THAN", "GREATER_THAN_EQUAL_TO", "LESS_THAN", "LESS_THAN_EQUAL_TO", "CONTAINS", "NOT_CONTAINS", "STARTS_WITH", "NOT_STARTS_WITH", "ENDS_WITH", "NOT_ENDS_WITH" ]
    The operation of the Simple Condition Row.
  • Title: Target Value
    The value to match.
  • Title: Simple Condition Row
    The variable name of the Simple Condition Row.
Back to Top

Response

204 Response

Success
Back to Top

Examples

The following examples show how to update the specified pricing rule in Pricing Engine by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X PATCH - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/pricingSetup/rules/US_enterprise_pricing_rule

Request Body Sample

{
  "active": false,
  "name": "US Enterprise Pricing (Inactive)"
}
Back to Top