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

Get B2B Page context

Returns the context for the B2B (Business-to-Business) payment step. No additional data is needed at this stage; the page serves as the final agreement confirmation before the B2B order is placed.

Preconditions:

  • Basket must not be empty.

  • The selected payment option must be of B2B type.

Page Context:

  • Empty object {}. All required data was collected at the payment option selection step.

Step Completion: This page is considered already completed when the selected payment option is of B2B type and the order has been finalised.

available_for_post_order: false

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

B2B page context retrieved

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

B2B page context retrieved

{
  "context_list": [
    {
      "page_name": "B2BPage",
      "page_slug": "b2bpage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "basket": {
      "pk": 123,
      "total_amount": "500.00"
    },
    "payment_option": {
      "pk": 8,
      "name": "B2B Invoice",
      "slug": "b2b-invoice",
      "payment_type": "b2b",
      "payment_type_label": "B2B"
    }
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?