Add Customer Specific Condition

post

/rest/v16/pricingSetup/rules/{ruleVarName}/customerSpecificConditions

Use this endpoint to add a customer specific condition.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : PricingCustomerSpecificCondition
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 : PricingCustomerSpecificCondition
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 customer-specific condition for the specified pricing rule in Pricing Engine 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/rules/newCSPPricingRule/customerSpecificConditions

Request Body Sample

{
  "active": true,
  "customerId": "1001",
  "customerName": "ABC Solutions, Inc.",
  "startDate": "2023-01-01T06:00:00Z",
  "endDate": "2023-01-31T06:00:00Z"
}

Response Body Sample

{
  "id": 38824940,
  "active": true,
  "customerId": "1001",
  "customerName": "ABC Solutions, Inc.",
  "startDate": "2023-01-01T06:00:00Z",
  "endDate": "2023-01-31T06:00:00Z",
  "dateModified": "2022-12-02T17:43:22Z",
  "dateAdded": "2022-12-02T17:43:22Z"
}
Back to Top