Newer Version Available
CommerceStorePricing Class
Namespace
CommerceStorePricing Methods
getProductPrice(webstoreId, productId, effectiveAccountId)
API Version
49.0
Available to Guest Users
51.0
Requires Chatter
No
Signature
public static ConnectApi.ProductPrice getProductPrice(String webstoreId, String productId, String effectiveAccountId)
Parameters
Return Value
Type: ConnectApi.ProductPrice
Usage
This method respects buyer entitlements and only users entitled to view product and price data can access it.
To get price information, the context store and account must have 25 or fewer price books associated with them. To reduce the number of active price books for the account within the store, you can change the active status, modify valid dates, or remove assignments of price books.
getProductPrice(webstoreId, productId, effectiveAccountId, productSellingModelIds)
API Version
56.0
Available to Guest Users
56.0
Requires Chatter
No
Signature
public static ConnectApi.ProductPrice getProductPrice(String webstoreId, String productId, String effectiveAccountId, List<String> productSellingModelIds)
Parameters
Return Value
Type: ConnectApi.ProductPrice
getProductPrices(webstoreId, effectiveAccountId, pricingInput)
API Version
49.0
Available to Guest Users
51.0
Requires Chatter
No
Signature
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, ConnectApi.PricingInput pricingInput)
Parameters
- webstoreId
- Type: String
- ID of the webstore.
- effectiveAccountId
- Type: String
- ID of the buyer account or guest buyer profile for which the request is made. If null, the default value is determined from context.
- pricingInput
- Type: ConnectApi.PricingInput
- A ConnectApi.PricingInput body with the list of line items to price.
Return Value
Type: ConnectApi.PricingResult
Usage
This method respects buyer entitlements and only users entitled to view product and price data can access it.
To get price information, the context store and account must have 25 or fewer price books associated with them. To reduce the number of active price books for the account within the store, you can change the active status, modify valid dates, or remove assignments of price books.
getProductPrices(webstoreId, effectiveAccountId, productIds)
API Version
54.0
Available to Guest Users
54.0
Requires Chatter
No
Signature
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, List<String> productIds)
Parameters
Return Value
Type: ConnectApi.PricingResult
Usage
This method respects buyer entitlements and only users entitled to view product and price data can access it.
To get price information, the context store and account must have 25 or fewer price books associated with them. To reduce the number of active price books for the account within the store, you can change the active status, modify valid dates, or remove assignments of price books.