Price Model REST APIs

Overview

These endpoints enable administration of CPQ Price Models, Price Model Items, Price Model stand-alone Charges, Price Model Rate Plans, and Price Model Rate Plan Charges using REST API services.

Administration

Price Models

ClosedAdd Price Model

Add Price ModelPOST method

Description

Use this endpoint to create a new price model.

URI Endpoint

/rest/v17/pricingSetup/models

Endpoint Parameters

None

HTTP Method

POST

Request Body Parameters

adjustmentType

The adjustment type of the price model.

Allowed Values: "discountPercent", "discountAmount", "markupPercent", or "markupAmount"

conditionType

The condition type of the price model.

Allowed Values: "alwaysTrue" or "simple"

data

List of data for the price model

description

Description of the price model

dynamicPricingType

The type of dynamic pricing applied by the price model.

Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", or "attributeBasedCharge"

editRestriction

The pricing edit restriction.

Allowed Values: ["UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED"

endDate

The date at which the price model will end

integrationId

Price list Id from Oracle Fusion Supply Chain Management (SCM)

listType

The List Type for the price model.

Allowed Values:"priceList", "discountList", "advanced", "markupList", "advancedByTemplate"

matrixTemplateName

The dynamic matrix template name of the price model.

matrixTemplateVariableName

The dynamic matrix template variable name of the price model.

name

Name of the price model

priceModelItems

List of price items for the price model

scriptingMatrixVariableName

The scripting matrix variable name.

startDate

Effective start date of the price model

shared

Indicates whether this model is shared

simpleConditions

A collection of simple type conditions applied by the price model. This is optional for other condition types.

supportedMatrixTemplateVariableName

The supported dynamic matrix pricing template of the price model.

valueType

The value type of the price model

Allowed Values:"absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent", "advancedByTemplate"

variableName

Unique number of the price model

Response Body Parameters

JSON data for the newly added price model.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models


ClosedSample Request Body

{ "name": "New Price Model", "variableName": "newPriceModel", "conditionType": "alwaysTrue", "valueType": "discountPercent", "dynamicPricingType": "tiered" }


ClosedSample Response Body

{ "dateModified": "2022-11-23T17:49:27Z", "dateAdded": "2022-11-23T17:49:27Z", "name": "New Price Model", "variableName": "newPriceModel", "conditionType": "alwaysTrue", "valueType": "discountPercent", "dynamicPricingType": "tiered" }


ClosedDelete Price Model

Delete Price ModelDELETE method

Description

Use this endpoint to delete the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}

Endpoint Parameters

modelVariableName

The variable name of the price model

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet Price Model

Get Price ModelGET Method

Description

Use this endpoint retrieve the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}

Endpoint Parameters

modelVariableName

The variable name of the price model.

(Optional) This endpoint supports the following query specifications: expand and fields.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

adjustmentType

The adjustment type of pricing model.

Allowed Values: "discountPercent", "discountAmount", "markupPercent", or "markupAmount"

conditionType

The condition type of the price model.

Allowed Values: "alwaysTrue" or "simple"

createdBy

The details of the user who created the record.

data

List of data for the price model

dateAdded

Creation date of the price model

dateModified

Last modified date of the price model

description

Description of the price model

dynamicPricingType

The type of dynamic pricing applied by the price model.

Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", or "attributeBasedCharge"

editRestriction

The pricing edit restriction.

Allowed Values: ["UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED"

endDate

The date at which the price model will end

hasBomItem

Indicates whether this price model has prices defined for BOM Items

hasCharges

Indicates whether this Price Model has any charges.

hasRateCards

Indicates if this price model data has linked rate cards (Preview only)

hasRatePlans

Indicates if this price model data has linked rate plans

hasTiers

Indicates whether this model has any price model data that has tiers

integrationId

Price list Id from Oracle Fusion Supply Chain Management (SCM)

lastModifiedBy

The details of the user who modified the record.

listType

The List Type for the price model.

Allowed Values:"priceList", "discountList", "advanced", "markupList", "advancedByTemplate"

matrixTemplateName

The dynamic matrix template name of the Price Model.

matrixTemplateVariableName

The dynamic matrix template variable name of the Price Model.

name

Name of the price model

priceModelItems

List of price items for the price model

ruleCount

The count of pricing rules linked to this model

scriptingMatrixVariableName

The scripting matrix variable name

shared

Indicates whether this model is shared

simpleConditions

A collection of simple type conditions applied by the price model. This is optional for other condition types.

startDate

Effective start date of the price model

supportedMatrixTemplateVariableName

The supported dynamic matrix pricing template of the Price Model.

valueType

The value type of the price model

Allowed Values: "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent", "advancedByTemplate"

variableName

Unique number of the price model

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/cSPABCCorp


ClosedSample Response Body

{ "dateModified": "2019-11-04T17:01:48Z", "dateAdded": "2019-11-04T15:02:18Z", "name": "CSP ABC Corp", "variableName": "cSPABCCorp", "conditionType": "simple", "simpleConditions": { "ruleExpression": "1 OR 2", "simpleConditionRows": [{ "index": 1, "variableName": "companyName", "displayName": "Company Name", "operator": "EQUAL_TO", "value": "ABC Corp" }, { "index": 2, "variableName": "repeatCustomer", "displayName": "RepeatCustomer", "operator": "EQUAL_TO", "value": "true" } ] }, "shared": false, "ruleCount": 1, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/cSPABCCorp" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/cSPABCCorp/data" } ], "valueType": "absolutePrice", "dynamicPricingType": "advanced" }


ClosedGet Price Models

Get Price ModelsGET Method

Description

Use this endpoint retrieve all price models.

URI Endpoint

/rest/v17/pricingSetup/models

Endpoint Parameters

(Optional) This endpoint supports the following query specifications: expand, fields, finder, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters A collection of Price Models.

adjustmentType

The adjustment type of pricing model.

Allowed Values: "discountPercent", "discountAmount", "markupPercent", or "markupAmount"

conditionType

The condition type of the price model.

Allowed Values: "alwaysTrue" or "simple"

createdBy

The details of the user who created the record.

data

List of data for the price model

dateAdded

Creation date of the price model

dateModified

Last modified date of the price model

description

Description of the price model

dynamicPricingType

The type of dynamic pricing applied by the price model.

Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", or "attributeBasedCharge"

editRestriction

The pricing edit restriction.

Allowed Values: ["UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED"

endDate

The date at which the price model will end

hasBomItem

Indicates whether this price model has prices defined for BOM Items

hasCharges

Indicates whether this Price Model has any charges.

hasRateCards

Indicates if this price model data has linked rate cards (Preview only)

hasRatePlans

Indicates if this price model data has linked rate plans

hasTiers

Indicates whether this model has any price model data that has tiers

integrationId

Price list Id from Oracle Fusion Supply Chain Management (SCM)

lastModifiedBy

The details of the user who modified the record.

listType

The List Type for the price model.

Allowed Values:"priceList", "discountList", "advanced", "markupList", "advancedByTemplate"

matrixTemplateName

The dynamic matrix template name of the Price Model.

matrixTemplateVariableName

The dynamic matrix template variable name of the Price Model.

name

Name of the price model

priceModelItems

List of price items for the price model

ruleCount

The count of pricing rules linked to this model

scriptingMatrixVariableName

The scripting matrix variable name

shared

Indicates whether this model is shared

simpleConditions

A collection of simple type conditions applied by the price model. This is optional for other condition types.

startDate

Effective start date of the price model

supportedMatrixTemplateVariableName

The supported dynamic matrix pricing template of the Price Model.

valueType

The value type of the price model

Allowed Values: "absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent", "advancedByTemplate"

variableName

Unique number of the price model

adjustmentType

The adjustment type of pricing model.

Allowed Values: "discountPercent", "discountAmount", "markupPercent", or "markupAmount"

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models

The limit query specification is used in the following example to limit the results to three models per page.

https://sitename.oracle.com/rest/v17/pricingSetup/models?limit=3


ClosedSample Response Body

{ "items": [{ "dateModified": "2021-09-17T11:42:19Z", "dateAdded": "2019-05-02T13:37:28Z", "name": "Subscription Charges", "variableName": "subscriptionCharges", "conditionType": "simple", "simpleConditions": { "ruleExpression": "1 OR 2 OR 3 OR 4 OR 5 OR 6 OR 7 OR 8", "simpleConditionRows": [{ "index": 1, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "Cloud Backup Service" }, { "index": 2, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "Premium Cloud Backup Service" }, { "index": 3, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "part10" }, { "index": 4, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "part111" }, { "index": 5, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "part1120" }, { "index": 6, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "Surface Book 2" }, { "index": 7, "variableName": "oRCL_pRC_partNumber", "displayName": "Part Number", "operator": "EQUAL_TO", "value": "QP_Item3" }, { "index": 8, "variableName": "oRCL_pRC_productType", "displayName": "Product Type", "operator": "EQUAL_TO", "value": "subscription" } ] }, "shared": false, "ruleCount": 1, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/subscriptionCharges" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/subscriptionCharges/data" } ], "valueType": "absolutePrice", "dynamicPricingType": "advanced" }, { "dateModified": "2021-06-03T07:01:41Z", "dateAdded": "2019-07-22T11:41:51Z", "name": "CSP", "variableName": "cSP", "conditionType": "alwaysTrue", "shared": true, "ruleCount": 2, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/cSP" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/cSP/data" } ], "valueType": "discountPercent", "dynamicPricingType": "static" }, { "dateModified": "2019-11-04T17:01:48Z", "dateAdded": "2019-11-04T15:02:18Z", "name": "CSP ABC Corp", "variableName": "cSPABCCorp", "conditionType": "simple", "simpleConditions": { "ruleExpression": "1 OR 2", "simpleConditionRows": [{ "index": 1, "variableName": "companyName", "displayName": "Company Name", "operator": "EQUAL_TO", "value": "ABC Corp" }, { "index": 2, "variableName": "repeatCustomer", "displayName": "RepeatCustomer", "operator": "EQUAL_TO", "value": "true" } ] }, "shared": false, "ruleCount": 1, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/cSPABCCorp" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/cSPABCCorp/data" } ], "valueType": "absolutePrice", "dynamicPricingType": "advanced" } ], "offset": 0, "limit": 3, "count": 3, "hasMore": true, "links": [{ "rel": "canonical", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models?offset=0&limit=3" }, { "rel": "next", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models?offset=3&limit=3" } ] }


ClosedGet Price Model Pricing Matrix Grid Data

Get Price Model Pricing Matrix Grid DataGET Method

Description

Use this endpoint to retrieve all pricing matrix grid data. The matrix data input and output fields will be prefixed by the "matrix" string in the response to distinguish from other charge or reference fields with the same name.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/matrixGrid

Endpoint Parameters

modelVariableName

The variable name of the price model.

(Optional) This endpoint supports the following query specifications: fields, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

count

The number of resource instances returned in the current range.

createdBy

The details of the user who created the record.

hasMore

Indicates whether more resources are available on the server than the subset returned in the response. If the value is true, then there are more resources to retrieve from the server. The default value is false.

items

An array of pricing matrix grid items

_proxy_id

The proxy identifier for the resource that was added.

bomItemName

The BOM item's display name. When clients sets field bomItemVariableName, this field should also be explicitly set in the request.

bomItemVariableName

The BOM Item's variable name.

chargeDefinition

The display label of the charge definition.

chargeDefinitionCode

The unique code of the charge definition.

chargeDefinitionIntegrationId

The integration Id of the charge definition.

chargeEndDate

The date at which the charge will end.

chargeId

ID of the Charge.

chargeStartDate

The date from which the Charge will be applicable.

chargeType

The category of charge.

createdBy

The details of the user who created the record.

dateAdded

Creation Date of the Pricing Matrix data.

dateModified

Last Modified date of the Pricing Matrix data.

description

The description of the Price Model Data

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", and "attributeBasedCharge"

id

The Unique Identifier of the Pricing Matrix data.

lastModifiedBy

The details of the user who modified the record.

links

The link relations associated with the resource instance.

partNumber

The part Number of the Price Model Data.

priceModelItemId

ID of the Price Model item.

pricePeriod

The billing period.

priceType

The type of charge.

primaryCharge

Indicates whether this is the primary charge.

ratePlanDescription

The Rate Plan description.

ratePlanEndDate

The date at which the Rate Plan will end.

ratePlanName

The Rate Plan name

ratePlanNumber

The Rate Plan number

ratePlanStartDate

The date from which the Rate Plan will be applicable.

rootBomItemName

The root BOM item's display name.

rootBomItemVariableName

The root BOM item's variable name.

salesProductType

The Sales Product Type

serviceDuration

The Service Duration

serviceDurationPeriod

The Service Duration Period Code

serviceDurationType

The Service Duration Type

usageUOM

The unit of measure for the charge.

lastModifiedBy

The details of the user who modified the record.

limit

The actual paging size used by the server.

links

The link relations associated with the resource instance.

offset

The offset value used in the current page.

totalResults

Captures the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/mbpModel/matrixGrid


ClosedSample Response Body

{ "items": [{ "id": 452345, "partNumber": "part10", "description": "Part 10", "bomItemVariableName": "child", "rootBomItemVariableName": "parent", "bomItemName": "Child", "rootBomItemName": "Parent", "serviceDuration": 1, "serviceDurationPeriod": "months", "chargeType": "salesPrice", "priceType": "oneTime", "ratePlanName": "myRatePlan", "ratePlanNumber": "RP10234", "dynamicPricingType": "attributeBasedCharge", "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "chargeStartDate": "2024-11-08T00:0:00Z", "chargeEndDate": "2025-10-07T23:59:59Z", "dateAdded": "2023-11-08T05:42:17Z", "dateModified": "2023-11-08T05:42:17Z", "str1_c": "test", "int1_c": 11, "_matrix_str1": "testMatrix1", "_matrix_int1": 102, "_matrix_itemPrice": { "currency": "USD", "value": 20 } }, { "id": 452346, "partNumber": "part10", "description": "Part 10", "bomItemVariableName": "child", "rootBomItemVariableName": "parent", "bomItemName": "Child", "rootBomItemName": "Parent", "serviceDuration": 1, "serviceDurationPeriod": "months", "chargeType": "salesPrice", "priceType": "oneTime", "ratePlanName": "myRatePlan", "ratePlanNumber": "RP10234", "dynamicPricingType": "attributeBasedCharge", "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "chargeStartDate": "2024-11-08T00:0:00Z", "chargeEndDate": "2025-10-07T23:59:59Z", "dateAdded": "2023-11-08T05:42:17Z", "dateModified": "2023-11-08T05:42:17Z", "str1_c": "test", "int1_c": 11, "_matrix_str1": "testMatrix2", "_matrix_int1": 103, "_matrix_itemPrice": { "currency": "USD", "value": 22 } } ], "offset": 0, "limit": 1000, "count": 2, "hasMore": false }


ClosedUpdate Price Model

Update Price Model PATCH method

Description

Use this endpoint to update the specified price model. In contrast to editing a price model in the UI, this endpoint also supports changing the part number for a price on an existing row.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}

Endpoint Parameters

modelVariableName

The variable name of the price model.

HTTP Method

PATCH

Request Body Parameters

adjustmentType

The adjustment type of the price model.

Allowed Values: "discountPercent", "discountAmount", "markupPercent", or "markupAmount"

conditionType

The condition type of the price model.

Allowed Values: "alwaysTrue" or "simple"

data

List of data for the price model

description

Description of the price model

dynamicPricingType

The type of dynamic pricing applied by the price model.

Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", or "attributeBasedCharge"

editRestriction

The pricing edit restriction.

Allowed Values: ["UNRESTRICTED", "ONLY_REORDERABLE", "RESTRICTED"

endDate

The date at which the price model will end

integrationId

Price list Id from Oracle Fusion Supply Chain Management (SCM)

listType

The List Type for the price model.

Allowed Values:"priceList", "discountList", "advanced", "markupList", "advancedByTemplate"

matrixTemplateName

The dynamic matrix template name of the price model.

matrixTemplateVariableName

The dynamic matrix template variable name of the price model.

name

Name of the price model

priceModelItems

List of price items for the price model

scriptingMatrixVariableName

The scripting matrix variable name.

startDate

Effective start date of the price model

shared

Indicates whether this model is shared

simpleConditions

A collection of simple type conditions applied by the price model. This is optional for other condition types.

supportedMatrixTemplateVariableName

The supported dynamic matrix pricing template of the price model.

valueType

The value type of the price model

Allowed Values:"absolutePrice", "discountAmount", "discountPercent", "markupAmount", "markupPercent", "advancedByTemplate"

variableName

Unique number of the price model

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/volumeDiscountPricing


ClosedSample Request Body

{ "conditionType": "simple", "simpleConditions": { "ruleExpression": "1", "simpleConditionRows": [{ "index": 1, "variableName": "oRCL_pRC_quantity", "displayName": "Quantity", "operator": "GREATER_THAN", "value": "10" } ] } }


ClosedUpdate Price Models

Update Price ModelsPATCH method

Description

Use this endpoint to update or delete price models.

URI Endpoint

/rest/v17/pricingSetup/models

Endpoint Parameters

None

HTTP Method

PATCH

Request Body Parameters

The array of pricing patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Add Price Model for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models


ClosedSample Request Body

There are three operations included in this example:

  • Add the new Volume Discount Pricing model "volumeDiscountPricing"
  • Replace the "configSMS" description
  • Remove the "test" model

[{ "op": "add", "path": "/", "value": { "name": "Volume Discount Pricing", "variableName": "volumeDiscountPricing", "dynamicPricingType": "volume", "valueType": "discountAmount", "description": "This Price Model provides a volume discount." } }, { "op": "replace", "path": "/configSMS", "value": { "description": "This Price Model applies discounts based upon the low or medium text messaging services." } }, { "op": "remove", "path": "/test" } ]


ClosedUpdate Price Model Pricing Grid Data

Update Price Model Pricing Grid DataPATCH method

Description

Use this endpoint to update pricing matrix grid data. The matrix input and output fields should be prefixed with the "matrix" string.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/matrixGrid

Endpoint Parameters

modelVariableName

The variable name of the price model.

HTTP Method

PATCH

Request Body Parameters

The array of pricing patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Get Price Model Pricing Matrix Grid Data for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/mbpModel/matrixGrid


ClosedSample Request Body

[{ "op": "add", "path": "/", "value": { "id": -1, "partNumber": "part10", "description": "Part 10", "bomItemVariableName": "child", "rootBomItemVariableName": "parent", "bomItemName": "Child", "rootBomItemName": "Parent", "serviceDuration": 1, "serviceDurationPeriod": "months", "chargeType": "salesPrice", "priceType": "oneTime", "ratePlanName": "myRatePlan", "ratePlanNumber": "RP10234", "dynamicPricingType": "attributeBasedCharge", "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "chargeStartDate": "2024-11-08T00:0:00Z", "chargeEndDate": "2025-10-07T23:59:59Z", "dateAdded": "2023-11-08T05:42:17Z", "dateModified": "2023-11-08T05:42:17Z", "chargeAttrStr_c": "test", "chargeAttrInt_c": 11, "_matrix_str1": "testMatrix1", "_matrix_int1": 102, "_matrix_itemPrice": { "currency": "USD", "value": 20 } } }, { "op": "replace", "path": "/3453466", "value": { "_matrix_str1": "testMatrix1a", "_matrix_itemPrice": { "currency": "USD", "value": 21 } } } ]


ClosedSample Response Body

{ [{ "_proxy_id": -1, "id": 456234 } ] }


Price Model Items

ClosedAdd Price Model Item

Add Price Model ItemPOST method

Description

Use this endpoint to add a price model item to the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems

Endpoint Parameters

modelVariableName

The variable name of the price model

HTTP Method

POST

Request Body Parameters

bomItemName

The BOM item's display name

bomItemVariableName

The BOM item's variable name

charges

An array of the prices (currency code and value)

description

Description of the price model item

id

The unique identifier of the price model item

integrationId

Integration ID

partNumber

The part number of the price model data. This should match the part's lookup code.

ratePlans

An array of rate plan items

rootBomItemName

The root BOM item's display name

rootBomItemVariableName

The root BOM item's variable name

salesProductType

The sales product type of the price model item

serviceDuration

The service duration of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationPeriod

The service duration period code of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationType

The service duration type

Response Body Parameters

JSON data for the newly added Price Model Item.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/testPriceModel/priceModelItems


ClosedSample Request Body

{ "partNumber": "part12", "description": "", "bomItemName": "Name", "rootBomItemName": "Name", "bomItemVariableName": "ABOSampleChild", "rootBomItemVariableName": "ABOSampleRoot", "dateModified": "2023-04-18T16:12:51Z", "dateAdded": "2023-04-18T08:40:25Z" }


ClosedAdd Price Model Pricing Data

Add Price Model Pricing Data (v14 Only)POST method

Description

Use this endpoint to add pricing data to the specified price model.

Beginning in Oracle CPQ 23D (v15) this endpoint is replaced with Add Price Model Item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/data

Endpoint Parameters

modelVariableName

The variable name of the price model.

HTTP Method

POST

Request Body Parameters

description

The description of the Price Model data.

id

The unique identifier of the Price Model data.

partNumber

The part number of the Price Model data. This should match the part's lookup code.

prices

A key value pair with key as currency code and value as prices.

rangeFrom

The starting range of the Price Model data.

rangeTo

The ending range of the Price Model data.

bomItemVariableName

The BOM item's variable name.

rootBomItemVariableName

The root BOM item's variable name.

bomItemName

The BOM item's display name.

rootBomItemName

The root BOM item's display name.

Success Response

JSON data for the pricing data added for a price model.

ClosedURI Endpoint Sample

https://sitename.oracle.com /rest/v17/pricingSetup/models/newPriceModel/data


ClosedPart Item Example - Request Body

{ "id": -1, "partNumber": "part20", "rangeFrom": 0, "rangeTo": 25, "prices": { "ALL": "0", "EUR": "0", "CAD": "0", "USD": "9", "CNY": "0" } }


Closed BOM Item Example - Request Body

{ "id": -1, "bomItemVariableName": "bomItem13", "rootBomItemVariableName": "root13", "bomItemName": "bomItemName13", "rootBomItemName": "rootBomItemName13", "prices": { "ALL": "0", "EUR": "0", "CAD": "0", "USD": "1.1", "CNY": "0" } }


ClosedDelete Price Model Item

Delete Price Model ItemDELETE method

Description

Use this endpoint to delete the specified price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}

Endpoint Parameters

modelVariableName

The variable name of the price model
 

priceModelItemId

The unique identifier of the price model item

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedDelete Price Model Pricing Data

Delete Price Model Pricing Data DELETE method

Description

Use this endpoint to delete pricing data from the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/data/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

id

The unique id which represent the model data row

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet Price Model Item

Get Price Model ItemGET Method

Description

Use this endpoint to retrieve the specified price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

(Optional) This endpoint supports the following query specifications: expand and fields.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

bomItemName

The BOM item's display name

bomItemVariableName

The BOM item's variable name

chargeCount

The count of charges directly associated with this price model item

charges

An array of the prices (currency code and value)

createdBy

The details of the user who created the record.

dateAdded

Creation date of the price model item

dateModified

Last modified date of the price model item

description

Description of the price model item

hasRatePlanSupport

Indicates if the price model item supports rate plans.

id

The Unique Identifier of the price model item

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

partNumber

The part number of the price model data. This should match the part's lookup code.

priceModelIntegrationId

The parent price model Integration ID.

ratePlanCount

The count of rate plans linked to this price model item

ratePlans

An array of rate plan items

rootBomItemName

The root BOM item's display name

rootBomItemVariableName

The root BOM item's variable name

salesProductType

The sales product type of the price model item

serviceDuration

The service duration of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationPeriod

The service duration period code of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationType

The service duration type

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/testPriceModel/priceModelItems/3022985793


ClosedSample Response Body

{ "id": 3022985793, "partNumber": "part12", "description": "", "bomItemName": "Name", "rootBomItemName": "Name", "bomItemVariableName": "ABOSampleChild", "rootBomItemVariableName": "ABOSampleRoot", "dateModified": "2023-04-18T16:12:51Z", "dateAdded": "2023-04-18T08:40:25Z" }


ClosedGet Price Model Items

Get Price Model Items GET Method

Description

Use this endpoint to retrieve all price model items for the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

(Optional) This endpoint supports the following query specifications: expand, fields, finder, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters

None

Response Body Parameters

A collection of price model items for the specified price model.

bomItemName

The BOM item's display name

bomItemVariableName

The BOM item's variable name

chargeCount

The count of charges directly associated with this price model item

charges

An array of the prices (currency code and value)

createdBy

The details of the user who created the record.

dateAdded

Creation date of the price model item

dateModified

Last modified date of the price model item

description

Description of the price model item

hasRatePlanSupport

Indicates if the price model item supports rate plans.

id

The Unique Identifier of the price model item

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

partNumber

The part number of the price model data. This should match the part's lookup code.

priceModelIntegrationId

The parent price model Integration ID.

ratePlanCount

The count of rate plans linked to this price model item

ratePlans

An array of rate plan items

rootBomItemName

The root BOM item's display name

rootBomItemVariableName

The root BOM item's variable name

salesProductType

The sales product type of the price model item

serviceDuration

The service duration of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationPeriod

The service duration period code of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationType

The service duration type

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/testPriceModel/priceModelItems


ClosedSample Response Body

{ "items": [{ "id": 3022984798, "partNumber": "part12", "description": "", "bomItemName": "Name", "rootBomItemName": "Name", "bomItemVariableName": "ABOSampleChild", "rootBomItemVariableName": "ABOSampleRoot", "dateModified": "2023-04-18T10:02:14Z", "dateAdded": "2023-04-18T05:18:59Z" }, { "id": 3022985793, "partNumber": "part12", "description": "", "bomItemName": "Name", "rootBomItemName": "Name", "bomItemVariableName": "ABOSampleChild", "rootBomItemVariableName": "ABOSampleRoot", "dateModified": "2023-04-18T16:12:51Z", "dateAdded": "2023-04-18T08:40:25Z" } ] }


ClosedGet Price Model Data Items

Get Price Model Pricing Data GET Method

Description

Use this endpoint to retrieve pricing data for the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/data

Endpoint Parameters

modelVariableName

The variable name of the price model

(Optional) This endpoint supports the following query specifications: fields, finder, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters

None

Response Body Parameters

An array of pricing data for the specified price model. Pricing data items include: description, id, part number, prices, and ranges.

blockPrices

The block price

blockSize

The block size

bomItemName

The BOM item's display name. When clients sets field bomItemVariableName, this field should also be explicitly set in the request.

bomItemVariableName

The BOM Item's variable name

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitioniD

The Id of the charge definition

chargeType

The category of charge

createdBy

The details of the user who created the record.

dateAdded

Creation date of the price model data

dateModified

Last modified date of the price model data

description

The description of the price model data

dynamicPricingType

The dynamic pricing type of the price model charge.

Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", or "attributeBasedCharge"

endDate

The date at which the charge will end

id

The unique identifier of the price model data

lastModifiedBy

The details of the user who modified the record.

partNumber

The part number of the price model data. This should match the part lookup's lookupCode.

pricePeriod

The billing period

prices

The item prices

priceType

The type of charge

primaryCharge

Indicates whether this is the primary charge

rangeFrom

The starting range of the price model data

rangeTo

The ending range of the price model data

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

ratePlanName

The rate plan name

rootBomItemName

The root BOM item's display name

rootBomItemVariableName

The root BOM item's variable name

serviceDuration

The service duration of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationPeriod

The service duration period code of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationType

The service duration type

startDate

The date from which the charge will be applicable.

usageUOM

The unit of measure for the charge

ClosedMultiple Profiles Example

URI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/multipleProfiles2/data

Sample Response Body

{ "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/multipleProfiles2" }, { "rel": "canonical", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/multipleProfiles2/data" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/multipleProfiles2/data?offset=0&limit=1000" } ], "hasMore": false, "items": [{ "id": 3022743723, "partNumber": "part10", "description": "", "prices": { "EUR": "200", "USD": "3", "CNY": "1.75" } }, { "id": 15221418, "partNumber": "Customer Specific Pricing 19", "description": "test desc", "prices": { "USD": "12" } }, { "id": 3022746145, "partNumber": "part670", "description": "", "prices": { "EUR": "200", "USD": "3", "CNY": "1.75" } }, { "id": 3022746127, "partNumber": "part190", "description": "", "prices": { "EUR": "200", "USD": "3", "CNY": "1.75" } }, { "id": 3022746136, "partNumber": "part170", "description": "", "prices": { "EUR": "200", "USD": "3", "CNY": "1.75" } }, { "id": 3022746153, "partNumber": "part660", "description": "", "prices": { "EUR": "2", "USD": "3", "CNY": "1.75" } }, { "id": 3022756726, "partNumber": "part260", "description": "", "prices": { "EUR": "2", "USD": "3", "CNY": "1.75" } }, { "id": 3022746075, "partNumber": "part90", "description": "", "prices": { "EUR": "200", "USD": "3", "CNY": "1.75" } }, { "id": 3022896309, "partNumber": "part12", "prices": { "ALL": "0", "EUR": "0", "USD": "3.1", "CNY": "0" }, "bomItemName": "bomItemName12", "rootBomItemName": "rootBomItemName12", "bomItemVariableName": "bomItem12", "rootBomItemVariableName": "root12" } ], "offset": 0, "count": 8, "limit": 1000 }


ClosedTiered Model Example

URI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/tierDiscountPricing/data

Sample Response Body

{ "links": [{ "rel": "parent", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/tPAOCommerce" }, { "rel": "canonical", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/tPAOCommerce/data" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/pricingSetup/models/tPAOCommerce/data?offset=0&limit=1000" } ], "hasMore": false, "items": [{ "id": 3022649234, "partNumber": "part10", "description": "", "rangeFrom": 0, "rangeTo": 5, "prices": { "ALL": "0", "EUR": "0", "CAD": "0", "USD": "1.1", "CNY": "0" } }, { "id": 3022649235, "partNumber": "part10", "description": "", "rangeFrom": 5, "rangeTo": 10, "prices": { "USD": "2" } }, { "id": 3022649236, "partNumber": "part10", "description": "", "rangeFrom": 10, "rangeTo": 30, "prices": { "USD": "3" } }, { "id": 3022759072, "partNumber": "part10", "description": "", "rangeFrom": 30, "prices": { "ALL": "0", "EUR": "0", "CAD": "0", "USD": "1.1", "CNY": "0" } } ], "count": 4, "limit": 1000, "offset": 0 }


ClosedGet Price Model Pricing Data Item

ClosedGet Price Model Pricing Data Item GET Method

Description

Use this endpoint to retrieve the specified pricing data item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/data/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

id

The unique id which represent the model data row

(Optional) This endpoint supports the fields parameter.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters

None

Response Body Parameters

blockPrices

The block price

blockSize

The block size

bomItemName

The BOM item's display name. When clients sets field bomItemVariableName, this field should also be explicitly set in the request.

bomItemVariableName

The BOM Item's variable name

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitioniD

The Id of the charge definition

chargeType

The category of charge

createdBy

The details of the user who created the record.

dateAdded

Creation date of the price model data

dateModified

Last modified date of the price model data

description

The description of the price model data

dynamicPricingType

The dynamic pricing type of the price model charge.

Allowed Values: "static", "advanced", "volume", "tiered", "rateCard", or "attributeBasedCharge"

endDate

The date at which the charge will end

id

The unique identifier of the price model data

lastModifiedBy

The details of the user who modified the record.

partNumber

The part number of the price model data. This should match the part lookup's lookupCode.

pricePeriod

The billing period

prices

The item prices

priceType

The type of charge

primaryCharge

Indicates whether this is the primary charge

rangeFrom

The starting range of the price model data

rangeTo

The ending range of the price model data

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

ratePlanName

The rate plan name

rootBomItemName

The root BOM item's display name

rootBomItemVariableName

The root BOM item's variable name

serviceDuration

The service duration of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationPeriod

The service duration period code of this price model item. This value is relevant only for parts with variable service duration type and is ignored for other types.

serviceDurationType

The service duration type

startDate

The date from which the charge will be applicable.

usageUOM

The unit of measure for the charge

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/testPriceModel/data/3022746127


ClosedSample Response Body

{ "id": 3022746127, "partNumber": "part190", "description": "", "prices": { "EUR": "200", "USD": "3", "CNY": "1.75" } }


ClosedUpdate Price Model Pricing Data

Update Price Model Pricing Data PATCH method

Description

Use this endpoint to add, update, or delete pricing data for the specified price model. This endpoint can be used to Update collection of prices or discounts in a price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/data

Endpoint Parameters

modelVariableName

The variable name of the price model.

HTTP Method

PATCH

Request Body Parameters

The array of pricing patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Add Pricing Data for a Price Model for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/testPriceModel/data


ClosedSample Request Body - Part Item Example

[{ "op": "replace", "path": "/3022746127", "value": { "partNumber": "part90", "prices": { "EUR": "2", "CNY": "1.75" } } } ]


ClosedSample Request Body - BOM Item Examples

Update 'replace' Example

[{ "op": "replace", "path": "/36732751", "value": { "bomItemVariableName": "bomItem13", "rootBomItemVariableName": "root13", "prices": { "ALL": "0", "EUR": "0", "CAD": "0", "USD": "5.1", "CNY": "0" } } } ]

Add Example

[{ "op": "add", "path": "/", "value": { "id": -1, "partNumber": "part10", "bomItemVariableName": "bomItem12", "rootBomItemVariableName": "root12", "bomItemName": "bomItemName12", "rootBomItemName": "rootBomItemName12", "rangeFrom": 20, "rangeTo": 25, "prices": { "ALL": "0", "EUR": "0", "CAD": "0", "USD": "1.1", "CNY": "0" } } } ]


Price Model Charges

ClosedAdd Price Model Charge

Add Price Model Charge POST method

Description

Use this endpoint to add a charge for the specified price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

HTTP Method

POST

Request Body Parameters

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge
Response Body Parameters

JSON data for the newly added price model item charge.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/charges


ClosedSample Request Body

{ "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "primaryCharge": false, "dynamicPricingType": "static", "priceType": "One Time", "prices": [{ "currencyCode": "USD", "value": 59.99 } ] }


ClosedSample Response Body

{ "id": 36988774, "dateModified": "2023-09-22T15:01:38Z", "dateAdded": "2023-09-22T15:01:38Z", "prices": [{ "currencyCode": "USD", "value": 59.99 } ], "chargeDefinition": "One-time Price", "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "chargeDefinitionId": 36895950, "primaryCharge": false, "chargeType": "ORA_SALE", "priceType": "One Time", "dynamicPricingType": "static", "globalMarkets_c": "northAmerica_c" }


ClosedDelete Price Model Charge

Delete Price Model ChargeDELETE method

Description

Use this endpoint to delete the specified price model item charge.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

id

The unique identifier of the charge

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet Price Model Charge

Get Price Model ChargeGET Method

Description

Use this endpoint to retrieve the specified price model item charge.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

id

The unique identifier of the charge

(Optional) This endpoint supports the following query specifications: expand and fields.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

createdBy

The details of the user who created the record.

dateAdded

Creation date of the charge definition

dateModified

Last modified date of the charge definition

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36964026/charges/3022960005


ClosedSample Response Body

{ "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" }


ClosedGet Price Model Charges

Get Price Model Charges GET Method

Description

Use this endpoint to retrieve all charges for the specified price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

(Optional) This endpoint supports the following query specifications: fields, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters

None

Response Body Parameters

A collection of charges.

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

createdBy

The details of the user who created the record.

dateAdded

Creation date of the charge definition

dateModified

Last modified date of the charge definition

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/charges


ClosedSample Response Body

{ "items": [{ "id": 3022984798, "chargeDefinitionCode": "USAGE_SALE_PRICE", "priceType": "Usage", "pricePeriod": "Per Month", "primaryCharge": true, "prices": [{ "currencyCode": "USD", "value": 3002 } ], "dateModified": "2023-04-18T10:02:14Z", "dateAdded": "2023-04-18T05:18:59Z" }, { "id": 3022985793, "chargeDefinitionCode": "RECURRING_SALE_PRICE", "chargeType": "ORA_SALE", "priceType": "Recurring", "pricePeriod": "Per Month", "primaryCharge": false, "prices": [{ "currencyCode": "USD", "value": 2 } ], "dateModified": "2023-04-18T16:12:51Z", "dateAdded": "2023-04-18T08:40:25Z" } ] }


ClosedUpdate Price Model Charge

Update Price Model Charge PATCH method

Description

Use this endpoint to update a price model item charge.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

id

The unique identifier of the charge

HTTP Method

PATCH

Request Body Parameters

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36964026/charges/3022960005


ClosedSample Request Body

{ "prices": [{ "currencyCode": "USD", "value": 30 }, { "currencyCode": "GBP", "value": 40 }, { "currencyCode": "JPY", "value": 50 } ] }


ClosedUpdate Price Model Charges

Update Price Model Charges PATCH method

Description

Use this endpoint to update charges for the specified price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/charges

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

HTTP Method

PATCH

Request Body Parameters

The array of pricing patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Add Charge for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/charges


ClosedSample Request Body

[{ "op": "replace", "path": "/3022960005", "value": { "prices": [{ "currencyCode": "USD", "value": 10 }, { "currencyCode": "GBP", "value": 20 }, { "currencyCode": "JPY", "value": 30 } ] } } ]


Price Model Rate Plans

ClosedAdd Price Model Rate Plan

Add Price Model Rate PlanPOST method

Description

Use this endpoint to add a pricing rate plan to a price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

HTTP Method

POST

Request Body Parameters

charges

An array of the prices (currency code and value)

description

Description of the pricing rate plan

endDate

The date at which the charge will end

integrationId

Integration ID

name

Name of the pricing rate plan

orderNumber

The position in a ordered list of rate plan

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

Unique variable name of the pricing rate plan

startDate

The date from which the rate plan will be applicable

Response Body Parameters

JSON data for the newly created rate plan.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022984792/ratePlans


ClosedSample Request Body

{ "ratePlanNumber": "ratePlan3", "description": "Rate Plan used for Customer Specific Pricing 03", "name": "Rate Plan 3", "integrationId": "qpIntegrationId1", "startDate": "2023-02-18T10:02:14Z", "endDate": "2023-09-18T05:18:59Z", }


ClosedSample Response Body

{ "id": 3022984300, "priceModelItemId": 3022984792, "ratePlanNumber": "ratePlan3", "description": "Rate Plan used for Customer Specific Pricing 03", "name": "Rate Plan 3", "integrationId": "qpIntegrationId1", "startDate": "2023-02-18T10:02:14Z", "endDate": "2023-09-18T05:18:59Z", "dateModified": "2023-04-18T10:02:14Z", "dateAdded": "2023-04-18T05:18:59Z" }


ClosedDelete Price Model Rate Plan

Delete Price Model Rate PlanDELETE method

Description

Use this endpoint to delete the specified price model.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet Price Model Rate Plan

Get Price Model Rate PlanGET Method

Description

Use this endpoint to retrieve the specified the specified price model item rate plan.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

(Optional) This endpoint supports the following query specifications: expand and fields.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

chargeCount

The count of charges directly associated with this price model item

charges

An array of the prices (currency code and value)

createdBy

The details of the user who created the record.

dateAdded

Creation date of the rate plan

dateModified

Last modified date of the rate plan

description

Description of the pricing rate plan

endDate

The date at which the charge will end

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

name

Name of the pricing rate plan

orderNumber

The position in a ordered list of rate plan

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

Unique variable name of the pricing rate plan

startDate

The date from which the rate plan will be applicable

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022952781/ratePlans/ratePlan2


ClosedSample Response Body

{ "dateAdded": "2023-05-05T09:15:56Z", "dateModified": "2023-05-05T09:15:56Z", "description": "Rate Plan used for Customer Specific Pricing 02", "endDate": "2023-09-18T05:18:59Z", "integrationId": "qpIntegrationId1", "name": "Rate Plan 1", "ratePlanNumber": "ratePlan2", "startDate": "2023-02-18T10:02:14Z", "priceModelItemId": "3022952781" }


ClosedGet Price Model Rate Plans

Get Price Model Rate Plans GET Method

Description

Use this endpoint to retrieve all rate plans for the specified price model item.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

(Optional) This endpoint supports the following query specifications: expand, fields, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters

None

Response Body Parameters

A collection of rate plans for the specified price model item.

chargeCount

The count of charges directly associated with this price model item

charges

An array of the prices (currency code and value)

createdBy

The details of the user who created the record.

dateAdded

Creation date of the rate plan

dateModified

Last modified date of the rate plan

description

Description of the pricing rate plan

endDate

The date at which the charge will end

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

name

Name of the pricing rate plan

orderNumber

The position in a ordered list of rate plan

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

Unique variable name of the pricing rate plan

startDate

The date from which the rate plan will be applicable

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022984792/ratePlans


ClosedSample Response Body

{ "items": [{ "id": 3022984798, "priceModelItemId": 3022984792, "ratePlanNumber": "ratePlan1", "description": "", "name": "Rate Plan 1", "integrationId": "qpIntegrationId1", "startDate": "2023-02-18T10:02:14Z", "endDate": "2023-09-18T05:18:59Z", "dateModified": "2023-04-18T10:02:14Z", "dateAdded": "2023-04-18T05:18:59Z" }, { "id": 3022984298, "priceModelItemId": 3022984292, "ratePlanNumber": "ratePlan2", "description": "", "name": "Rate Plan 2", "integrationId": "qpIntegrationId1", "startDate": "2023-02-18T10:02:14Z", "endDate": "2023-09-18T05:18:59Z", "dateModified": "2023-04-18T10:02:14Z", "dateAdded": "2023-04-18T05:18:59Z" } ] }


ClosedGet Price Model Rate Plan

Get Price Model Rate PlanGET Method

Description

Use this endpoint to retrieve the specified the specified price model item rate plan.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

(Optional) This endpoint supports the following query specifications: expand and fields.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

chargeCount

The count of charges directly associated with this price model item

charges

An array of the prices (currency code and value)

createdBy

The details of the user who created the record.

dateAdded

Creation date of the rate plan

dateModified

Last modified date of the rate plan

description

Description of the pricing rate plan

endDate

The date at which the charge will end

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

name

Name of the pricing rate plan

orderNumber

The position in a ordered list of rate plan

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

Unique variable name of the pricing rate plan

startDate

The date from which the rate plan will be applicable

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022952781/ratePlans/ratePlan2


ClosedSample Response Body

{ "dateAdded": "2023-05-05T09:15:56Z", "dateModified": "2023-05-05T09:15:56Z", "description": "Rate Plan used for Customer Specific Pricing 02", "endDate": "2023-09-18T05:18:59Z", "integrationId": "qpIntegrationId1", "name": "Rate Plan 1", "ratePlanNumber": "ratePlan2", "startDate": "2023-02-18T10:02:14Z", "priceModelItemId": "3022952781" }


ClosedUpdate Price Model Rate Plan

Update Price Model Rate Plan PATCH method

Description

Use this endpoint to update the specified price model item rate plan.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

HTTP Method

PATCH

Request Body Parameters

charges

An array of the prices (currency code and value)

description

Description of the pricing rate plan

endDate

The date at which the charge will end

integrationId

Integration ID

name

Name of the pricing rate plan

orderNumber

The position in a ordered list of rate plan

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

Unique variable name of the pricing rate plan

startDate

The date from which the rate plan will be applicable

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022952781/ratePlans/ratePlan3


ClosedSample Request Body

{ "description": "Rate Plan 03 for Customer Specific Pricing", "startDate": "2023-12-01", "endDate": "2024-12-01" }


ClosedUpdate Rate Price Model Plans

Update Price Model Rate Plans PATCH method

Description

Use this endpoint to update the specified price model item rate plans.

URI Endpoint

/rest/v17//pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

HTTP Method

PATCH

Request Body Parameters

The array of pricing patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Add Rate Plan for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022984792/ratePlans


ClosedSample Request Body

[{ "op": "add", "path": "/", "value": { "ratePlanNumber": "ratePlan3", "description": "Rate Plan used for Customer Specific Pricing 03", "name": "Rate Plan 3", "integrationId": "qpIntegrationId1", "startDate": "2023-02-18T10:02:14Z", "endDate": "2023-09-18T05:18:59Z", } }, { "op": "replace", "path": "/3022985793", "value": { "description": "New description" } }, { "op": "remove", "path": "/30229857934" } ]


Price Model Rate Plan Charges

ClosedAdd Price Model Rate Plan Charge

Add Price Model Rate Plan Charge POST method

Description

Use this endpoint to add a charge to a price model item rate plan.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

HTTP Method

POST

Request Body Parameters

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge
Response Body Parameters

JSON data for the newly added rate plan charge.

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/ratePlans/ratePlan1/charges


ClosedSample Request Body

{ "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "primaryCharge": false, "dynamicPricingType": "static", "priceType": "One Time", "prices": [{ "currencyCode": "USD", "value": 59.99 } ] }


ClosedSample Response Body

{ "id": 36988774, "dateModified": "2023-09-22T15:01:38Z", "dateAdded": "2023-09-22T15:01:38Z", "prices": [{ "currencyCode": "USD", "value": 59.99 } ], "chargeDefinition": "One-time Price", "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "chargeDefinitionId": 36895950, "primaryCharge": false, "chargeType": "ORA_SALE", "priceType": "One Time", "dynamicPricingType": "static", "globalMarkets_c": "northAmerica_c" }


ClosedDelete Price Model Rate Plan Charge

Delete Price Model Rate Plan ChargeDELETE method

Description

Use this endpoint to delete the specified price model item rate plan charge.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

id

The unique identifier of the charge

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet Price Model Rate Plan Charge

Get Price Model Rate Plan ChargeGET Method

Description

Use this endpoint to retrieve the specified price model item price model item rate plan charge.

URI Endpoint

/rest/v17//pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

id

The unique identifier of the charge

(Optional) This endpoint supports the fields query specifications.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters None
Response Body Parameters

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

createdBy

The details of the user who created the record.

dateAdded

Creation date of the charge definition

dateModified

Last modified date of the charge definition

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/ratePlans/ratePlan1/charges/3022960005


ClosedSample Response Body

{ "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": false, "priceType": "One Time", "dynamicPricingType": "static" }


ClosedGet Price Model Rate Plan Charges

Get Price Model Rate Plan Charges GET Method

Description

Use this endpoint to retrieve all charges for the specified price model item rate plan.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

(Optional) This endpoint supports the following query specifications: fields, limit, offset, onlyData, orderby, and totalResults.

For more information, see Manage Collections.

HTTP Method

GET

Request Body Parameters

None

Response Body Parameters

A collection of charges for the specified price model item rate plan.

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

createdBy

The details of the user who created the record.

dateAdded

Creation date of the charge definition

dateModified

Last modified date of the charge definition

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

lastModifiedBy

The details of the user who modified the record.

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/3022952781/ratePlans/ratePlan1/charges


ClosedSample Response Body

{ "items": [{ "id": 3022984798, "chargeCode": "USAGE_SALE_PRICE", "priceType": "Usage", "pricePeriod": "Per Month", "prices": [{ "currencyCode": "USD", "value": 3002 } ], "dateModified": "2023-04-18T10:02:14Z", "dateAdded": "2023-04-18T05:18:59Z" }, { "id": 3022985793, "chargeCode": "RECURRING_SALE_PRICE", "chargeType": "ORA_SALE", "priceType": "Recurring", "pricePeriod": "Per Month", "prices": [{ "currencyCode": "USD", "value": 2 } ], "dateModified": "2023-04-18T16:12:51Z", "dateAdded": "2023-04-18T08:40:25Z" } ] }

{ "items": [{ "id": 3022984798, "chargeCode": "USAGE_SALE_PRICE", "priceType": "Usage", "pricePeriod": "Per Month", "tiers": [{ "id": 3022984798, "rangeFrom": 0, "rangeTo": 10, "prices": [{ "currencyCode": "USD", "value": 3002 } ] }, { "id": 3022984799, "rangeFrom": 10, "prices": [{ "currencyCode": "USD", "value": 3002 } ] } ] } ] }


ClosedUpdate Price Model Rate Plan Charge

Update Price Model Rate Plan Charge PATCH method

Description

Use this endpoint to update the specified price model item rate plan charge.

URI Endpoint

/rest/v17//pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges/{id}

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

id

The unique identifier of the charge

HTTP Method

PATCH

Request Body Parameters

blockPrices

The block price

blockSize

The block size

chargeDefinition

Display name of the charge definition

chargeDefinitionCode

The unique code of the charge definition

chargeDefinitionId

ID of the charge definition

chargeType

Display label of charge type

dynamicPricingType

The dynamic pricing type of the charge. Allowed Values: "static", "advanced", "volume", "tiered"

endDate

The date at which the charge will end

id

The unique identifier of the charge

integrationId

Integration ID

pricePeriod

The billing period

prices

An array of the prices (currency code and value)

priceType

Display label of price type

pricingMatrixVariableName

Pricing matrix variable name (Preview only. Not available for use.)

primaryCharge

Indicates whether this is the primary charge

rateCardName

Rate card name (Preview only. Not available for use)

rateCardVariableName

Rate card variable name (Preview only. Not available for use)

startDate

The date from which the charge will be applicable

templateVariableName

The pricing matrix template variable name

tiers

An array of the range from, range to, and prices

usageUOM

The unit of measure for the charge

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/ratePlans/ratePlan1/charges/3022960005


ClosedSample Request Body

{ "prices": [{ "currencyCode": "USD", "value": 30 }, { "currencyCode": "GBP", "value": 40 }, { "currencyCode": "JPY", "value": 50 } ] }


ClosedUpdate Price Model Rate Plan Charges

Update Price Model Rate Plan Charges PATCH method

Description

Use this endpoint to update charges for the specified price model item rate plan.

URI Endpoint

/rest/v17/pricingSetup/models/{modelVariableName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges

Endpoint Parameters

modelVariableName

The variable name of the price model

priceModelItemId

The unique identifier of the price model item

ratePlanNumber

The variable name of the pricing rate plan

HTTP Method

PATCH

Request Body Parameters

The array of pricing patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Add Rate Plan Charge for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v17/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/ratePlans/ratePlan1/charges


ClosedSample Request Body

[{ "op": "replace", "path": "/3022960005", "value": { "prices": [{ "currencyCode": "USD", "value": 10 }, { "currencyCode": "GBP", "value": 20 }, { "currencyCode": "JPY", "value": 30 } ] } } ]


 

Related Topics

Related Topics Link IconSee Also