Add Price Model Item Rate Plan Charge

post

/rest/v16/pricingSetup/models/{modelVarName}/priceModelItems/{priceModelItemId}/ratePlans/{ratePlanNumber}/charges

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

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : PricingCharge
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price.
Show Source
Nested Schema : Created By
Title: Created By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : Last Modified By
Title: Last Modified By
Read Only: true
The details of the user who modified the record.
Match All
Show Source
Nested Schema : Prices
Type: array
Title: Prices
The item prices.
Show Source
Nested Schema : Tiers
Type: array
Title: Tiers
The charge tiers.
Show Source
Nested Schema : PricingCurrencyValues
Type: object
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Nested Schema : ChargeTier
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price for the corresponding tier.
Show Source
Nested Schema : Prices
Type: array
Title: Prices
The prices.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : PricingCharge
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price.
Show Source
Nested Schema : Created By
Title: Created By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : Last Modified By
Title: Last Modified By
Read Only: true
The details of the user who modified the record.
Match All
Show Source
Nested Schema : Prices
Type: array
Title: Prices
The item prices.
Show Source
Nested Schema : Tiers
Type: array
Title: Tiers
The charge tiers.
Show Source
Nested Schema : PricingCurrencyValues
Type: object
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Nested Schema : ChargeTier
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price for the corresponding tier.
Show Source
Nested Schema : Prices
Type: array
Title: Prices
The prices.
Show Source
Back to Top

Examples

The following example shows how to add a charge to a Price Model Item Rate Plan by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/pricingSetup/models/_defaultPriceModel/priceModelItems/36947090/ratePlans/ratePlan1/charges

Request Body Sample

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

Response Body Sample

{
  "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"
}
Back to Top