# Guided checkout with Hakuna Assist

With this solution, you can make it easier for your sales and support staff to sell product protection to your customers by displaying information about available plans for purchased products with links to pre-filled Hakuna Assist checkouts in your sales app or CRM tool.

## 1. Share order placement event

When an order is placed in your system, you will need to publish an order placement event so that we can match all unprotected products in the order with protection plans. To do this, you can use our [Events API](/sharing-order-events/sharing-order-events-with-the-events-api.md), our [Shopify app](/sharing-order-events/sharing-order-events-via-the-hakuna-shopify-app.md) or [share them via CSV](/sharing-order-events/sharing-order-events-via-csv.md). Please refer to the linked guides to find out more information about the individual requirements for each option.

{% hint style="info" %}
Keep in mind that if you decide to share order placements via CSV, you will not be able to request checkouts for orders in real-time.
{% endhint %}

## 2. Get information about available protection

To find out which products have protection plans available and to get information about them, call our checkouts endpoint and pass us the order ID in an HTTP GET request, specifying the checkout type, which in this case would be Assist. `GET /checkouts?order_id=order-123&checkout_type=assist`

<details>

<summary>Example response</summary>

```json
{
  "order_id": "ord-123",
  "assist_link": "https://assist.hellohakuna.com/4U67zMrqGhqq",
  "available_plans": [
    {
      "line_item_id": "line-item-id-3322",
      "product_reference": "prd-iphone14",
      "plan_price_amount": 8499,
      "plan_price_currency": "eur"
    },
    {
      "line_item_id": "line-item-id-4422",
      "product_reference": "prd-airpods-gen3",
      "plan_price_amount": 3999,
      "plan_price_currency": "eur"
    }
  ]
}
```

</details>

The response contains a link to a uniquely generated Hakuna Assist checkout with pre-filled order and customer information.&#x20;

<figure><img src="/files/udMN4rGGKZYSCsfyiPNo" alt="" width="375"><figcaption><p>Example Hakuna Assist Checkout</p></figcaption></figure>

{% hint style="info" %}
If a line item is not listed in the response, then there is no plan available for that product. If there are no plans available for any of the products in the order, then you will get a 404 error response.
{% endhint %}

## 3. Display the information

Display the information in your sales app or CRM tool.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hellohakuna.com/integration-guides/guided-checkout-with-hakuna-assist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
