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
- application/json
Path Parameters
-
id(required): integer
The unique identifier for the part.
Root Schema : Part Prices Setup Create Request Definitions
Type:
object
Title:
Show Source
Part Prices Setup Create Request Definitions
-
dateAdded:
string
Title:
Date Added
System field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date Modified
System field indicating the date on which the Resource was last modified. -
id:
integer
Title:
Id
Primary Key of the Resource -
price:
object Price
Title:
Price
Price of the part.
Nested Schema : Price
Type:
object
Title:
Price
Price of the part.
Show Source
-
currency:
string
Title:
currency
-
value:
number
Title:
value
Response
Supported Media Types
- application/json
Default Response
Root Schema : Part Price Setup Children Instance Definitions
Type:
object
Title:
Show Source
Part Price Setup Children Instance Definitions
-
dateAdded:
string
Title:
Date Added
System field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date Modified
System field indicating the date on which the Resource was last modified. -
id:
integer
Title:
Id
Primary Key of the Resource -
price:
object Price
Title:
Price
Price of the part.
Nested Schema : Price
Type:
object
Title:
Price
Price of the part.
Show Source
-
currency:
string
Title:
currency
-
value:
number
Title:
value
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" } ] }