For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Gift Box Index Page context

Entry point for the gift box selection flow. Clears any previously selected gift box from the pre-order and routes immediately to GiftBoxPage.

This page is automatically processed (skipped) whenever its preconditions are met — it is never rendered directly. Upon access, the gift box selection is cleared and the response context reflects GiftBoxPage.

Preconditions:

  • GIFT_BOX_CONFIGURATIONS.is_active must be true

  • pre_order.user_email must be set

Skip Conditions:

  • Always auto-processed when preconditions are met (is_already_done returns true whenever GIFT_BOX_CONFIGURATIONS.is_active is true)

Configuration:

  • GIFT_BOX_CONFIGURATIONS: Controls whether the gift box flow is enabled. When is_active is false, this page and GiftBoxPage are both inaccessible.

Next Pages (determined dynamically):

  • GiftBoxPage — always, when preconditions are met

get
Header parameters
x-requested-withstring · enumRequired

Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.

Default: XMLHttpRequestPossible values:
CookiestringOptional

Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)

Responses
200

Gift box index page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=GiftBoxIndexPage
GET /orders/checkout/?page=GiftBoxIndexPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

Gift box index page context retrieved

{
  "context_list": [
    {
      "page_name": "GiftBoxPage",
      "page_slug": "giftboxpage",
      "page_context": {
        "price": "5.00"
      }
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com",
    "gift_box": null
  },
  "errors": {},
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?