Create market rules
post
/fscmRestApi/resources/11.13.18.05/channelPrograms/{ProgramId}/child/marketRulesV2
Request
Path Parameters
-
ProgramId(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.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ChildRuleNumber: integer
(int32)
Number that identifies the trailing component of the display line number. The display line number is a concatenation of the rule number and the child rule number separated by a period. For example, if the display line number is 5.2, then the rule number is 5 and the child rule number is 2.
Validation: It must be an integer >= 0. It can't have a duplicate display line number. -
ComparisonOperator: string
Maximum Length:
255Name of the comparison operator used in the market rule. A list of accepted values is defined in the lookup type ORA_CJM_QUALIFIER_OPERATOR. -
ComparisonOperatorCode: string
Maximum Length:
30Abbreviation that identifies the comparison operator used in the market rule. -
FromDate: string
(date)
Date when the market rule becomes applicable.
-
ParentRuleId: integer
(int64)
Value that identifies the parent market rule.
-
ProgramId: integer
(int64)
Value that uniquely identifies the supplier program.
-
QualifierType: string
Maximum Length:
255Type of qualifier used to define the eligibility of the supplier program. A list of accepted values is defined in the lookup type ORA_CJM_QUALIFIER_TYPE for supplier ship and debit programs and the lookup type ORA_CJM_SUP_REBATE_QUAL for supplier rebate programs. -
QualifierTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of qualifier used to define the eligibility of the supplier program. -
QualifierValue: string
Maximum Length:
255Name of the qualifier used in the supplier program qualification. -
QualifierValueCode: string
Maximum Length:
240Abbreviation that identifies the qualifier used in the supplier program qualification. -
RuleId: integer
(int64)
Value that uniquely identifies the market rule. It's a primary key that the application generates when it creates the market rule.
-
RuleNumber: integer
(int32)
Number that identifies the leading component of the display line number. The display line number is a concatenation of the rule number and the child rule number separated by a period. For example, if the display line number is 3.1, then the rule number is 3 and the child rule number is 1.
-
ToDate: string
(date)
Date when the market rule is no longer applicable.
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-marketRulesV2-item-response
Type:
Show Source
object-
AccountNumber: string
Read Only:
trueMaximum Length:255Number of the bill-to customer account. -
Address: string
Read Only:
trueMaximum Length:255Address for the customer. It applies if the qualifier type is Customer, Bill-to Account or Ship To. -
ChildRuleNumber: integer
(int32)
Number that identifies the trailing component of the display line number. The display line number is a concatenation of the rule number and the child rule number separated by a period. For example, if the display line number is 5.2, then the rule number is 5 and the child rule number is 2.
Validation: It must be an integer >= 0. It can't have a duplicate display line number. -
ComparisonOperator: string
Maximum Length:
255Name of the comparison operator used in the market rule. A list of accepted values is defined in the lookup type ORA_CJM_QUALIFIER_OPERATOR. -
ComparisonOperatorCode: string
Maximum Length:
30Abbreviation that identifies the comparison operator used in the market rule. -
CreatedBy: string
Read Only:
trueMaximum Length:64Market Rules V2 -
CreationDate: string
(date-time)
Read Only:
trueMarket Rules V2 -
Customer: string
Read Only:
trueMaximum Length:255Market Rules V2 -
CustomQualifierFlag: boolean
Read Only:
trueContains one of the following values: true or false. If true, then it's a custom qualifier. If false, then it isn't a custom qualifier. The default value for this attribute is false. -
DomainDataTypeCode: string
Read Only:
trueMaximum Length:255Type of dimension data. Valid values include text, number, date, and time stamp. A list of accepted values is defined in the lookup type ORA_QP_MTRXR_DIMN_DATA_TYPES. -
DomainLookupTypeCode: string
Read Only:
trueMaximum Length:255Lookup type code for the dimension of the lookup domain type. -
DomainTypeCode: string
Read Only:
trueMaximum Length:255Type of domain. Valid values include lookup, view object query, and custom. A list of accepted values is defined in the lookup type ORA_QP_MTRXR_DIMN_DOMAIN_TYPES. -
FromDate: string
(date)
Date when the market rule becomes applicable.
-
LastUpdateDate: string
(date-time)
Read Only:
trueMarket Rules V2 -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64Market Rules V2 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MatrixDimensionId: integer
Read Only:
trueMarket Rules V2 -
ParentRuleId: integer
(int64)
Value that identifies the parent market rule.
-
ProgramId: integer
(int64)
Value that uniquely identifies the supplier program.
-
QualifierNumberValueCode: integer
Read Only:
trueValue of the numeric qualifier used in the supplier program qualification. -
QualifierType: string
Maximum Length:
255Type of qualifier used to define the eligibility of the supplier program. A list of accepted values is defined in the lookup type ORA_CJM_QUALIFIER_TYPE for supplier ship and debit programs and the lookup type ORA_CJM_SUP_REBATE_QUAL for supplier rebate programs. -
QualifierTypeCode: string
Maximum Length:
30Abbreviation that identifies the type of qualifier used to define the eligibility of the supplier program. -
QualifierValue: string
Maximum Length:
255Name of the qualifier used in the supplier program qualification. -
QualifierValueCode: string
Maximum Length:
240Abbreviation that identifies the qualifier used in the supplier program qualification. -
RuleId: integer
(int64)
Value that uniquely identifies the market rule. It's a primary key that the application generates when it creates the market rule.
-
RuleNumber: integer
(int32)
Number that identifies the leading component of the display line number. The display line number is a concatenation of the rule number and the child rule number separated by a period. For example, if the display line number is 3.1, then the rule number is 3 and the child rule number is 1.
-
Site: string
Read Only:
trueMaximum Length:255Name of the bill-to customer account site or the ship-to site. -
ToDate: string
(date)
Date when the market rule is no longer applicable.
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.