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

Get Cash Register Page context

Returns the context for the cash register payment confirmation step. This page is displayed when the selected payment option is of type cash_register.

Preconditions:

  • A payment option of type cash_register must be selected (check_cr_selected)

  • Basket must not be empty

Purpose: Cash register payment is an in-store payment method where the customer agrees to pay at a physical cash register terminal. The store staff initiates the transaction on behalf of the customer.

Page Context: This page returns an empty page context. The primary action is the submission of the agreement along with store staff identification headers.

Page Completion State:

  • This page is considered complete when the payment option is cash_register and a pre-order number has been generated.

  • If already complete, the system automatically advances to the next step.

Navigation:

  • Previous page: PaymentOptionSelectionPage

  • Next page: CashRegisterInstallmentSelectionPage (if installment is active) or CashRegisterCompletePage

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

Cash register page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=CashRegisterPage
GET /orders/checkout/?page=CashRegisterPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
  "context_list": [
    {
      "page_name": "CashRegisterPage",
      "page_slug": "cashregisterpage",
      "page_context": {},
      "pre_order": {
        "payment_option": {
          "pk": 5,
          "name": "Cash Register",
          "slug": "cash-register",
          "payment_type": "cash_register",
          "payment_type_label": "Cash Register"
        },
        "total_amount": "250.00",
        "unpaid_amount": "250.00",
        "currency_type_label": "TRY"
      }
    }
  ]
}

Last updated

Was this helpful?