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

Confirm loyalty money payment and place the order

Submits the user's agreement to terms and conditions, confirming the loyalty money payment. On success, the order is placed using the available loyalty money balance, which must fully cover the order total.

Required Fields:

  • agreement: Must be true. The user must explicitly accept the terms and conditions to proceed.

Validation:

  • agreement must be true; any other value returns a validation error

  • The basket total must be greater than zero

State Update:

  • On success, the order is finalized using the loyalty money balance. The card and installment information in the pre-order are cleared as they are not applicable to loyalty money payments.

Backward Navigation:

  • Navigating backward from this page does not alter the pre-order state.

Next Pages:

  • The order is placed upon successful submission; the checkout flow advances to the order confirmation step.

post
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>)

Body
agreementboolean · enumRequired

User must accept the terms and conditions to proceed with the loyalty money payment. Must be true.

Possible values:
Responses
200

Loyalty money payment confirmed and order placed

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=LoyaltyMoneyPage
POST /orders/checkout/?page=LoyaltyMoneyPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18

"agreement=true"
200

Loyalty money payment confirmed and order placed

{
  "context_list": [
    {
      "page_name": "LoyaltyMoneyPage",
      "page_slug": "loyaltymoneypage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com",
    "payment_option": {
      "pk": 7,
      "name": "Loyalty Money",
      "slug": "loyalty-money",
      "payment_type": "loyalty_money",
      "payment_type_label": "Loyalty Money"
    },
    "order": {
      "pk": 5001,
      "number": "ORD-2026-0001",
      "status": "confirmed"
    },
    "number": "ORD-2026-0001",
    "total_amount": "150.00"
  },
  "errors": {},
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?