Add Charge Definition

post

/rest/v16/pricingSetup/chargeDefinitions

Use this endpoint to add a pricing charge definition.

Request

Supported Media Types
Body ()
Root Schema : PricingChargeDefinition
Type: object
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 : UserDetails
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : PricingChargeDefinition
Type: object
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 : UserDetails
Type: object
Show Source
Back to Top

Examples

The following example shows how to add a Charge Definition 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/chargeDefinitions

Request Body Sample

{
  "code": "newChargeDefinition_c",
  "name": "New Charge Definition",
  "integrationId": "QP_NEW_CHARGE_DEFINITION",
  "chargeTypeCode": "ORA_SALE",
  "priceTypeCode": "newCharge_c"
}

Response Body Sample

{
  "code": "newChargeDefinition_c",
  "name": "New Charge Definition",
  "integrationId": "QP_NEW_CHARGE_DEFINITION",
  "chargeType": "Sales Price",
  "chargeTypeCode": "ORA_SALE",
  "priceType": "New Charge",
  "priceTypeCode": "newCharge_c",
  "dateAdded": "2023-09-21T23:12:23Z",
  "dateModified": "2023-09-21T23:12:23Z",
  "type": "Custom Definition",
  "active": false
}
Back to Top