Get Prices (Batch)
POST /stores/{store_hash}/v3/pricing/products
Request
Calculate batch pricing for products for a specific channel, currency, and customer group.
Limits
- Limit of 50 concurrent requests.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
Body
object | application/json
channel_idinteger
requiredThe channel context that pricing should be evaluated within. The default BC storefront is channel 1
Example: 1
currency_codestring
requiredThe currency of prices to be returned for this request
Example: USD
customer_group_idinteger
requiredThe customer group relevant for any customer group pricing, tax values, etc.
itemsarray[object]
requiredThe items to fetch prices for
example
{ "channel_id": 1, "currency_code": "USD", "customer_group_id": 0, "items": [ { "product_id": 0, "variant_id": 0, "options": [ { "option_id": 0, "value_id": 0 } ] } ] }
Response
OK
Body
object | application/json
Note that a storeʼs tax settings may affect the calculations for tax_inclusive
and tax_exclusive
prices.
dataarray[object]
metaobject
Response metadata.
example
{ "data": [ { "product_id": 1, "variant_id": 1, "options": [ { "option_id": 1, "value_id": 1 } ], "retail_price": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "sale_price": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "minimum_advertised_price": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "price": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "calculated_price": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "price_range": { "minimum": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "maximum": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 } }, "retail_price_range": { "minimum": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 }, "maximum": { "as_entered": 1.5, "entered_inclusive": true, "tax_exclusive": 1.1, "tax_inclusive": 1.5 } }, "bulk_pricing": [ { "minimum": 1, "maximum": 1, "discount_amount": 1, "discount_type": "percent" } ] } ], "meta": {} }