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

Confirm and place B2B order

Accepts the terms and conditions agreement and places the B2B order. Once accepted, the order is finalised and an invoice-based payment record is created. Card and installment information are cleared since B2B does not use card payment.

Required Fields:

  • agreement: Must be true.

Backward Navigation:

  • No state is reset on backward navigation.

Next Page:

  • ThankYouPage

available_for_post_order: false

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

Input for B2BPage. Accepts the terms and conditions agreement to finalise the B2B (Business-to-Business) order.

agreementboolean · enumRequired

Acceptance of the terms and conditions. Must be true to place the B2B order.

Possible values:
Responses
200

B2B order placed — routes to ThankYouPage

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=B2BPage
POST /orders/checkout/?page=B2BPage 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

B2B order placed — routes to ThankYouPage

{
  "context_list": [
    {
      "page_name": "ThankYouPage",
      "page_slug": "thankyoupage",
      "page_context": {
        "redirect_url": "/orders/checkout/success/abc123/",
        "order_id": 789,
        "order_number": "ORD-789",
        "new_user": false,
        "token": null,
        "campaigns": []
      }
    }
  ],
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?