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

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 active account associated with the product.

Return Value

Type: ConnectApi.ProductPrice

getProductPrices(webstoreId, effectiveAccountId, pricingInput)

Get the price for multiple products.

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