Get Filterable Attributes
Return the filterable attributes that are applicable for this cart, including the product attributes and the product attribute values that the customer can choose to filter products.
This API supports the guest user enhancements that Salesforce introduced with the Winter ‘21 release. To encrypt and decrypt data for guest users, use the UserSecurity
class with this API. See Guest User Technical Details.
For additional information, see UserSecurity Class and CPQ and Digital Commerce Changes for Guest Users.
The getCartAttributes
performs these:
- Runs PCP validation if runPCP is true (from input).
- Validates attributes and adds error messages if includeMessages is true (from input).
- Does not support attribute overrides; it reads product attributes directly.
Communication (vlocity_cmt)
For API parameter names and descriptions, see Cart-Based API Swagger Reference.
Response Format | JSON |
---|---|
Resource URL | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/attributes |