Update Price Model Item Charge

patch

/rest/v16/pricingSetup/models/{modelVarName}/priceModelItems/{priceModelItemId}/charges/{id}

Use this endpoint to update a price model item 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

204 Response

Success
Back to Top

Examples

The following examples show how to update a Price Model Item charge by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X PATCH - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/pricingSetup/models/_defaultPriceModel/priceModelItems/36964026/charges/3022960005

Request Body Sample

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