GET /price_check/:id/:quanitity

Get a price check on an item.

Request Parameters

Parameter Type Description Examples
id (required) BSON id The id of the variant which price need to be checked. 506bb8b357817e56bb000032
quantity (required) integer How many you want of a particular item variant 3

Response Parameters

Parameter Type Description
msg string Success or filure message. ‘OK’ on success ‘Price not found’ on failure.
price decimal The quoted price
price_ex decimal The quoted price excluding tax
tax decimal The amount of tax in the price quote
variant_id BSON id The id of the variant
item_id BSON id The id of the item
qty integer The number of items being quoted on
formatted_price string The price formatted as a currency string
formatted_price_ex string The price formatted as a currency string
has_saving boolean Is there a saving from the original price
original_selling_price decimal The original selling price
formatted_original_selling_price string The original selling price formatted as a currency string

Example

curl http://example.com/en/__/price_check/524ebb5f57817e9269001295/3.json

This will return the following JSON …

 1{
 2  msg: "OK",
 3  price: 8.47,
 4  price_ex: 7.7,
 5  tax: 0.77,
 6  variant_id: "524ebb5f57817e9269001295",        
 7  item_id: "524eb2e457817e92690000a3",
 8  qty: 1,
 9  formatted_price: "$8.47",
10  formatted_price_ex: "$7.70",
11  has_saving: false,
12  original_selling_price: 8.47,
13  formatted_original_selling_price: "$8.47"
14}