Get Gift Card OTP Resend Page context
A lightweight action page that triggers an OTP resend. The GET response returns an empty context; the resend itself is performed via POST.
Preconditions:
A gift card candidate must exist with
otp_required=Trueandotp_verified=False
Next Pages (after POST):
GiftCardOtpPage— always, so the user can enter the newly sent code
get
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
OTP Resend Page context retrieved (empty)
application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=GiftCardOtpResendPage
GET /orders/checkout/?page=GiftCardOtpResendPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200
OTP Resend Page context retrieved (empty)
{
"context_list": [
{
"page_name": "GiftCardOtpResendPage",
"page_slug": "giftcardotpresendpage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": [],
"template_name": "orders/checkout.html"
}PreviousVerify the OTP code for the pending gift card
NextResend the OTP code for the pending gift card
Last updated
Was this helpful?

