Newer Version Available

This content describes an older version of this product. View Latest

CommerceStorePricing Class

Get product prices.

Namespace

ConnectApi

CommerceStorePricing Methods

These methods are for CommerceStorePricing. All methods are static.

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

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<String>
List of product selling model IDs for the product.

Return Value

Type: ConnectApi.ProductPrice

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

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.