Category Details (POST)

Get details of a category for a specified category ID. This API is a composite API for Product Discovery.

Resource 

1/connect/cpq/categories/{categoryId}

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/cpq/categories/{0ZGxx000000001dGAA}

Available Version 

60.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2  "correlationId": "9cbb9650-48c5-11ed-96d1-0afcf185843b",
3  "userContext": {
4      "accountId": "001xx0000000001AAA",
5      "contactId": "003xx00000000D7AAI"
6  }
7}

This example shows a sample request to get category details with eligible promotions.

1{
2  "correlationId": "9cbb9650-48c5-11ed-96d1-0afcf185843b",
3  "userContext": {
4    "accountId": "001xx0000000001AAA",
5    "contactId": "003xx00000000D7AAI"
6  },
7  "usePromotions": true
8}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
additional​ContextDataContext Data InputAdditional nodes that are added to the custom or default context definition. The maximum number of supported nodes is 10.Optional60.0
catalog​IdStringID of the catalog. If the catalog ID is specified, then the API returns the list of offers from the catalog with the pricing details related to the catalog.Optional60.0
context​DefinitionStringAPI name of the custom context definition that’s sent for context creation. If this property isn’t specified, then the default context definition is used.Optional60.0
context​MappingStringDefault context mapping of the context definition. If a context mapping is specified, then the API checks whether the mapping belongs to the specified context definition to process the details for hydration.Optional60.0
customFieldsString[]List of category fields to retrieve in the response.Optional60.0
correlation​IdStringUnique identifier value that’s attached to the requests and messages, and accepts references to a particular transaction or event chain.Optional60.0
enable​QualificationBooleanIndicates whether to enable qualification rules for the categories ( true ) or not ( false ). The default value is true. The Qualification Procedure toggle from the Product Discovery Settings page from Setup overrides this property. For example, if the Qualification Procedure toggle is disabled, then setting the enableQualification property to true has no effect and the qualificationContext property in the API response isn’t returned.Optional60.0
filterFilter InputFilters records based on supported criteria. The supported property is name. The supported operators are eq; in; contains; gt—Specifies a greater than criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only; lt—Specifies a less than criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only; gte—Specifies a greater than or equal to criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only; or lte—Specifies a less than or equal to criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only. If multiple criteria are specified, then the resultant criteria are combined by using the and operator.Optional60.0
qualification​ProcedureStringAPI name of the custom qualification procedure that’s used for the qualification process. If this property isn’t specified, then the default qualification procedure is executed.Optional60.0
user​ContextUser Context InputUser context details. For example, account ID or contact ID.Optional60.0
usePromotionsBooleanIndicates whether to fetch eligible promotions from Global Promotion Management (GPM) for the requested category and its products (true) or not (false). If Promotion feature is enabled in the org and this property isn’t specified, then the default value is true. If the Promotion feature isn’t enabled, the default value is false.Optional66.0

Response Body for POST 

CPQ Base Details