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

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=True and otp_verified=False

Next Pages (after POST):

  • GiftCardOtpPage — always, so the user can enter the newly sent code

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

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"
}

Last updated

Was this helpful?