# Insuring Orders Insuring a customer's order with Onward is a 3-step process: 1. Get a Quote from Onward during checkout and add that amount to the customer's cart 2. Create the Order with Onward after checkout is complete 3. Keep Onward up-to-date with shipping progress ## Step 1: Get a Quote in Checkout When your customer initiates checkout, your backend calls Onward's "Get an insurance quote" endpoint with the cart total. In response, Onward provides the price of the insurance premium and a unique token to identify this quote. Add this amount as a line item to the customer's cart and store the token as you'll need it on the next step. Flow diagram Selling digital goods? Onward's Shipping Protection only applies to physical goods that require shipping. You only need to insure the total price of shippable goods in the order and should not include digital goods in the `amount_insured`. ### Checkout UI You have full control over how you present the insurance premium to the customer in checkout. Some best practices include: * Make the benefits clear * Default on: the customer must opt-out of Protection * Show the premium price Example of presenting Onward in your Checkout UI ## Step 2: Create the Order with Onward Once the customer has completed checkout and you have an order in your system, use the "Create an order" endpoint to send Onward the information needed to protect that order and handle customer claims. Here you'll provide the token received from the Quote API in the `purchased_quote_token` field. Flow diagram ## Step 3: Send Shipments to Onward In order for Onward to guarantee shipping, we need to know about the shipping progress of all shipments related to an order. When you create one or many shipments for an order, use the "Create a shipment" endpoint to send that shipment information to Onward. Flow diagram And as you receive tracking updates from the courier, use the "Create a shipment event" endpoint to send those to Onward as well.