Create a Part Price

post

/rest/v16/partSetups/{id}/prices

Use this endpoint to create a price for the specified CPQ part.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Part Prices Setup Create Request Definitions
Type: object
Title: Part Prices Setup Create Request Definitions
Show Source
Nested Schema : Price
Type: object
Title: Price
Price of the part.
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Part Price Setup Children Instance Definitions
Type: object
Title: Part Price Setup Children Instance Definitions
Show Source
Nested Schema : Price
Type: object
Title: Price
Price of the part.
Show Source
Back to Top

Examples

The following example shows how to create prices for the specified CPQ part 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/partSetups/38644116/prices

Request Body

{
  "price": {
    "value": 50.0,
    "currency": "USD"
  }
}

Request Body

{
  "price": {
    "value": 50.0,
    "currency": "USD"
  },
  "dateModified": "2023-03-07T17:44:44.000Z",
  "id": 38852265,
  "dateAdded": "2023-03-07T17:44:44.000Z",
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116/prices/38852265"
    }
  ]
}
Back to Top