Update one discount list

patch

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

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 Access Sets
Type: array
Title: Discount List Access Sets
The Discount List Access Sets resource associates access sets to a discount list.
Show Source
Nested Schema : headerDFF
Type: array
Show Source
Nested Schema : Discount List Items
Type: array
Title: Discount List Items
The Discount List Items resource manages items of discount lists.
Show Source
Nested Schema : discountLists-accessSets-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : discountLists-items-item-patch-request
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-patch-request
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-patch-request
Type: object
Show Source
  • Maximum Length: 30
    Code that designates the type of change for the pricing matrixes for the approval flow.
  • Matrix Dimensions
    Title: Matrix Dimensions
    A matrix dimension is a condition with which you can drive price adjustments, discounts, and rate tables.
  • Maximum Length: 30
    Code for the pricing matrices' approval status when the approval flow is enabled. This is null if the feature opt-in is set to No.
  • Matrix Rules
    Title: Matrix Rules
    A matrix rule represents a condition based price adjustment, discount, rate table, and other features.
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 : schema
Type: object
Show Source
  • Maximum Length: 30
    Code that designates the type of change for the dimensions for the approval flow.
  • Maximum Length: 30
    Code for the pricing dimensions' approval status when the approval flow is enabled. This is null if the feature opt-in is set to No.
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-rules-item-patch-request
Type: object
Show Source
Nested Schema : discountLists-items-attributeRules-rulesDFF-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : discountLists-items-simpleRules-item-patch-request
Type: object
Show Source
Nested Schema : rulesDFF
Type: array
Show Source
Nested Schema : discountLists-items-simpleRules-rulesDFF-item-patch-request
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-item-patch-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-patch-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-patch-request
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-item-patch-request
Type: object
Show Source
Nested Schema : linesDFF
Type: array
Show Source
Nested Schema : discountLists-items-tieredRules-pricingTiers-lines-linesDFF-item-patch-request
Type: object
Show Source
Nested Schema : discountLists-items-tieredRules-rulesDFF-item-patch-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-item-response
Type: object
Show Source
Nested Schema : Discount List Access Sets
Type: array
Title: Discount List Access Sets
The Discount List Access Sets resource associates access sets to a discount list.
Show Source
Nested Schema : headerDFF
Type: array
Show Source
Nested Schema : Discount List Items
Type: array
Title: Discount List Items
The Discount List Items resource manages items of discount lists.
Show Source
Nested Schema : discountLists-accessSets-item-response
Type: object
Show Source
Nested Schema : discountLists-headerDFF-item-response
Type: object
Show Source
Nested 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 update one discount list.

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"

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.

{
  "DiscountListDescription": "DESCRIPTIONUPDATE"
}

Example Response Body

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

{
    "DiscountListName": "Corporate Discount List",
    "DiscountListId": 300100170438948,
    "DiscountListDescription": "DESCRIPTIONUPDATE",
    "PriceType": null,
    "PriceTypeCode": null,
    "PricePeriodicity": null,
    "PricePeriodicityCode": null,
    "ChargeType": null,
    "ChargeTypeCode": null,
    "ChargeSubtype": null,
    "ChargeSubtypeCode": null,
    "LineType": null,
    "LineTypeCode": null,
    "BusinessUnit": "Vision Operations",
    "BusinessUnitId": 204,
    "Currency": "US Dollar",
    "CurrencyCode": "USD",
    "Status": "In progress",
    "StatusCode": "IN_PROGRESS",
    "StartDate": "2009-05-08T03:30:00+00:00",
    "EndDate": null,
    "CreationDate": "2018-11-20T08:02:50+00:00",
    "CreatedBy": "PRICING_MGR_OPERATIONS",
    "LastUpdateDate": "2018-11-20T08:10:31+00:00",
    "LastUpdatedBy": "PRICING_MGR_OPERATIONS"
}
Back to Top