Create tier lines
post
/fscmRestApi/resources/11.13.18.05/pricingTiers/{TierHeaderId}/child/lines
Request
Path Parameters
-
TierHeaderId(required): integer(int64)
Value that uniquely identifies the tier header.
Header Parameters
-
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.
-
Upsert-Mode:
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-
AdjustmentAmount(required): number
Title:
Adjustment AmountValue of the adjustment amount. -
AdjustmentBasis: string
Name of the adjustment basis.
-
AdjustmentBasisId: integer
(int64)
Title:
Adjustment BasisValue that identifies the adjustment basis. -
AdjustmentType: string
Name of the type of adjustment. A list of accepted values is defined in the lookup type ORA_QP_LINE_ADJ_TYPES.
-
AdjustmentTypeCode: string
Title:
Adjustment TypeMaximum Length:30Abbreviation that identifies the type of adjustment. -
ApplicationMethod: string
Name of the tier application method. Valid values include Per unit and As block. A list of accepted values is defined in the lookup type ORA_QP_APPLICATION_METHODS.
-
ApplicationMethodCode: string
Title:
Application MethodMaximum Length:30Abbreviation that identifies the method of tier application. -
IncrementValue: integer
Title:
Increment ValueIncrement value number. -
linesDFF: array
Flexfields for Tier Lines
Title:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line. -
Maximum: number
Title:
MaximumMaximum value for the tier line. -
Minimum(required): number
Title:
MinimumMinimum value for the tier line. -
TierHeaderId(required): integer
(int64)
Value that uniquely identifies the tier header.
-
TierLineId: integer
(int64)
Value that uniquely identifies the tier line.
-
TierLineNumber(required): integer
(int32)
Line number of the tier.
Nested Schema : Flexfields for Tier Lines
Type:
arrayTitle:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line.
Show Source
Nested Schema : pricingTiers-lines-linesDFF-item-post-request
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for tier lines. -
__FLEX_Context_DisplayValue: string
Title:
Context Value -
TieredPricingLineId: integer
(int64)
Value that uniquely identifies the tier line of a pricing charge or discount to which the descriptive flexfields belong.
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 : pricingTiers-lines-item-response
Type:
Show Source
object-
AdjustmentAmount: number
Title:
Adjustment AmountValue of the adjustment amount. -
AdjustmentBasis: string
Name of the adjustment basis.
-
AdjustmentBasisId: integer
(int64)
Title:
Adjustment BasisValue that identifies the adjustment basis. -
AdjustmentType: string
Name of the type of adjustment. A list of accepted values is defined in the lookup type ORA_QP_LINE_ADJ_TYPES.
-
AdjustmentTypeCode: string
Title:
Adjustment TypeMaximum Length:30Abbreviation that identifies the type of adjustment. -
ApplicationMethod: string
Name of the tier application method. Valid values include Per unit and As block. A list of accepted values is defined in the lookup type ORA_QP_APPLICATION_METHODS.
-
ApplicationMethodCode: string
Title:
Application MethodMaximum Length:30Abbreviation that identifies the method of tier application. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the record. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the record was created. -
IncrementValue: integer
Title:
Increment ValueIncrement value number. -
LastUpdateDate: string
(date-time)
Read Only:
trueMost recent date and time when the application updated the record. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the record. -
linesDFF: array
Flexfields for Tier Lines
Title:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Maximum: number
Title:
MaximumMaximum value for the tier line. -
Minimum: number
Title:
MinimumMinimum value for the tier line. -
TierHeaderId: integer
(int64)
Value that uniquely identifies the tier header.
-
TierLineId: integer
(int64)
Value that uniquely identifies the tier line.
-
TierLineNumber: integer
(int32)
Line number of the tier.
Nested Schema : Flexfields for Tier Lines
Type:
arrayTitle:
Flexfields for Tier LinesThe Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : pricingTiers-lines-linesDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:150Descriptive flexfield context name for tier lines. -
__FLEX_Context_DisplayValue: string
Title:
Context Value -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
TieredPricingLineId: integer
(int64)
Value that uniquely identifies the tier line of a pricing charge or discount to which the descriptive flexfields belong.
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
- linesDFF
-
Parameters:
- TierHeaderId:
$request.path.TierHeaderId - TierLineId:
$request.path.TierLineId
The Flexfields for Tier Lines resource associates descriptive flexfield segments and its values to a tier line. - TierHeaderId:
Examples
This example describes how to create tier lines
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/pricingTiers/TierHeaderId/child/lines"
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.
{ "Minimum": 0,
"Maximum": 100,
"AdjustmentType": "Markup amount",
"AdjustmentAmount": 50.99
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"TierLineId": 300100132320401,
"TierHeaderId": 300100132320156,
"TierLineNumber": 1,
"Minimum": 0,
"Maximum": 100,
"ApplicationMethod": "As block",
"ApplicationMethodCode": "AS_BLOCK",
"IncrementValue": null,
"AdjustmentType": "Markup amount",
"AdjustmentTypeCode": "MARKUP_AMOUNT",
"AdjustmentBasis": null,
"AdjustmentBasisId": null,
"AdjustmentAmount": 50.99,
"CreationDate": "2018-05-11T10:58:07+00:00",
"CreatedBy": "PRICING_MGR_OPERATIONS",
"LastUpdateDate": "2018-05-11T10:58:07.049+00:00",
"LastUpdatedBy": "PRICING_MGR_OPERATIONS"
}