Update one tiered rule
patch
/fscmRestApi/resources/11.13.18.05/discountLists/{DiscountListId}/child/items/{DiscountListItemId}/child/tieredRules/{PricingTermId}
Request
Path Parameters
-
DiscountListId(required): integer(int64)
Value that uniquely identifies the discount list.
-
DiscountListItemId(required): integer(int64)
Value that uniquely identifies the discount list item.
-
PricingTermId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
Header Parameters
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ApplyToRollup: string
Maximum Length:
30Value that identifies the rollup. -
ChargeSubtype: string
Subtype of charge for the pricing charge definition. Valid values include Price, Fee, and so on. A list of accepted values is defined in the lookup type ORA_QP_CHARGE_SUBTYPES.
-
ChargeSubtypeCode: string
Title:
Charge SubtypeMaximum Length:30Abbreviation that identifies the charge subtype in the discount list. -
ChargeType: string
Type of charge for the pricing charge definition. Valid values include Sale, Service, Restocking, and so on. A list of accepted values is defined in the lookup type ORA_QP_CHARGE_TYPES.
-
ChargeTypeCode: string
Title:
Charge TypeMaximum Length:30Abbreviation that identifies the type of charge in the discount list. -
EndDate: string
(date-time)
Title:
End DateDate when the rule becomes inactive. -
PricePeriodicity: string
Name of the price periodicity.
-
PricePeriodicityCode: string
Title:
Price PeriodicityMaximum Length:3Abbreviation that identifies the price periodicity in the discount list. -
PriceType: string
Type of price for the pricing charge definition. Valid values include One time and Recurring. A list of accepted values is defined in the lookup type ORA_QP_PRICE_TYPES.
-
PriceTypeCode: string
Title:
Price TypeMaximum Length:30Abbreviation that identifies the type of price in the discount list. -
pricingTiers: array
Tier Headers
Title:
Tier HeadersThe Tier Headers resource manages tier headers for pricing charges and discounts. -
rulesDFF: array
Flexfields for Discount List Rules
Title:
Flexfields for Discount List RulesThe Flexfields for Discount List Rules resource associates descriptive flexfield segments and its values to a discount list rule. -
StartDate: string
(date-time)
Title:
Start DateDate when the rule becomes active. -
TierHeaderId: integer
(int64)
Value that uniquely identifies the tier header.
Nested Schema : Tier Headers
Type:
arrayTitle:
Tier HeadersThe Tier Headers resource manages tier headers for pricing charges and discounts.
Show Source
Nested Schema : Flexfields for Discount List Rules
Type:
arrayTitle:
Flexfields for Discount List RulesThe Flexfields for Discount List Rules resource associates descriptive flexfield segments and its values to a discount list rule.
Show Source
Nested Schema : schema
Type:
Show Source
object-
AdjustmentBasis: string
Name of the adjustment basis.
-
AdjustmentBasisId: integer
(int64)
Title:
Adjustment BasisValue that identifies the adjustment basis. -
AdjustmentType: string
Name of the type of adjustment. A list of accepted values is defined in the lookup type ORA_QP_LINE_ADJ_TYPES.
-
AdjustmentTypeCode: string
Title:
Adjustment TypeMaximum Length:30Abbreviation that identifies the type of adjustment. -
AggregationMethod: string
Name of the tier aggregation method. Valid values include On line and On document. A list of accepted values is defined in the lookup type ORA_QP_AGGREGATION_METHODS.
-
AggregationMethodCode: string
Title:
Aggregation MethodMaximum Length:30Default Value:ORA_ON_DOCUMENTAbbreviation that identifies the method of the tier aggregation. -
ApplicationMethod: string
Name of the tier application method. Valid values include Per unit and As block. A list of accepted values is defined in the lookup type ORA_QP_APPLICATION_METHODS.
-
ApplicationMethodCode: string
Title:
Application MethodMaximum Length:30Default Value:PER_UNITAbbreviation that identifies the method of tier application. -
AppliesTo: string
Name of the tier applicability. Valid values include Highest tier and All tiers. A list of accepted values is defined in the lookup type ORA_QP_TIER_GRADUATED_TYPES.
-
AppliesToCode: string
Title:
Apply ToMaximum Length:30Default Value:HIGHEST_TIERAbbreviation that identifies the tier applicability. -
headerDFF: array
Flexfields for Discount List Header
Title:
Flexfields for Discount List HeaderThe Flexfields for Discount List Header resource associates descriptive flexfield segments and its values to a discount list. -
lines: array
Tier Lines
Title:
Tier LinesThe Tier Lines resource manages tier line details for pricing charges and discounts. -
PartialBlockAction: string
Name of the tier partial block action. Valid values include Partial blocks and Satisfied blocks. A list of accepted values is defined in the lookup type ORA_QP_PARTIAL_BLOCK_ACTIONS.
-
PartialBlockActionCode: string
Title:
Partial Block ActionMaximum Length:30Abbreviation that identifies the tier partial block action. -
TierBasis: string
Name of the tier basis.
-
TierBasisId: integer
(int64)
Title:
Tier BasisValue that uniquely identifies the tier basis. -
TierBasisType: string
Type of the tier basis. Valid values include Extended amount and Item quantity. A list of accepted values is defined in the lookup type ORA_QP_TIER_BASIS_TYPES.
-
TierBasisTypeCode: string
Title:
Tier Basis TypeMaximum Length:30Abbreviation that identifies the type of the tier basis.
Nested Schema : Flexfields for Discount List Header
Type:
arrayTitle:
Flexfields for Discount List HeaderThe Flexfields for Discount List Header resource associates descriptive flexfield segments and its values to a discount list.
Show Source
Nested Schema : Tier Lines
Type:
arrayTitle:
Tier LinesThe Tier Lines resource manages tier line details for pricing charges and discounts.
Show Source
Nested Schema : schema
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for tier headers. -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
TieredPricingHeaderId: integer
(int64)
Value that uniquely identifies the tier header of a pricing charge or discount to which the descriptive flexfields belong.
Nested Schema : schema
Type:
Show Source
object-
AdjustmentAmount: number
Title:
Adjustment AmountValue of the adjustment amount. -
AdjustmentBasis: string
Name of the adjustment basis.
-
AdjustmentBasisId: integer
(int64)
Title:
Adjustment BasisValue that identifies the adjustment basis. -
AdjustmentType: string
Name of the type of adjustment. A list of accepted values is defined in the lookup type ORA_QP_LINE_ADJ_TYPES.
-
AdjustmentTypeCode: string
Title:
Adjustment TypeMaximum Length:30Abbreviation that identifies the type of adjustment. -
ApplicationMethod: string
Name of the tier application method. Valid values include Per unit and As block. A list of accepted values is defined in the lookup type ORA_QP_APPLICATION_METHODS.
-
ApplicationMethodCode: string
Title:
Application MethodMaximum Length:30Abbreviation that identifies the method of tier application. -
IncrementValue: integer
Title:
Increment ValueIncrement value number. -
linesDFF: array
Flexfields for Tier Lines
Title:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line. -
Maximum: number
Title:
MaximumMaximum value for the tier line. -
Minimum: number
Title:
MinimumMinimum value for the tier line. -
TierHeaderId: integer
(int64)
Value that uniquely identifies the tier header.
-
TierLineId: integer
(int64)
Value that uniquely identifies the tier line.
Nested Schema : Flexfields for Tier Lines
Type:
arrayTitle:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line.
Show Source
Nested Schema : schema
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for tier lines. -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
TieredPricingLineId: integer
(int64)
Value that uniquely identifies the tier line of a pricing charge or discount to which the descriptive flexfields belong.
Nested Schema : schema
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for pricing terms. -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
PricingTermId: integer
(int64)
Value that uniquely identifies the pricing term to which the descriptive flexfields belong.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : discountLists-items-tieredRules-item-response
Type:
Show Source
object-
ApplyToRollup: string
Maximum Length:
30Value that identifies the rollup. -
ChargeSubtype: string
Subtype of charge for the pricing charge definition. Valid values include Price, Fee, and so on. A list of accepted values is defined in the lookup type ORA_QP_CHARGE_SUBTYPES.
-
ChargeSubtypeCode: string
Title:
Charge SubtypeMaximum Length:30Abbreviation that identifies the charge subtype in the discount list. -
ChargeType: string
Type of charge for the pricing charge definition. Valid values include Sale, Service, Restocking, and so on. A list of accepted values is defined in the lookup type ORA_QP_CHARGE_TYPES.
-
ChargeTypeCode: string
Title:
Charge TypeMaximum Length:30Abbreviation that identifies the type of charge in the discount list. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the record. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the record was created. -
DiscountListId: integer
Read Only:
trueValue that uniquely identifies the discount list. -
DiscountListItemId: string
Read Only:
trueMaximum Length:255Value that uniquely identifies the discount list item. -
EndDate: string
(date-time)
Title:
End DateDate when the rule becomes inactive. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the record. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the record. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
NameMaximum Length:80Name of the rule for the discount list item. -
PricePeriodicity: string
Name of the price periodicity.
-
PricePeriodicityCode: string
Title:
Price PeriodicityMaximum Length:3Abbreviation that identifies the price periodicity in the discount list. -
PriceType: string
Type of price for the pricing charge definition. Valid values include One time and Recurring. A list of accepted values is defined in the lookup type ORA_QP_PRICE_TYPES.
-
PriceTypeCode: string
Title:
Price TypeMaximum Length:30Abbreviation that identifies the type of price in the discount list. -
PricingCurrency: string
Read Only:
trueCurrency that the discount list uses. -
PricingCurrencyCode: string
Title:
Pricing CurrencyMaximum Length:15Abbreviation that identifies the currency of the discount list. -
PricingTermId: integer
(int64)
Value that uniquely identifies the pricing term.
-
pricingTiers: array
Tier Headers
Title:
Tier HeadersThe Tier Headers resource manages tier headers for pricing charges and discounts. -
rulesDFF: array
Flexfields for Discount List Rules
Title:
Flexfields for Discount List RulesThe Flexfields for Discount List Rules resource associates descriptive flexfield segments and its values to a discount list rule. -
StartDate: string
(date-time)
Title:
Start DateDate when the rule becomes active. -
TierHeaderId: integer
(int64)
Value that uniquely identifies the tier header.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Tier Headers
Type:
arrayTitle:
Tier HeadersThe Tier Headers resource manages tier headers for pricing charges and discounts.
Show Source
Nested Schema : Flexfields for Discount List Rules
Type:
arrayTitle:
Flexfields for Discount List RulesThe Flexfields for Discount List Rules resource associates descriptive flexfield segments and its values to a discount list rule.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : discountLists-items-tieredRules-pricingTiers-item-response
Type:
Show Source
object-
AdjustmentBasis: string
Name of the adjustment basis.
-
AdjustmentBasisId: integer
(int64)
Title:
Adjustment BasisValue that identifies the adjustment basis. -
AdjustmentType: string
Name of the type of adjustment. A list of accepted values is defined in the lookup type ORA_QP_LINE_ADJ_TYPES.
-
AdjustmentTypeCode: string
Title:
Adjustment TypeMaximum Length:30Abbreviation that identifies the type of adjustment. -
AggregationMethod: string
Name of the tier aggregation method. Valid values include On line and On document. A list of accepted values is defined in the lookup type ORA_QP_AGGREGATION_METHODS.
-
AggregationMethodCode: string
Title:
Aggregation MethodMaximum Length:30Default Value:ORA_ON_DOCUMENTAbbreviation that identifies the method of the tier aggregation. -
ApplicationMethod: string
Name of the tier application method. Valid values include Per unit and As block. A list of accepted values is defined in the lookup type ORA_QP_APPLICATION_METHODS.
-
ApplicationMethodCode: string
Title:
Application MethodMaximum Length:30Default Value:PER_UNITAbbreviation that identifies the method of tier application. -
AppliesTo: string
Name of the tier applicability. Valid values include Highest tier and All tiers. A list of accepted values is defined in the lookup type ORA_QP_TIER_GRADUATED_TYPES.
-
AppliesToCode: string
Title:
Apply ToMaximum Length:30Default Value:HIGHEST_TIERAbbreviation that identifies the tier applicability. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the record. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the record was created. -
EnforceAdjustmentCalculation: string
Title:
Enforce adjustment calculation on each tierRead Only:trueMaximum Length:30Default Value:NContains one of the following values: Y or N. If Y, then enforce adjustment calculation. If N, then do not enforce calculation. The default value is N. -
headerDFF: array
Flexfields for Discount List Header
Title:
Flexfields for Discount List HeaderThe Flexfields for Discount List Header resource associates descriptive flexfield segments and its values to a discount list. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the record. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the record. -
lines: array
Tier Lines
Title:
Tier LinesThe Tier Lines resource manages tier line details for pricing charges and discounts. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ParentEntityId: integer
(int64)
Value that uniquely identifies the parent entity.
-
ParentEntityType: string
Type of the parent entity. Valid values include Pricing charge and Pricing term. A list of accepted values is defined in the lookup type ORA_QP_PARENT_ENTITY_TYPES.
-
ParentEntityTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of the parent entity. -
PartialBlockAction: string
Name of the tier partial block action. Valid values include Partial blocks and Satisfied blocks. A list of accepted values is defined in the lookup type ORA_QP_PARTIAL_BLOCK_ACTIONS.
-
PartialBlockActionCode: string
Title:
Partial Block ActionMaximum Length:30Abbreviation that identifies the tier partial block action. -
TierBasis: string
Name of the tier basis.
-
TierBasisId: integer
(int64)
Title:
Tier BasisValue that uniquely identifies the tier basis. -
TierBasisType: string
Type of the tier basis. Valid values include Extended amount and Item quantity. A list of accepted values is defined in the lookup type ORA_QP_TIER_BASIS_TYPES.
-
TierBasisTypeCode: string
Title:
Tier Basis TypeMaximum Length:30Abbreviation that identifies the type of the tier basis. -
TierHeaderId: integer
(int64)
Value that uniquely identifies the tier header.
Nested Schema : Flexfields for Discount List Header
Type:
arrayTitle:
Flexfields for Discount List HeaderThe Flexfields for Discount List Header resource associates descriptive flexfield segments and its values to a discount list.
Show Source
Nested Schema : Tier Lines
Type:
arrayTitle:
Tier LinesThe Tier Lines resource manages tier line details for pricing charges and discounts.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-headerDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for tier headers. -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
TieredPricingHeaderId: integer
(int64)
Value that uniquely identifies the tier header of a pricing charge or discount to which the descriptive flexfields belong.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-item-response
Type:
Show Source
object-
AdjustmentAmount: number
Title:
Adjustment AmountValue of the adjustment amount. -
AdjustmentBasis: string
Name of the adjustment basis.
-
AdjustmentBasisId: integer
(int64)
Title:
Adjustment BasisValue that identifies the adjustment basis. -
AdjustmentType: string
Name of the type of adjustment. A list of accepted values is defined in the lookup type ORA_QP_LINE_ADJ_TYPES.
-
AdjustmentTypeCode: string
Title:
Adjustment TypeMaximum Length:30Abbreviation that identifies the type of adjustment. -
ApplicationMethod: string
Name of the tier application method. Valid values include Per unit and As block. A list of accepted values is defined in the lookup type ORA_QP_APPLICATION_METHODS.
-
ApplicationMethodCode: string
Title:
Application MethodMaximum Length:30Abbreviation that identifies the method of tier application. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the record. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the record was created. -
IncrementValue: integer
Title:
Increment ValueIncrement value number. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the record. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the record. -
linesDFF: array
Flexfields for Tier Lines
Title:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Maximum: number
Title:
MaximumMaximum value for the tier line. -
Minimum: number
Title:
MinimumMinimum value for the tier line. -
TierHeaderId: integer
(int64)
Value that uniquely identifies the tier header.
-
TierLineId: integer
(int64)
Value that uniquely identifies the tier line.
-
TierLineNumber: integer
(int32)
Line number of the tier.
Nested Schema : Flexfields for Tier Lines
Type:
arrayTitle:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-linesDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for tier lines. -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
TieredPricingLineId: integer
(int64)
Value that uniquely identifies the tier line of a pricing charge or discount to which the descriptive flexfields belong.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : discountLists-items-tieredRules-rulesDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for pricing terms. -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PricingTermId: integer
(int64)
Value that uniquely identifies the pricing term to which the descriptive flexfields belong.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- pricingTiers
-
Parameters:
- DiscountListId:
$request.path.DiscountListId - DiscountListItemId:
$request.path.DiscountListItemId - PricingTermId5:
$request.path.PricingTermId5
The Tier Headers resource manages tier headers for pricing charges and discounts. - DiscountListId:
- rulesDFF
-
Parameters:
- DiscountListId:
$request.path.DiscountListId - DiscountListItemId:
$request.path.DiscountListItemId - PricingTermId5:
$request.path.PricingTermId5
The Flexfields for Discount List Rules resource associates descriptive flexfield segments and its values to a discount list rule. - DiscountListId:
Examples
This example describes how to update one tiered rule.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/discountLists/DiscountListId/child/items/DiscountListItemId/child/tieredRules/PricingTermId"
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.
{
"AggregationMethod" : "On document"
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"TierHeaderId": 300100170439030,
"ParentEntityId": 300100170439028,
"ParentEntityType": "Pricing term",
"ParentEntityTypeCode": "PRICING_TERM",
"TierBasisType": "Item quantity",
"TierBasisTypeCode": "ORA_ITEM_QUANTITY",
"TierBasis": null,
"TierBasisId": null,
"AppliesTo": "Highest tier",
"AppliesToCode": "HIGHEST_TIER",
"ApplicationMethod": "As block",
"ApplicationMethodCode": "AS_BLOCK",
"PartialBlockAction": "Include partial block",
"PartialBlockActionCode": "PARTIAL_BLOCK",
"AggregationMethod": "On document",
"AggregationMethodCode": "ORA_ON_DOCUMENT",
"AdjustmentType": "Discount amount",
"AdjustmentTypeCode": "DISCOUNT_AMOUNT",
"AdjustmentBasis": null,
"AdjustmentBasisId": null,
"EnforceAdjustmentCalculation": "N",
"CreationDate": "2018-11-20T08:21:33.431+00:00",
"CreatedBy": "PRICING_MGR_OPERATIONS",
"LastUpdateDate": "2018-11-20T08:26:09+00:00",
"LastUpdatedBy": "PRICING_MGR_OPERATIONS"
}