Newer Version Available
CommerceStorePricing Class
Get product prices.
Namespace
CommerceStorePricing Methods
These methods are for CommerceStorePricing. All
methods are static.
getProductPrice(webstoreId, productId, effectiveAccountId)
API Version
49.0
Requires Chatter
No
Signature
public static ConnectApi.ProductPrice getProductPrice(String webstoreId, String productId, String effectiveAccountId)
Parameters
Return Value
Type: ConnectApi.ProductPrice
getProductPrices(webstoreId, effectiveAccountId, pricingInput)
API Version
49.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 account for which the request is made. If null, defaults to the account ID for the context user.
- 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.