Newer Version Available

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

Commerce Webstore Pricing Products

Get the prices for multiple products.

Getting prices for products respects buyer entitlements and only users entitled to view product and price data can access it.

To get price information, the context store and account must have 25 or fewer price books associated with them. To reduce the number of active price books for the account within the store, you can change the active status, modify valid dates, or remove assignments of price books.

Resource
1/commerce/webstores/webstoreId/pricing/products
Available version
49.0
Requires Chatter
No
HTTP methods
GET, POST

POST methods typically create an item, but for this resource POST is used to retrieve information. Both POST and GET retrieve the same information. However, GET calls can be cached.

Request parameters for GET
Parameter Name Type Description Required or Optional Available Version
effective​AccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 54.0
productIds String[] List of product IDs for which you want to get prices. Required 54.0
Request body for POST
Root XML tag
<PricingInput>
JSON example
1{
2   "pricingLineItems":[
3      {
4         "productId":"01txx000000000V"
5      },
6      {
7         "productId":"01txx000000000W"
8      },
9      {
10         "productId":"01txx000000000A"
11      }
12   ]
13}
Properties
Name Type Description Required or Optional Available Version
pricingLine​Items Pricing Line Item Input[] Up to 500 line items for pricing. Required 49.0
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
effective​AccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 49.0
Response body for GET and POST
Pricing Result