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

Get Gift Card Payment Page context

A payment confirmation page reached when gift card reservations fully cover the order total (unpaid amount is zero) and the gift card payment option has been explicitly selected. Returns an empty context; the only user action required is accepting the agreement.

Preconditions (all must be satisfied):

  • At least one gift card reservation must exist

  • The remaining unpaid amount must be zero (gift cards fully cover the order)

  • The selected payment option must be of gift card type

Skip Conditions:

  • Page is skipped if the order has already been finalized

Next Pages (after POST):

  • ThankYouPage — order is placed

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

Gift Card Payment Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=GiftCardPaymentPage
GET /orders/checkout/?page=GiftCardPaymentPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

Gift Card Payment Page context retrieved

{
  "context_list": [
    {
      "page_name": "GiftCardPaymentPage",
      "page_slug": "giftcardpaymentpage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com",
    "total_amount": "100.00",
    "unpaid_amount": "0.00",
    "payment_option": {
      "pk": 8,
      "name": "Gift Card",
      "slug": "gift-card",
      "payment_type": "gift_card",
      "payment_type_label": "Gift Card"
    }
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?