Add Price Item Charge Group Charge

post

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

Use this endpoint to create a price item charge group charge.

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 create a price item charge group charge 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/charges

Request Body Sample

{
  "primaryCharge": false,
  "chargeDefinitionCode": "ONE_TIME_SALES_PRICE",
  "priceType": "One Time",
  "chargeType": "ORA_SALE",
  "pricePeriod": null,
  "usageUOM": null,
  "testCA1_c": "value1",
  "startDate": null,
  "endDate": null,
  "dynamicPricingType": "static",
  "prices":
  [{
      "currencyCode": "USD",
      "value": 25
    }
  ],
  "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": 3023213982,
  "dateModified": "2024-06-21T16:18:49Z",
  "dateAdded": "2024-06-21T16:18:49Z",
  "prices": [{
      "currencyCode": "USD",
      "value": 25
    }
  ],
  "chargeDefinitionId": 3023071962,
  "primaryCharge": false,
  "chargeType": "ORA_SALE",
  "priceType": "One Time",
  "dynamicPricingType": "static",
  "blockSize": 1,
  "testCA1_c": "value1"
}
Back to Top