CommerceStorePricing Class
Get product prices.
These methods are for CommerceStorePricing. All methods are static.
-
getProductPrice(webstoreId, productId, effectiveAccountId)
Get the list and buyer price for a product.
-
getProductPrice(webstoreId, productId, effectiveAccountId, productSellingModelIds)
Get a product’s list and buyer price for specified product selling models.
-
getProductPrices(webstoreId, effectiveAccountId, productIds)
Get the prices for multiple products using multiple product IDs.
-
getProductPrices(webstoreId, effectiveAccountId, productIds, currencyIsoCode)
Get the prices for multiple products using multiple product IDs and a currency ISO code.
-
getProductPrices(webstoreId, effectiveAccountId, pricingInput)
Get the prices for multiple products.
-
getProductPrices(webstoreId, effectiveAccountId, pricingInput, currencyIsoCode)
Get the prices for multiple products using a currency ISO code.
Get the list and buyer price for a product.
49.0
51.0
No
public static ConnectApi.ProductPrice getProductPrice(String webstoreId, String productId, String effectiveAccountId)
- webstoreId
Type: String
ID of the webstore.
- productId
Type: String
ID of the product.
- effectiveAccountId
Type: String
ID of the buyer account or guest buyer profile for which the request is made.
Type: ConnectApi.ProductPrice
This method respects buyer entitlements and only users entitled to view product and price data can access it.
If a store is segmented into markets, this API looks at the language parameter appended to the URL to determine the shopper’s locale and returns the appropriate values.
Get a product’s list and buyer price for specified product selling models.
56.0
56.0
No
public static ConnectApi.ProductPrice getProductPrice(String webstoreId, String productId, String effectiveAccountId, List<String> productSellingModelIds)
- webstoreId
Type: String
ID of the webstore.
- productId
Type: String
ID of the product.
- effectiveAccountId
Type: String
ID of the buyer account or guest buyer profile for which the request is made.
- productSellingModelIds
Type: List<String>
List of product selling model IDs for the product.
Type: ConnectApi.ProductPrice
Get the prices for multiple products using multiple product IDs.
54.0
54.0
No
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, List<String> productIds)
- 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.- productIds
Type: List<String>
List of product IDs for which you want to get prices.
Type: ConnectApi.PricingResult
This method respects buyer entitlements and only users entitled to view product and price data can access it.
If a store is segmented into markets, this API looks at the language parameter appended to the URL to determine the shopper’s locale and returns the appropriate values.
Get the prices for multiple products using multiple product IDs and a currency ISO code.
57.0
57.0
No
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, List<String> productIds, String currencyIsoCode)
- 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.- productIds
Type: List<String>
List of product IDs for which you want to get prices.
- currencyIsoCode
Type: String
The currency ISO code of the products.
Type: ConnectApi.PricingResult
This method respects buyer entitlements and only users entitled to view product and price data can access it.
If a store is segmented into markets, this API looks at the language parameter appended to the URL to determine the shopper’s locale and returns the appropriate values.
Get the prices for multiple products.
49.0
51.0
No
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, ConnectApi.PricingInput pricingInput)
- 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.PricingInputA
ConnectApi.PricingInputbody with the list of line items to price.
Type: ConnectApi.PricingResult
This method respects buyer entitlements and only users entitled to view product and price data can access it.
If a store is segmented into markets, this API looks at the language parameter appended to the URL to determine the shopper’s locale and returns the appropriate values.
Get the prices for multiple products using a currency ISO code.
57.0
57.0
No
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, ConnectApi.PricingInput pricingInput, String currencyIsoCode)
- 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.PricingInputA
ConnectApi.PricingInputbody with the list of line items to price.- currencyIsoCode
Type: String
The currency ISO code of the products.
Type: ConnectApi.PricingResult
This method respects buyer entitlements and only users entitled to view product and price data can access it.
If a store is segmented into markets, this API looks at the language parameter appended to the URL to determine the shopper’s locale and returns the appropriate values.