Update Price Model Linked to a Pricing Rule
patch
/rest/v16/pricingSetup/rules/{ruleVarName}/ruleModels/{modelVarName}
Use this endpoint to update a price model linked to the specified pricing rule.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : PricingRuleModel
Type:
Show Source
object
-
adjustmentType:
string()
Title:
The Adjustment Type of price model
Read Only:true
Allowed Values:[ "discountPercent", "discountAmount", "markupPercent", "markupAmount" ]
Adjustment Type. -
createdBy:
Created By
Title:
Created By
Read Only:true
The details of the user who created the record. -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date Added
Read Only:true
Creation Date of the Price Model to Pricing Rule link. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date Modified
Read Only:true
Last modified date of the Price Model to Pricing Rule link. -
description:
string()
Title:
Description
Read Only:true
The description of the linked Price Model. -
dynamicPricingType:
string()
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. -
editRestriction:
string()
Title:
Edit Restriction
Read Only:true
Allowed Values:[ "UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED" ]
Pricing Edit Restriction. -
hasBomItem:
boolean()
Title:
Has BOM Item
Read Only:true
Indicates whether this model has prices defined for BOM Items. -
hasChargeSupport:
boolean()
Title:
Has Charge Support
Read Only:true
Indicates whether this model has charge support. -
lastModifiedBy:
Last Modified By
Title:
Last Modified By
Read Only:true
The details of the user who modified the record. -
links:
array Links
Title:
Links
Read Only:true
The link relations associated with the resource instance. -
listType:
string()
Title:
The List Type for the price model
Read Only:true
Allowed Values:[ "priceList", "discountList", "advanced", "markupList" ]
List Type. -
name:
string()
Title:
Name
Read Only:true
The name of the linked Price Model. -
orderNumber:
integer()
Title:
Order Number
The position(starting from 1) of the linked Price Model within the Pricing Rule. -
ruleCount:
integer()
Title:
Linked Pricing Rules Count
Read Only:true
The count of pricing rules linked to this model. -
valueType:
string()
Title:
Value Type
Read Only:true
Allowed Values:[ "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent" ]
The type of discount applied by the linked Price Model. -
variableName:
string()
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 : Links
Type:
array
Title:
Links
Read Only:
true
The link relations associated with the resource instance.
Show Source
Nested Schema : UserDetails
Type:
Show Source
object
-
emailId:
string()
Title:
Email Id
Email Id of the user -
firstName:
string()
Title:
First Name
First Name of the user -
lastName:
string()
Title:
Last Name
Last Name of the user
Response
204 Response
Success
Examples
The following examples show how to change the order number for the specified price model. 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/oRCLpRCrunAllProfiles/ruleModels/subscriptionCharges
Request Body Sample
{ "orderNumber": "5" }