Add a Charge Definition
post
/rest/v19/pricingSetup/chargeDefinitions
Use this endpoint to add a pricing charge definition.
Request
Supported Media Types
- application/json
Root Schema : PricingChargeDefinition
Type:
Show Source
object-
active:
boolean()
Title:
ActiveIndicates if the Charge Definition is active. -
chargeType:
string()
Title:
Charge TypeRead Only:trueDisplay label of Charge Type -
chargeTypeCode:
string()
Title:
Charge Type CodeCharge Type lookup code. -
code:
string()
Title:
CodeVariable Name of the Charge Definition. -
createdBy:
Created By
Title:
Created ByRead Only:trueThe details of the user who created the record. -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date AddedRead Only:trueCreation Date of the Charge Definition. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date ModifiedRead Only:trueLast Modified date of the Charge Definition. -
description:
string()
Title:
DescriptionDescription of the Charge Definition. -
groupAccessEnabled:
boolean()
Title:
Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment -
integrationId:
string()
Title:
Integration IDIntegration ID -
lastModifiedBy:
Last Modified By
Title:
Last Modified ByRead Only:trueThe details of the user who modified the record. -
links:
array Links
Title:
LinksRead Only:trueThe link relations associated with the resource instance. -
name:
string()
Title:
NameDisplay Name of the Charge Definition. -
priceType:
string()
Title:
Price TypeRead Only:trueDisplay label of Price Type -
priceTypeCode:
string()
Title:
Price Type CodePrice Type lookup code. -
segmentLevelAccessType:
string()
Title:
Segment-level Access TypeRead Only:trueSegment-level Access Type -
type:
string()
Title:
TypeRead Only:trueIndicates whether a Charge Definition is Standard or Custom
Nested Schema : Created By
Title:
Created ByRead Only:
trueThe details of the user who created the record.
Match All
The details of the user who created the record.
Show Source
Nested Schema : Last Modified By
Title:
Last Modified ByRead Only:
trueThe details of the user who modified the record.
Match All
The details of the user who modified the record.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksRead Only:
trueThe link relations associated with the resource instance.
Show Source
Nested Schema : UserDetails
Type:
Show Source
object-
emailId:
string()
Title:
Email IdEmail Id of the user -
firstName:
string()
Title:
First NameFirst Name of the user -
lastName:
string()
Title:
Last NameLast Name of the user
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : PricingChargeDefinition
Type:
Show Source
object-
active:
boolean()
Title:
ActiveIndicates if the Charge Definition is active. -
chargeType:
string()
Title:
Charge TypeRead Only:trueDisplay label of Charge Type -
chargeTypeCode:
string()
Title:
Charge Type CodeCharge Type lookup code. -
code:
string()
Title:
CodeVariable Name of the Charge Definition. -
createdBy:
Created By
Title:
Created ByRead Only:trueThe details of the user who created the record. -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date AddedRead Only:trueCreation Date of the Charge Definition. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date ModifiedRead Only:trueLast Modified date of the Charge Definition. -
description:
string()
Title:
DescriptionDescription of the Charge Definition. -
groupAccessEnabled:
boolean()
Title:
Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment -
integrationId:
string()
Title:
Integration IDIntegration ID -
lastModifiedBy:
Last Modified By
Title:
Last Modified ByRead Only:trueThe details of the user who modified the record. -
links:
array Links
Title:
LinksRead Only:trueThe link relations associated with the resource instance. -
name:
string()
Title:
NameDisplay Name of the Charge Definition. -
priceType:
string()
Title:
Price TypeRead Only:trueDisplay label of Price Type -
priceTypeCode:
string()
Title:
Price Type CodePrice Type lookup code. -
segmentLevelAccessType:
string()
Title:
Segment-level Access TypeRead Only:trueSegment-level Access Type -
type:
string()
Title:
TypeRead Only:trueIndicates whether a Charge Definition is Standard or Custom
Nested Schema : Created By
Title:
Created ByRead Only:
trueThe details of the user who created the record.
Match All
The details of the user who created the record.
Show Source
Nested Schema : Last Modified By
Title:
Last Modified ByRead Only:
trueThe details of the user who modified the record.
Match All
The details of the user who modified the record.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksRead Only:
trueThe link relations associated with the resource instance.
Show Source
Nested Schema : UserDetails
Type:
Show Source
object-
emailId:
string()
Title:
Email IdEmail Id of the user -
firstName:
string()
Title:
First NameFirst Name of the user -
lastName:
string()
Title:
Last NameLast Name of the user
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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/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
}