# Get an insurance quote During check out, get the insurance quote amount for the cart and add that amount to the order. Endpoint: POST /quotes Version: 1.0.0 Security: api_key ## Header parameters: - `Content-Type` (string, required) Content-Type must be application/json Example: "application/json" - `Accept` (string, required) Accept must be application/json Example: "application/json" ## Request fields (application/json): - `cart` (object, required) - `cart.amount_insured` (any, required) Sum of shippable line items that are being insured Example: {"cents":1999,"currency":"USD"} ## Response 200 fields (application/json): - `id` (string) Onward's ID for this Quote Example: "8c0d0946dc595ecfe090ef85" - `token` (string) Tokenized reference to this Quote that you will use when creating the insured Order after checkout Example: "c0740f7e3d4718a64fd9ce18101961d210d1c61c8c8afd62f95d62d8c433347b$$qkJClv/+sWfpOfPqp4sI46PxzBuBCW4eEDKsL4q87aFhRT9mdCpIuEWwuRuvbkX4BS8=--AUnUz8WgunyUiZ4o--nnYz0Lj5WsxSqsUxtBpIIQ==" - `price` (any) Price of insurance to be charged to the customer Example: {"cents":500,"currency":"USD"} - `variant` (object) (Only included for Shopify shops) The Shopify Variant to add to cart in order to purchase this Quote - `variant.id` (integer) Shopify ID for the Variant - `variant.sku` (string) Shopify SKU for the Variant ## Response 422 fields (application/json): - `error` (array) Array of errors. Each error contains the field in the beginning followed by the issue found. Example: ["Name is required"]