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

Get Cash Register Installment Selection Page context

Returns the available installment options for the cash register payment. This page is only reachable when the selected payment option has is_installment_active: true in its configuration.

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)

  • Basket must not be empty

Page Context: Returns a list of cards with their available installment plans. Installments are filtered based on the current basket total amount, ensuring only applicable plans are presented to the customer.

Page Completion State:

  • This page is considered complete when an installment is selected or no_installment has been explicitly confirmed.

Navigation:

  • Previous page: CashRegisterPage

  • Next page: 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 installment selection page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=CashRegisterInstallmentSelectionPage
GET /orders/checkout/?page=CashRegisterInstallmentSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
  "context_list": [
    {
      "page_name": "CashRegisterInstallmentSelectionPage",
      "page_slug": "cashregisterinstallmentselectionpage",
      "page_context": {
        "cards": [
          {
            "pk": 1,
            "name": "Visa",
            "slug": "visa",
            "card_type": "credit",
            "card_payment_type": "credit_card",
            "cash_payment": true,
            "installment_payment": true,
            "three_d_payment": true,
            "is_commerce_card": false,
            "bank": {
              "pk": 10,
              "name": "Example Bank",
              "slug": "example-bank",
              "logo": "/media/banks/example-bank.png"
            },
            "installments": [
              {
                "pk": 100,
                "installment_count": 3,
                "label": "3 Installments",
                "price_with_accrued_interest": "257.50",
                "monthly_price_with_accrued_interest": "85.83"
              },
              {
                "pk": 101,
                "installment_count": 6,
                "label": "6 Installments",
                "price_with_accrued_interest": "265.00",
                "monthly_price_with_accrued_interest": "44.17"
              }
            ]
          },
          {
            "pk": 2,
            "name": "Mastercard",
            "slug": "mastercard",
            "card_type": "credit",
            "card_payment_type": "credit_card",
            "cash_payment": true,
            "installment_payment": true,
            "three_d_payment": true,
            "is_commerce_card": false,
            "bank": {
              "pk": 11,
              "name": "Another Bank",
              "slug": "another-bank",
              "logo": "/media/banks/another-bank.png"
            },
            "installments": [
              {
                "pk": 102,
                "installment_count": 3,
                "label": "3 Installments",
                "price_with_accrued_interest": "257.50",
                "monthly_price_with_accrued_interest": "85.83"
              }
            ]
          }
        ]
      },
      "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?