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
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>)
B2B page context retrieved
GET /orders/checkout/?page=B2BPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
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?

