Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Repricing Class
Namespace
Repricing Methods
productDetails(webstoreId, skuOrProductId, effectiveAccountId, currencyCode, locale)
API Version
55.0
Requires Chatter
No
Signature
public static ConnectApi.ProductDetailsOutputRepresentation productDetails(String webstoreId, String skuOrProductId, String effectiveAccountId, String currencyCode, String locale)
Parameters
- webstoreId
- Type: String
- ID of the WebStore.
- skuOrProductId
- Type: String
- SKU or ID of the Product.
- effectiveAccountId
- Type: String
- Effective Account ID. Required for B2B stores. For other stores, pass null.
- currencyCode
- Type: String
- ISO currency code. If you pass null, the default store value is used.
- locale
- Type: String
- Locale. If you pass null, the default store value is used.
- excludeAttributeSetInfo
- Type: Boolean
- Specifies whether the attribute set information for the product is returned.
- excludeBundleChildrenInfo
- Type: Boolean
- Specifies whether the child product information for the product bundle is returned.
- excludeMedia
- Type: String
- Specifies whether the media groups and default images of the product are returned.
- excludeQuantityRule
- Type: Boolean
- Specifies whether the quantity rule information for the product is returned.
- excludeVariationInfo
- Type: Boolean
- Specifies whether the variation information for the product is returned.
- excludePrices
- Type: Boolean
- Specifies whether the prices for the product is returned.
Return Value
searchProducts(webstoreId, searchTerm, pageParam, pageSize, effectiveAccountId, facets)
API Version
59.0
Requires Chatter
No
Signature
public static ConnectApi.ProductSearchOutputRepresentation searchProducts(String webstoreId, String searchTerm, Integer pageParam, Integer pageSize, String effectiveAccountId, String facets)
Parameters
- webstoreId
- Type: String
- ID of the webstore.
- searchTerm
- Type: String
- Term used for the search.
- pageParam
- Type: Integer
- Maximum number of search results pages to return. If you don't specify a value, the default is 1.
- pageSize
- Type: Integer
- Number of items per page. Valid values are from 1 through 100. If you don’t specify a value, the default size is 20.
- effectiveAccountId
- Type: String
- ID of the account for which the request is made.If unspecified, defaults to the account ID for the context user.
- facets
- Type: String
- A list of facet names to filter the search.For example, ["size_medium", "color_red"]is encoded to WyJzaXplX21lZGl1bSIsICJjb2xvcl9yZWQiXQ==