Update a Charge Definition
patch
/rest/v19/pricingSetup/chargeDefinitions/{code}
Use this endpoint to update the specified pricing charge definition.
Request
Supported Media Types
- application/json
Path Parameters
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
204 Response
Success
Examples
The following examples show how to update the specified Charge Definition by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X PATCH -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/pricingSetup/chargeDefinitions/newChargeDefinition_c
Request Body Sample
{
"name": "New Charge Definition",
"description": "Charge Definition for New Charge",
"active": false,
"integrationId": "QP_NEW_CHARGE_DEFINITION"
}