Add a Charge Attribute
post
/rest/v19/pricingSetup/chargeAttributes
Use this endpoint to add a pricing charge attribute.
Request
Supported Media Types
- application/json
Root Schema : ChargeAttribute
Type:
Show Source
object-
active:
boolean()
Title:
ActiveIndicates whether Charge Attribute is active. -
createdBy:
Created By
Title:
Created ByRead Only:trueThe details of the user who created the record. -
dataType:
string()
Title:
Data TypeAllowed Values:[ "Boolean", "Currency", "String", "Decimal", "Date", "Integer", "Text Area" ]Data Type of the Pricing Charge. -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date AddedRead Only:trueCreation date of the Pricing Charge. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date ModifiedRead Only:trueLast modified date of the Pricing Charge. -
defaultValue:
string()
Title:
Default ValueThe default value of the Charge Attribute. -
defaultValueLabel:
string()
Title:
Default Value Display LabelRead Only:trueThe default value display label of the Charge Attribute. -
description:
string()
Title:
DescriptionDescription of the Pricing Charge. -
groupAccessEnabled:
boolean()
Title:
Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment -
ioType:
string()
Title:
IO TypeAllowed Values:[ "Input", "Output", "Internal", "External" ]Pricing Attribute IO Type. -
key:
boolean()
Title:
KeyRead Only:trueIndicates whether the Charge Attribute is part of the user key. -
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. -
lookupType:
string()
Title:
Lookup TypeThe lookup type variable name for the Charge Attribute. -
lookupTypeLabel:
string()
Title:
Lookup Type Display LabelRead Only:trueThe lookup type display label for the Charge Attribute. -
name:
string()
Title:
NameName of the Pricing Charge. -
negotiable:
boolean()
Title:
NegotiableIndicates whether the Charge Attribute is editable in runtime. -
orderNumber:
integer()
Title:
Order NumberThe order of the Charge Attribute. -
productPriceEnabled:
boolean()
Title:
Product Price EnabledRead Only:trueIndicates whether the Charge Attribute is product price enabled. -
required:
boolean()
Title:
RequiredIndicates whether Charge Attribute is required. -
segmentLevelAccessType:
string()
Title:
Segment-level Access TypeRead Only:trueSegment-level Access Type -
templateVariableKey:
string()
Title:
Template Variable KeyRead Only:trueAllowed Values:[ "Custom", "Quantity", "BomItemVariableName", "ChargeAttribute", "PriceAsOf", "RequestedRatePlanNumber", "ServiceDuration", "ServiceDurationPeriod", "RequestedAgreementNumber", "BuyingAccountID", "Currency Code", "PartNumber", "Customer ID", "Line Price As Of", "Header Number", "Business Unit ID", "Header Contract Start Date", "Header Contract End Date", "Line Contract Start Date", "Line Contract End Date", "Covered Line ID", "Coverage Header Number" ]Pricing Charge template variable key. -
valid:
boolean()
Title:
ValidRead Only:trueIndicates whether Pricing Charge is valid. -
variableName:
string()
Title:
Variable NameVariable Name of the Pricing Charge. -
visibility:
string()
Title:
VisibilityIndicates whether the Charge Attribute is visible in Administration or Runtime.
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 : ChargeAttribute
Type:
Show Source
object-
active:
boolean()
Title:
ActiveIndicates whether Charge Attribute is active. -
createdBy:
Created By
Title:
Created ByRead Only:trueThe details of the user who created the record. -
dataType:
string()
Title:
Data TypeAllowed Values:[ "Boolean", "Currency", "String", "Decimal", "Date", "Integer", "Text Area" ]Data Type of the Pricing Charge. -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date AddedRead Only:trueCreation date of the Pricing Charge. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date ModifiedRead Only:trueLast modified date of the Pricing Charge. -
defaultValue:
string()
Title:
Default ValueThe default value of the Charge Attribute. -
defaultValueLabel:
string()
Title:
Default Value Display LabelRead Only:trueThe default value display label of the Charge Attribute. -
description:
string()
Title:
DescriptionDescription of the Pricing Charge. -
groupAccessEnabled:
boolean()
Title:
Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment -
ioType:
string()
Title:
IO TypeAllowed Values:[ "Input", "Output", "Internal", "External" ]Pricing Attribute IO Type. -
key:
boolean()
Title:
KeyRead Only:trueIndicates whether the Charge Attribute is part of the user key. -
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. -
lookupType:
string()
Title:
Lookup TypeThe lookup type variable name for the Charge Attribute. -
lookupTypeLabel:
string()
Title:
Lookup Type Display LabelRead Only:trueThe lookup type display label for the Charge Attribute. -
name:
string()
Title:
NameName of the Pricing Charge. -
negotiable:
boolean()
Title:
NegotiableIndicates whether the Charge Attribute is editable in runtime. -
orderNumber:
integer()
Title:
Order NumberThe order of the Charge Attribute. -
productPriceEnabled:
boolean()
Title:
Product Price EnabledRead Only:trueIndicates whether the Charge Attribute is product price enabled. -
required:
boolean()
Title:
RequiredIndicates whether Charge Attribute is required. -
segmentLevelAccessType:
string()
Title:
Segment-level Access TypeRead Only:trueSegment-level Access Type -
templateVariableKey:
string()
Title:
Template Variable KeyRead Only:trueAllowed Values:[ "Custom", "Quantity", "BomItemVariableName", "ChargeAttribute", "PriceAsOf", "RequestedRatePlanNumber", "ServiceDuration", "ServiceDurationPeriod", "RequestedAgreementNumber", "BuyingAccountID", "Currency Code", "PartNumber", "Customer ID", "Line Price As Of", "Header Number", "Business Unit ID", "Header Contract Start Date", "Header Contract End Date", "Line Contract Start Date", "Line Contract End Date", "Covered Line ID", "Coverage Header Number" ]Pricing Charge template variable key. -
valid:
boolean()
Title:
ValidRead Only:trueIndicates whether Pricing Charge is valid. -
variableName:
string()
Title:
Variable NameVariable Name of the Pricing Charge. -
visibility:
string()
Title:
VisibilityIndicates whether the Charge Attribute is visible in Administration or Runtime.
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 Attribute 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/chargeAttributes
Request Body Sample
{
"name": "New Charge Attribute",
"variableName": "newChargeAttribute_c",
"dataType": "String",
"required": false,
"active": true,
"visibility": "Runtime",
"negotiable": false
}Response Body Sample
{
"name": "New Charge Attribute",
"variableName": "newChargeAttribute_c",
"dateModified": "2023-09-21T19:45:22Z",
"dateAdded": "2023-09-21T19:45:22Z",
"dataType": "String",
"templateVariableKey": "Custom",
"orderNumber": 261,
"key": false,
"required": false,
"active": true,
"visibility": "Runtime",
"negotiable": false
}