LogoLogo
Get startedAPI reference
  • Get started
    • What is Hakuna?
    • How it works
  • Integration guides
    • Integrated checkout
    • Self-service checkout with Hakuna Redirect
    • Guided checkout with Hakuna Assist
    • Hakuna Assist for your sales app or CRM tool
    • Hakuna Redirect on the e-commerce order confirmation page
  • Sharing order events
    • Sharing order events with the Events API
    • Sharing order events via the Hakuna Shopify app
    • Sharing order events via CSV
  • Using the API
    • Authentication
    • Versioning
    • Environments
    • Responses
    • Testing
  • Resources
    • API reference
  • Help
    • Contact
Powered by GitBook
On this page
  • 1. Share order placement event
  • 2. Get information about available protection
  • 3. Use the information
  1. Integration guides

Self-service checkout with Hakuna Redirect

PreviousIntegrated checkoutNextGuided checkout with Hakuna Assist

Last updated 4 months ago

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 , our or . 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": "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"
    }
  ]
}

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.).

Events API
Shopify app
share them via CSV
Example Hakuna Redirect Checkout