Get a Price Model Item Charge
get
/rest/v19/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges/{id}
Use this endpoint to retrieve the specified price model item charge.
Request
Path Parameters
Query Parameters
-
fields: string
This parameter filters the resource attributes. Only the specified attributes are returned, which means that if no attributes are specified, all attributes are returned.
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : PricingCharge
Type:
Show Source
object-
blockPrices:
array Block Prices
Title:
Block PricesThe block price. -
blockSize:
number()
Title:
Block SizeThe block size. -
chargeDefinition:
string()
Title:
Charge DefinitionRead Only:trueDisplay Name of the Charge Definition. -
chargeDefinitionCode:
string()
Title:
Charge Definition CodeThe unique code of the Charge Definition. -
chargeDefinitionId:
integer()
Title:
Charge Definition IDRead Only:trueID of the Charge Definition. -
chargeType:
string()
Title:
Charge TypeThe category of charge. -
createdBy:
Created By
Title:
Created ByRead Only:trueThe details of the user who created the record. -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date AddedRead Only:trueCreation date. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date ModifiedRead Only:trueLast modified date. -
dynamicPricingType:
string()
Title:
Dynamic Pricing TypeAllowed Values:[ "static", "advanced", "volume", "tiered", "rateCard", "attributeBasedCharge" ]The dynamic pricing type of the charge. -
endDate:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
End DateThe date at which the Charge will end. -
groupAccessEnabled:
boolean()
Title:
Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment -
id:
integer()
Title:
IdRead Only:trueThe Unique Identifier of the Charge. -
integrationId:
string()
Title:
Integration IdRate Plan Charge ID from SCM. -
lastModifiedBy:
Last Modified By
Title:
Last Modified ByRead Only:trueThe details of the user who modified the record. -
links:
array Links
Title:
LinksRead Only:trueThe link relations associated with the resource instance. -
pricePeriod:
string()
Title:
Price PeriodThe billing period. -
prices:
array Prices
Title:
PricesThe item prices. -
priceType:
string()
Title:
Price TypeThe type of charge. -
pricingMatrixVariableName:
string()
Title:
Pricing Matrix Variable NamePricing Matrix variable name (Preview only. Not available for use.) -
primaryCharge:
boolean()
Title:
Primary ChargeIndicates whether this is the primary charge. -
quantityAggregation:
boolean()
Title:
Quantity AggregationIndicates whether to use aggregated quantity when calculating unit price for tiered-pricing. -
rateCardName:
string()
Title:
Rate Card NameRead Only:trueRate Card name (Preview only. Not available for use.) -
rateCardVariableName:
string()
Title:
Rate Card Variable NameRate Card variable name (Preview only. Not available for use.) -
segmentLevelAccessType:
string()
Title:
Segment-level Access TypeRead Only:trueSegment-level Access Type -
startDate:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Start DateThe date from which the Charge will be applicable. -
templateVariableName:
string()
Title:
Pricing Matrix Template Variable NameThe pricing matrix emplate variable name. -
tiers:
array Tiers
Title:
TiersThe charge tiers. -
usageUOM:
string()
Title:
Usage UOMThe unit of measure for the charge.
Nested Schema : Created By
Title:
Created ByRead Only:
trueThe details of the user who created the record.
Match All
The details of the user who created the record.
Show Source
Nested Schema : Last Modified By
Title:
Last Modified ByRead Only:
trueThe details of the user who modified the record.
Match All
The details of the user who modified the record.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksRead Only:
trueThe link relations associated with the resource instance.
Show Source
Nested Schema : PricingCurrencyValues
Type:
Show Source
object-
currencyCode:
string()
Title:
Currency CodeThe currency code. -
value:
number()
Title:
ValueThe currency value.
Nested Schema : UserDetails
Type:
Show Source
object-
emailId:
string()
Title:
Email IdEmail Id of the user -
firstName:
string()
Title:
First NameFirst Name of the user -
lastName:
string()
Title:
Last NameLast Name of the user
Nested Schema : ChargeTier
Type:
Show Source
object-
blockPrices:
array Block Prices
Title:
Block PricesThe block price for the corresponding tier. -
blockSize:
number()
Title:
Block SizeThe block size for the corresponding tier. -
prices:
array Prices
Title:
PricesThe prices. -
rangeFrom:
number()
Title:
Range FromThe starting range of the Charge. -
rangeTo:
number()
Title:
Range ToRead Only:trueThe ending range of the Charge.
Nested Schema : Block Prices
Type:
arrayTitle:
Block PricesThe block price for the corresponding tier.
Show Source
Examples
The following example shows how to retrieve the specified Price Model Item charge by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/pricingSetup/models/_defaultPriceModel/priceModelItems/36964026/charges/3022960005
Response Body Sample
{
"id": 3022960005,
"dateModified": "2023-05-16T14:57:50Z",
"dateAdded": "2023-05-16T14:50:19Z",
"prices": [{
"currencyCode": "JPY",
"value": 50
}, {
"currencyCode": "GBP",
"value": 40
}, {
"currencyCode": "USD",
"value": 30
}
],
"primaryCharge": true,
"priceType": "One Time",
"dynamicPricingType": "static"
}