Add Price Agreement Rate Plan Charge

post

/rest/v16/pricingSetup/agreements/{agreementVarName}/priceAgreementItems/{priceAgreementItemId}/ratePlans/{ratePlanNumber}/charges

Use this endpoint to add a charge to the specified price agreement 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 the specified price agreement 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/agreements/agreementAPIaccount112/priceAgreementItems/3023202291/ratePlans/basicPlan/charges

Request Body Sample

{
  "prices": [{
      "currencyCode": "USD",
      "value": 90000
    }
  ],
  "primaryCharge": false,
  "chargeType": "ORA_SALE",
  "priceType": "One Time",
  "dynamicPricingType": "static"
}

Response Body Sample

{
  "id": 3023203503,
  "dateModified": "2024-01-30T16:49:30Z",
  "dateAdded": "2024-01-30T16:49:30Z",
  "prices": [{
      "currencyCode": "USD",
      "value": 90000
    }
  ],
  "chargeDefinitionId": -1,
  "primaryCharge": false,
  "chargeType": "ORA_SALE",
  "priceType": "One Time",
  "dynamicPricingType": "static",
  "blockSize": 1
}
Back to Top