Get Insurance Quote
Retrieves insurance pricing rules.
A range of pricing rules is returned, and the logic to determine which rule to use should be handled on the client side.
The store_url
is the URL of the store to get insurance quote for, e.g. docs.orderprotection.com
.
Example
If the subtotal (the price before add-ons and shipping) is $1,000
, and one of the pricing rules specifies a minimum of $0
and a maximum of $5,000
, this rule should be applied to calculate the price of Order Protection, as the subtotal falls within the specified range.
Notes
-
The amounts in pricing rules are always in
USD
. If the subtotal is in a different currency, the amount should be converted to the cart’s currency using the current exchange rate. -
The
rules
array is sorted bymin
in ascending order. -
If the pricing rule has a type of
brand
, Order Protection should not be added to the cart.
Path Parameters
URL of the store to get insurance quote for
Response
Successfully retrieved insurance quote
The response is of type object
.