---
schema_version: "1"
id: 5ff5b94c5321cd1896103ac00ab0df9cd546cf83b4c036840d234e37f84bd95b
title: CommerceStorePricing Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1952fbb6d714806f62f6823b9802e81a1d0f0bcd69c80370c6dee2c7750b5e19
description: Get product prices.These methods are for CommerceStorePricing. All methods are static.Get the list and buyer price for a product.Get a product’s list and buyer price for specified product selling models.Get the prices for multiple products using multiple product IDs.Get the prices for multiple products using multiple product IDs and a currency ISO code.Get the prices for multiple products.Get the prices for multiple products using a currency ISO code.
---
# CommerceStorePricing Class

Get product prices.

## Namespace

[ConnectApi](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_connect_api.htm "The ConnectApi namespace (also called Connect in Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in Apex to create custom experiences in Salesforce.")

## CommerceStorePricing Methods

These methods are for CommerceStorePricing. All methods are static.

- **[getProductPrice(webstoreId, productId, effectiveAccountId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm#apex_ConnectAPI_CommerceStorePricing_getProductPrice_1)**  
    Get the list and buyer price for a product.
- **[getProductPrice(webstoreId, productId, effectiveAccountId, productSellingModelIds)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm#apex_ConnectAPI_CommerceStorePricing_getProductPrice_2)**  
    Get a product’s list and buyer price for specified product selling models.
- **[getProductPrices(webstoreId, effectiveAccountId, productIds)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm#apex_ConnectAPI_CommerceStorePricing_getProductPrices_1)**  
    Get the prices for multiple products using multiple product IDs.
- **[getProductPrices(webstoreId, effectiveAccountId, productIds, currencyIsoCode)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm#apex_ConnectAPI_CommerceStorePricing_getProductPrices_2)**  
    Get the prices for multiple products using multiple product IDs and a currency ISO code.
- **[getProductPrices(webstoreId, effectiveAccountId, pricingInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm#apex_ConnectAPI_CommerceStorePricing_getProductPrices_3)**  
    Get the prices for multiple products.
- **[getProductPrices(webstoreId, effectiveAccountId, pricingInput, currencyIsoCode)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceStorePricing_static_methods.htm#apex_ConnectAPI_CommerceStorePricing_getProductPrices_4)**  
    Get the prices for multiple products using a currency ISO code.

### getProductPrice(webstoreId, productId, effectiveAccountId)

Get the list and buyer price for a product.

#### 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

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.

#### Return Value

Type: [ConnectApi.ProductPrice](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_product_price.htm "Pricing information for a product.")

#### Usage

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.

### getProductPrice(webstoreId, productId, effectiveAccountId, productSellingModelIds)

Get a product’s list and buyer price for specified product selling models.

#### 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

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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String>

List of product selling model IDs for the product.

#### Return Value

Type: [ConnectApi.ProductPrice](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_product_price.htm "Pricing information for a product.")

### getProductPrices(webstoreId, effectiveAccountId, productIds)

Get the prices for multiple products using multiple product IDs.

#### 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

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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String>

List of product IDs for which you want to get prices.

#### Return Value

Type: [ConnectApi.PricingResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_pricing_result.htm "Product pricing result.")

#### Usage

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.

### getProductPrices(webstoreId, effectiveAccountId, productIds, currencyIsoCode)

Get the prices for multiple products using multiple product IDs and a currency ISO code.

#### API Version

57.0

#### Available to Guest Users

57.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, List<String\> productIds, String currencyIsoCode)

#### 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.

productIds

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String>

List of product IDs for which you want to get prices.

currencyIsoCode

Type: String

The currency ISO code of the products.

#### Return Value

Type: ConnectApi.PricingResult

#### Usage

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.

### getProductPrices(webstoreId, effectiveAccountId, pricingInput)

Get the prices for multiple products.

#### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_pricing.htm "Pricing for multiple products.")

A ConnectApi.PricingInput body with the list of line items to price.

#### Return Value

Type: [ConnectApi.PricingResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_pricing_result.htm "Product pricing result.")

#### Usage

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.

### getProductPrices(webstoreId, effectiveAccountId, pricingInput, currencyIsoCode)

Get the prices for multiple products using a currency ISO code.

#### API Version

57.0

#### Available to Guest Users

57.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, ConnectApi.PricingInput pricingInput, String currencyIsoCode)

#### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_pricing.htm "Pricing for multiple products.")

A ConnectApi.PricingInput body with the list of line items to price.

currencyIsoCode

Type: String

The currency ISO code of the products.

#### Return Value

Type: ConnectApi.PricingResult

#### Usage

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.