Get All Parts

get

/rest/v16/partSetups

Use this endpoint to retrieve a list of all CPQ parts.

Request

Supported Media Types
Query Parameters
  • Allows expansion of relationships.
  • 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 Setup Collection Definitions
Type: object
Title: Part Setup Collection Definitions
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Part Setup Instance Definitions
Type: object
Title: Part Setup Instance Definitions
Show Source
Nested Schema : Product type
Type: object
Title: Product type
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Part Availability
Type: object
Title: Part Availability
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Price Period
Type: object
Title: Price Period
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Price Type
Type: object
Title: Price Type
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Direct Buy
Type: object
Title: Direct Buy
Determines how the part must be purchased.
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Back to Top

Examples

The following example shows how to retrieve all CPQ parts 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"
https://sitename.oracle.com/rest/v16/partSetups?limit=3

Response Body

{
  "offset": 0,
  "limit": 3,
  "count": 3,
  "hasMore": true,
  "links": [{
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v16/partSetups"
    }, {
      "rel": "next",
      "href": "https://sitename.oracle.com/rest/v16/partSetups?limit=3&offset=3"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/partSetups?limit=3&offset=0"
    }
  ],
  "items": [{
      "eligibleForService": null,
      "partnerPartId": null,
      "directBuy": {
        "lookupCode": "1",
        "displayValue": "Direct Buy",
        "id": 36549639,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PARTS_DIRECT_BUY%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/36549639"
          }
        ]
      },
      "defaultUOMCode": null,
      "description": null,
      "enableSelfService": null,
      "leadTime": -1,
      "units": null,
      "_part_custom_field10": {
        "lookupCode": "External",
        "displayValue": "External",
        "id": 38272229,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22_PART_field10%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/38272229"
          }
        ]
      },
      "eligibleToSell": null,
      "dateAdded": "2017-10-19T01:28:51.000Z",
      "partnerStandardPriceBookEntryId": null,
      "_part_custom_field9": null,
      "id": 36551467,
      "_part_custom_field3": null,
      "_part_custom_field4": null,
      "_part_custom_field1": null,
      "_part_custom_field2": null,
      "_part_custom_field8": null,
      "_part_custom_field5": 0.0,
      "salesProductType": null,
      "priceType": null,
      "numberOfPricePeriods": 0,
      "dateModified": "2021-04-19T12:10:26.000Z",
      "partnerOrganizationId": null,
      "partDisplayNumber": "Green Server",
      "pricePeriod": null,
      "partNumberLower": "gs5004",
      "partNumber": "GS5004",
      "externalKey1": null,
      "externalKey2": null,
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36551467"
        }, {
          "kind": "",
          "rel": "child",
          "name": "extendedDescriptions",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36551467/extendedDescriptions"
        }, {
          "kind": "",
          "rel": "child",
          "name": "prices",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36551467/prices"
        }, {
          "kind": "",
          "rel": "child",
          "name": "translations",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36551467/translations"
        }
      ]
    }, {
      "eligibleForService": null,
      "partnerPartId": null,
      "directBuy": {
        "lookupCode": "1",
        "displayValue": "Direct Buy",
        "id": 36549639,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PARTS_DIRECT_BUY%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/36549639"
          }
        ]
      },
      "defaultUOMCode": null,
      "description": null,
      "enableSelfService": null,
      "leadTime": -1,
      "units": null,
      "_part_custom_field10": {
        "lookupCode": "External",
        "displayValue": "External",
        "id": 38272229,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22_PART_field10%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/38272229"
          }
        ]
      },
      "eligibleToSell": null,
      "dateAdded": "2017-11-13T13:57:14.000Z",
      "partnerStandardPriceBookEntryId": null,
      "_part_custom_field9": null,
      "id": 36594573,
      "_part_custom_field3": null,
      "_part_custom_field4": null,
      "_part_custom_field1": null,
      "_part_custom_field2": null,
      "_part_custom_field8": {
        "lookupCode": "One Time",
        "displayValue": "One Time",
        "id": 36657633,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22_PART_field8%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/36657633"
          }
        ]
      },
      "_part_custom_field5": 50.0,
      "salesProductType": null,
      "priceType": null,
      "numberOfPricePeriods": 0,
      "dateModified": "2021-04-19T12:10:26.000Z",
      "partnerOrganizationId": null,
      "partDisplayNumber": "Vario Tablet",
      "pricePeriod": null,
      "partNumberLower": "vario tablet custom",
      "partNumber": "Vario Tablet Custom",
      "externalKey1": null,
      "externalKey2": null,
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594573"
        }, {
          "kind": "",
          "rel": "child",
          "name": "extendedDescriptions",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594573/extendedDescriptions"
        }, {
          "kind": "",
          "rel": "child",
          "name": "prices",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594573/prices"
        }, {
          "kind": "",
          "rel": "child",
          "name": "translations",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594573/translations"
        }
      ]
    }, {
      "eligibleForService": null,
      "partnerPartId": null,
      "directBuy": {
        "lookupCode": "1",
        "displayValue": "Direct Buy",
        "id": 36549639,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_PARTS_DIRECT_BUY%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/36549639"
          }
        ]
      },
      "defaultUOMCode": null,
      "description": "Quad Core 1.9 GHz",
      "enableSelfService": null,
      "leadTime": -1,
      "units": null,
      "_part_custom_field10": {
        "lookupCode": "External",
        "displayValue": "External",
        "id": 38272229,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22_PART_field10%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/38272229"
          }
        ]
      },
      "eligibleToSell": null,
      "dateAdded": "2017-11-13T13:57:56.000Z",
      "partnerStandardPriceBookEntryId": null,
      "_part_custom_field9": null,
      "id": 36594576,
      "_part_custom_field3": null,
      "_part_custom_field4": null,
      "_part_custom_field1": null,
      "_part_custom_field2": null,
      "_part_custom_field8": {
        "lookupCode": "One Time",
        "displayValue": "One Time",
        "id": 36657633,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22_PART_field8%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v16/lookupValues/36657633"
          }
        ]
      },
      "_part_custom_field5": 20.0,
      "salesProductType": null,
      "priceType": null,
      "numberOfPricePeriods": 0,
      "dateModified": "2021-04-19T12:10:26.000Z",
      "partnerOrganizationId": null,
      "partDisplayNumber": "Quad Core 1.9 GHz",
      "pricePeriod": null,
      "partNumberLower": "cpu-100m-19",
      "partNumber": "CPU-100M-19",
      "externalKey1": null,
      "externalKey2": null,
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594576"
        }, {
          "kind": "",
          "rel": "child",
          "name": "extendedDescriptions",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594576/extendedDescriptions"
        }, {
          "kind": "",
          "rel": "child",
          "name": "prices",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594576/prices"
        }, {
          "kind": "",
          "rel": "child",
          "name": "translations",
          "href": "https://sitename.oracle.com/rest/v16/partSetups/36594576/translations"
        }
      ]
    }
  ]
}
Back to Top