Submit Gift Box Page
Saves the gift box selection to the pre-order with the provided note and video preferences, then proceeds to the next checkout step.
All fields are optional. Submitting without any fields creates a gift box with no note and no video.
Required Fields:
None — all fields are optional
Validation:
note: maximum 160 characters;nulland empty string are accepted
State Update:
pre_order.gift_boxis populated with the submittednote,gift_video, andgift_video_notification_sentvalues. The gift box product is resolved fromGIFT_BOX_CONFIGURATIONS.sku.
Backward Navigation:
Navigating back to
GiftBoxIndexPageclearspre_order.gift_box, resetting the selection
Next Pages:
Proceeds to the next applicable checkout step
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>)
An optional personal message to include with the gift box.
Maximum 160 characters. Accepts null and empty string.
Happy Birthday! Wishing you all the best.When true, a gift video is requested for this order.
trueIndicates whether the gift video notification has already been sent. Passed through from the client after the notification is dispatched.
falseGift box saved, proceeding to next checkout step
POST /orders/checkout/?page=GiftBoxPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 107
"note='Happy Birthday! Wishing you all the best.'&gift_video=true&gift_video_notification_sent=false"Gift box saved, proceeding to next checkout step
{
"context_list": [
{
"page_name": "GiftBoxPage",
"page_slug": "giftboxpage",
"page_context": {
"price": "5.00"
}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"gift_box": {
"note": "Happy Birthday!",
"gift_video": true,
"gift_video_notification_sent": false
}
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

