Self-service checkout with Hakuna Redirect

With this solution, you can give your customers the opportunity to purchase product protection for all protectable products in their orders by redirecting them to individual Hakuna-hosted Redirect checkouts from the order confirmation page, emails, apps, etc.

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, our Shopify app or share them via CSV. Please refer to the linked guides to find out more information about the individual requirements for each option.

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.

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 Redirect. GET /checkouts?order_id=order-123&checkout_type=redirect

Example response
{
  "order_id": "ord-123",
  "redirect_link": "https://checkout.hellohakuna.com/X2Y45347GXai",
  "available_plans": [
    {
      "line_item_id": "li-1",
      "product_reference": "prd-123",
      "plan_price_amount": 4999,
      "plan_price_currency": "eur"
    },
    {
      "line_item_id": "li-2",
      "product_reference": "prd-321",
      "plan_price_amount": 8999,
      "plan_price_currency": "eur"
    }
  ]
}

The response contains a checkout link which is uniquely generated for each order.

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.

3. Use the information

Use the information to build a CTA wherever you want to offer product protection to your customers (e.g. the order confirmation page, emails, apps, etc.).

Last updated