Update one product rule
patch
/fscmRestApi/resources/11.13.18.05/channelPrograms/{ProgramId}/child/productRules/{ProgramLineId}
Request
Path Parameters
-
ProgramId(required): integer(int64)
Value that uniquely identifies the channel program. It is a primary key that the application generates when it creates the program.
-
ProgramLineId(required): integer
Value that uniquely identifies the product rule. It is a primary key that the application generates when it creates the product rule.
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-
DFF: array
Descriptive Flexfields for Product Rules
Title:
Descriptive Flexfields for Product RulesThe Descriptive Flexfields for Product Rules resource manages additional details about a product rule of a program. -
DiscountType: string
Type of discount. A list of accepted values is defined in the lookup type ORA_CJM_LINE_DISCOUNT_TYPE.
-
DiscountTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of discount. -
DiscountValue: number
Value of the discount.
-
FromDate: string
(date)
Date when the product rule becomes applicable.
-
Item: string
Name of the item in the inventory.
-
ItemDescription: string
Description of the item in the inventory.
-
ItemId: string
Maximum Length:
240Value that uniquely identifies the item in the inventory. -
ItemLevel: string
Level at which discounts are defined. Valid values include Item and All Items. A list of accepted values is defined in the lookup type ORA_CJM_ITEM_LEVEL.
-
ItemLevelCode: string
Maximum Length:
30Abbreviation that identifies the level at which discounts are defined. -
MaximumQuantity: number
Maximum quantity allowed for each product rule.
-
SupplierItem: string
Maximum Length:
255Name of the supplier item. -
SupplierItemDescription: string
Maximum Length:
255Description of the supplier item. -
SupplierItemId: integer
(int64)
Value that uniquely identifies the supplier item.
-
ToDate: string
(date)
Date when the product rule is no longer applicable.
-
UnitOfMeasure: string
Unit of measure of the item for pricing.
-
UOMCode: string
Maximum Length:
30Abbreviation that identifies the unit of measure for pricing.
Nested Schema : Descriptive Flexfields for Product Rules
Type:
arrayTitle:
Descriptive Flexfields for Product RulesThe Descriptive Flexfields for Product Rules resource manages additional details about a product rule of a program.
Show Source
Nested Schema : channelPrograms-productRules-DFF-item-patch-request
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context SegmentMaximum Length:30Descriptive flexfield context name for product rule. -
__FLEX_Context_DisplayValue: string
Title:
Context SegmentDescriptive flexfield context display value for product rule. -
ProgramLineId: integer
Value that uniquely identifies the product rule.
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 : channelPrograms-productRules-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the record. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the user created the record. -
DFF: array
Descriptive Flexfields for Product Rules
Title:
Descriptive Flexfields for Product RulesThe Descriptive Flexfields for Product Rules resource manages additional details about a product rule of a program. -
DiscountType: string
Type of discount. A list of accepted values is defined in the lookup type ORA_CJM_LINE_DISCOUNT_TYPE.
-
DiscountTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of discount. -
DiscountValue: number
Value of the discount.
-
FromDate: string
(date)
Date when the product rule becomes applicable.
-
Item: string
Name of the item in the inventory.
-
ItemDescription: string
Description of the item in the inventory.
-
ItemId: string
Maximum Length:
240Value that uniquely identifies the item in the inventory. -
ItemLevel: string
Level at which discounts are defined. Valid values include Item and All Items. A list of accepted values is defined in the lookup type ORA_CJM_ITEM_LEVEL.
-
ItemLevelCode: string
Maximum Length:
30Abbreviation that identifies the level at which discounts are defined. -
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. -
MaximumQuantity: number
Maximum quantity allowed for each product rule.
-
ProgramId: integer
(int64)
Name that identifies the qualifier used in channel program qualification.
-
ProgramLineId: integer
Value that uniquely identifies the product rule. It is a primary key that the application generates when it creates the product rule.
-
SupplierItem: string
Maximum Length:
255Name of the supplier item. -
SupplierItemDescription: string
Maximum Length:
255Description of the supplier item. -
SupplierItemId: integer
(int64)
Value that uniquely identifies the supplier item.
-
ToDate: string
(date)
Date when the product rule is no longer applicable.
-
UnitOfMeasure: string
Unit of measure of the item for pricing.
-
UOMCode: string
Maximum Length:
30Abbreviation that identifies the unit of measure for pricing.
Nested Schema : Descriptive Flexfields for Product Rules
Type:
arrayTitle:
Descriptive Flexfields for Product RulesThe Descriptive Flexfields for Product Rules resource manages additional details about a product rule of a program.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : channelPrograms-productRules-DFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context SegmentMaximum Length:30Descriptive flexfield context name for product rule. -
__FLEX_Context_DisplayValue: string
Title:
Context SegmentDescriptive flexfield context display value for product rule. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProgramLineId: integer
Value that uniquely identifies the product rule.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
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.
Links
- DFF
-
Parameters:
- ProgramId:
$request.path.ProgramId - ProgramLineId:
$request.path.ProgramLineId
The Descriptive Flexfields for Product Rules resource manages additional details about a product rule of a program. - ProgramId: