Complete Cash Register Payment
Finalizes the cash register payment by confirming the completed transaction. This endpoint has no required request body fields. It validates internally that a successful cash register transaction record exists for the current pre-order before creating the order.
No Request Body Required: This submission does not require any body fields. The system validates the transaction state automatically.
Transaction Validation: The system verifies that a CashRegisterTransaction record exists for the current pre-order with is_succeeded: true. This record is created by the cash register terminal when the customer completes payment at the physical register. If no such record exists yet, the response returns a validation error asking the client to wait.
Installment Handling:
If
is_installment_activeis false: the installment andno_installmentfields are cleared from the pre-order before order creation.Card info is always cleared after this step.
Navigation After Success:
Routes to
ThankYouPage
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
No request body fields are required for this submission. The system validates internally that a successful cash register transaction exists for the current pre-order.
Cash register payment completed and order created successfully
Redirect to basket (empty basket)
POST /orders/checkout/?page=CashRegisterCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 2
""{
"context_list": [
{
"page_name": "ThankYouPage",
"page_slug": "thankyoupage",
"page_context": {
"redirect_url": "/orders/checkout-success/abc123:def456:ghi789/",
"order_id": 5001,
"order_number": "202600012345"
}
}
],
"errors": {}
}Last updated
Was this helpful?

