Create discount list items

post

/fscmRestApi/resources/11.13.18.05/discountLists/{DiscountListId}/child/items

Request

Path Parameters
  • 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
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Discount List Attribute Rules
Type: array
Title: Discount List Attribute Rules
The Discount List Attribute Rules resource manages attribute rules for discount list items.
Show Source
Nested Schema : itemsDFF
Type: array
Show Source
Nested Schema : Discount List Simple Rules
Type: array
Title: Discount List Simple Rules
The Discount List Simple Rules resource manages simple rules for discount list items.
Show Source
Nested Schema : Discount List Tiered Rules
Type: array
Title: Discount List Tiered Rules
The Discount List Tiered Rules resource manages tiered rules for discount list items.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : Pricing Matrixes
Type: array
Title: Pricing Matrixes
A pricing matrix represents a way to manage price adjustments, discounts, rate tables, and other matrix features.
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-item-post-request
Type: object
Show Source
Nested Schema : Matrix Dimensions
Type: array
Title: Matrix Dimensions
A matrix dimension is a condition with which you can drive price adjustments, discounts, and rate tables.
Show Source
Nested Schema : Matrix Rules
Type: array
Title: Matrix Rules
A matrix rule represents a condition based price adjustment, discount, rate table, and other features.
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-dimensions-item-post-request
Type: object
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-rules-item-post-request
Type: object
Show Source
Nested Schema : discountLists-items-attributeRules-rulesDFF-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : discountLists-items-simpleRules-item-post-request
Type: object
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-simpleRules-rulesDFF-item-post-request
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-item-post-request
Type: object
Show Source
Nested Schema : Tier Headers
Type: array
Title: Tier Headers
A tier header captures information about tier adjustments against usage rates. For example, tier basis, application and aggregation.
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-item-post-request
Type: object
Show Source
Nested Schema : headerDFF
Type: array
Show Source
Nested Schema : Tier Lines
Type: array
Title: Tier Lines
A tier line captures information about tier adjustments against usage rates. For example, minimum, maximum and adjustments.
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-headerDFF-item-post-request
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-item-post-request
Type: object
Show Source
Nested Schema : linesDFF
Type: array
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-linesDFF-item-post-request
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-rulesDFF-item-post-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : discountLists-items-item-response
Type: object
Show Source
Nested Schema : Discount List Attribute Rules
Type: array
Title: Discount List Attribute Rules
The Discount List Attribute Rules resource manages attribute rules for discount list items.
Show Source
Nested Schema : itemsDFF
Type: array
Show Source
Nested Schema : Discount List Simple Rules
Type: array
Title: Discount List Simple Rules
The Discount List Simple Rules resource manages simple rules for discount list items.
Show Source
Nested Schema : Discount List Tiered Rules
Type: array
Title: Discount List Tiered Rules
The Discount List Tiered Rules resource manages tiered rules for discount list items.
Show Source
Nested Schema : discountLists-items-attributeRules-item-response
Type: object
Show Source
Nested Schema : Pricing Matrixes
Type: array
Title: Pricing Matrixes
A pricing matrix represents a way to manage price adjustments, discounts, rate tables, and other matrix features.
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-item-response
Type: object
Show Source
Nested Schema : Matrix Dimensions
Type: array
Title: Matrix Dimensions
A matrix dimension is a condition with which you can drive price adjustments, discounts, and rate tables.
Show Source
Nested Schema : Matrix Rules
Type: array
Title: Matrix Rules
A matrix rule represents a condition based price adjustment, discount, rate table, and other features.
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-dimensions-item-response
Type: object
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-rules-item-response
Type: object
Show Source
Nested Schema : discountLists-items-attributeRules-rulesDFF-item-response
Type: object
Show Source
Nested Schema : discountLists-items-itemsDFF-item-response
Type: object
Show Source
Nested Schema : discountLists-items-simpleRules-item-response
Type: object
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-simpleRules-rulesDFF-item-response
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-item-response
Type: object
Show Source
Nested Schema : Tier Headers
Type: array
Title: Tier Headers
A tier header captures information about tier adjustments against usage rates. For example, tier basis, application and aggregation.
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-item-response
Type: object
Show Source
Nested Schema : headerDFF
Type: array
Show Source
Nested Schema : Tier Lines
Type: array
Title: Tier Lines
A tier line captures information about tier adjustments against usage rates. For example, minimum, maximum and adjustments.
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-headerDFF-item-response
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-item-response
Type: object
Show Source
Nested Schema : linesDFF
Type: array
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-linesDFF-item-response
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-rulesDFF-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create discount list items.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/discountLists/DiscountListId/child/items"

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 creates.

{ 
 "Item" : "AS54888",
 "ItemLevel" : "Item",
 "LineType" : "Buy",
 "PricingUOM" : "Each"
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
    "DiscountListId": 300100170438948,
    "DiscountListItemId": 300100170438987,
    "Item": "AS54888",
    "InventoryItemId": 149,
    "ItemDescription": "Standard Desktop",
    "LineType": "Buy",
    "LineTypeCode": "ORA_BUY",
    "PricingUOM": "Each",
    "PricingUOMCode": "Ea",
    "ServiceDurationPeriod": null,
    "ServiceDurationPeriodCode": null,
    "ServiceDuration": null,
    "ItemLevelCode": "ITEM",
    "ItemLevel": "Item",
    "CreationDate": "2018-11-20T08:12:36+00:00",
    "CreatedBy": "PRICING_MGR_OPERATIONS",
    "LastUpdateDate": "2018-11-20T08:12:39.624+00:00",
    "LastUpdatedBy": "PRICING_MGR_OPERATIONS"
}
Back to Top