Add Charge Attribute

post

/rest/v16/pricingSetup/chargeAttributes

Use this endpoint to add a pricing charge attribute.

Request

Supported Media Types
Body ()
Root Schema : ChargeAttribute
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 : ChargeAttribute
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 Attribute 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/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
}
Back to Top