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

Get Delivery Bags Page context

Returns the delivery bags fee calculated for the current basket. This page allows users to confirm (and optionally choose the quantity of) delivery bags to include with their order. This is an independent page — submitting it does not advance the checkout flow.

Preconditions:

  • Basket must not be empty

  • DELIVERY_BAGS_CONF.is_active must be true (is_delivery_bags_active check)

Skip Conditions:

  • Page is always considered done when DELIVERY_BAGS_CONF.is_active is true (i.e., is_already_done() mirrors the is_valid() check)

Configuration: Requires DELIVERY_BAGS_CONF dynamic setting to be active. See the DELIVERY_BAGS_CONF section in Dynamic Settings above for full details.

Next Pages:

  • No further checkout page from this step (EmptyPage)

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

Delivery Bags Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=DeliveryBagsPage
GET /orders/checkout/?page=DeliveryBagsPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

Delivery Bags Page context retrieved

{
  "context_list": [
    {
      "page_name": "DeliveryBagsPage",
      "page_slug": "deliverybagspage",
      "page_context": {
        "bags_fee": "5.99"
      }
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com",
    "total_amount": "155.99"
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?