Newer Version Available
Commerce Webstore Pricing 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.
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.
- 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
-
- 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 pricingLineItems Pricing Line Item Input[] Up to 500 line items for pricing. Required 49.0
- Request parameters for POST
- Response body for GET and POST
- Pricing Result