Add Price Item Charge Group Rate Plan Charge

post

/rest/v16/pricingSetup/priceItems/{priceItemId}/chargeGroups/{chargeGroupId}/ratePlans/{ratePlanNumber}/charges

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 item charge group 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 "Accept: application/json"
https://sitename.oracle.com/rest/v16/pricingSetup/priceItems/part-8523091/chargeGroups/3022941676/ratePlans/winterRatePlan/charges

Request Body Sample

{
  "primaryCharge": false,
  "chargeDefinitionCode": "recurringSalesPrice_c",
  "priceType": "Recurring",
  "chargeType": "ORA_SALE",
  "pricePeriod": "Per Month",
  "usageUOM": null,
  "testCA1_c": "value1",
  "startDate": null,
  "endDate": null,
  "dynamicPricingType": "static",
  "prices": [{
      "currencyCode": "USD",
      "value": 12
    }
  ],
  "blockPrices": null,
  "blockSize": "1",
  "rateCardVariableName": null
}

Response Body Sample

{
  "createdBy": {
    "firstName": "Super",
    "lastName": "User",
    "emailId": "junk@bigmachines.com"
  },
  "lastModifiedBy": {
    "firstName": "Super",
    "lastName": "User",
    "emailId": "junk@bigmachines.com"
  },
  "id": 3023214017,
  "dateModified": "2024-06-21T18:04:10Z",
  "dateAdded": "2024-06-21T18:04:10Z",
  "prices": [{
      "currencyCode": "USD",
      "value": 12
    }
  ],
  "chargeDefinitionId": 3023154269,
  "primaryCharge": false,
  "chargeType": "ORA_SALE",
  "priceType": "Recurring",
  "pricePeriod": "Per Month",
  "dynamicPricingType": "static",
  "blockSize": 1,
  "testCA1_c": "value1"
}
Back to Top