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_activemust betruepre_order.user_emailmust be set
Skip Conditions:
Always auto-processed when preconditions are met (
is_already_donereturnstruewheneverGIFT_BOX_CONFIGURATIONS.is_activeistrue)
Configuration:
GIFT_BOX_CONFIGURATIONS: Controls whether the gift box flow is enabled. Whenis_activeisfalse, this page andGiftBoxPageare both inaccessible.
Next Pages (determined dynamically):
GiftBoxPage— always, when preconditions are met
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Gift box index page context retrieved
GET /orders/checkout/?page=GiftBoxIndexPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
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?

