Create discount lists

post

/fscmRestApi/resources/11.13.18.05/discountLists

Request

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.
  • 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
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 : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested 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 : schema
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 : schema
Type: object
Show Source
Nested Schema : discountLists-items-attributeRules-pricingMatrixes-rules-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
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 : schema
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-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 create discount lists.

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"

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.

{
  "DiscountListName" : "Corporate Discount List",
  "DiscountListDescription" : "Corporate Discount List",
  "BusinessUnit" : "Vision Operations",
  "Currency" : "US Dollar",
  "StartDate" : "2009-05-08T09:00:00+05:30"
}

Example Response Body

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

{
    "DiscountListName": "Corporate Discount List",
    "DiscountListId": 300100170438948,
    "DiscountListDescription": "Corporate Discount List",
    "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:02:50.885+00:00",
    "LastUpdatedBy": "PRICING_MGR_OPERATIONS"
}
Back to Top