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

Get Cash Register Complete Page context

Returns the barcode and order number for the cash register transaction. This page is displayed after the pre-order number has been generated and, if applicable, after the installment selection has been completed.

Preconditions:

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

  • A pre-order number must have been generated (check_has_pre_order_number)

  • If is_installment_active is true: installment or no-installment must be confirmed (check_installment_selected)

  • Basket must not be empty

Page Context:

  • barcode: Base64-encoded PNG image of the Code128 barcode

  • number: The pre-order number to be scanned at the cash register

  • seconds: Countdown duration in seconds before the session expires (1800 = 30 minutes)

Barcode Format: The barcode is generated in Code128 format and encoded as a Base64 PNG string. Clients should render it as <img src="data:image/png;base64,{barcode}" />.

Page Completion State:

  • This page is considered complete when the cash register transaction has been finalized and the order has been created.

Navigation:

  • Previous page: CashRegisterInstallmentSelectionPage (if installment active) or PaymentOptionSelectionPage

  • Next page: ThankYouPage

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 complete page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=CashRegisterCompletePage
GET /orders/checkout/?page=CashRegisterCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
  "context_list": [
    {
      "page_name": "CashRegisterCompletePage",
      "page_slug": "cashregistercompletepage",
      "page_context": {
        "barcode": "iVBORw0KGgoAAAANSUhEUgAA...",
        "number": "202600012345",
        "seconds": 1800
      },
      "pre_order": {
        "payment_option": {
          "pk": 5,
          "name": "Cash Register",
          "payment_type": "cash_register"
        },
        "total_amount": "250.00",
        "currency_type_label": "TRY"
      }
    }
  ]
}

Last updated

Was this helpful?