Get All Prices for Part

get

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

Use this endpoint to retrieve all prices for the specified CPQ part.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of pairs to order the response by.
  • Allows to specify one or more filtering criteria. By default, no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Part Price Collection Definitions
Type: object
Title: Part Price Collection Definitions
Show Source
Nested Schema : items
Type: array
Show Source
Nested 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 retrieve all prices for the specified CPQ part by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
http://sitename.oracle.com/rest/v16/partSetups/38644116/prices

Response Body

{
  "hasMore": false,
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116/prices"
    }
  ],
  "items": [{
      "price": {
        "value": 125.0,
        "currency": "USD"
      },
      "dateModified": "2023-03-07T18:21:22.000Z",
      "id": 38852302,
      "dateAdded": "2023-03-07T18:21:22.000Z",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116/prices/38852302"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116"
        }
      ]
    }, {
      "price": {
        "value": 11800.0,
        "currency": "EUR"
      },
      "dateModified": "2023-03-07T18:21:22.000Z",
      "id": 38852300,
      "dateAdded": "2023-03-07T18:21:22.000Z",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116/prices/38852300"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116"
        }
      ]
    }, {
      "price": {
        "value": 105.0,
        "currency": "GBP"
      },
      "dateModified": "2023-03-07T18:21:22.000Z",
      "id": 38852301,
      "dateAdded": "2023-03-07T18:21:22.000Z",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116/prices/38852301"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/38644116"
        }
      ]
    }
  ]
}
Back to Top