Submit Gift Box Index Page
Clears the current gift box selection from the pre-order and proceeds to GiftBoxPage. This endpoint accepts no input fields.
Typically called during backward navigation to allow the user to re-select a gift box option.
State Update:
pre_order.gift_boxis set tonull, removing any previously selected gift box
Backward Navigation:
Submitting this page resets the gift box selection, allowing a fresh choice on
GiftBoxPage
Next Pages:
GiftBoxPage
post
Header parameters
x-requested-withstring · enumRequiredDefault:
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: CookiestringOptional
Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Responses
200
Gift box cleared, routed to GiftBoxPage
application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=GiftBoxIndexPage
POST /orders/checkout/?page=GiftBoxIndexPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200
Gift box cleared, routed to GiftBoxPage
{
"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?

