Submit shipping option selection from checkout provider
Accepts the shipping option selection forwarded from the checkout provider's hosted form along with the basket and conversation identifiers. Verifies the conversation_id against the one stored in the pre-order to ensure the response belongs to the active session.
Required Fields: basket_id, conversation_id
Optional Fields: language
Validation:
conversation_idmust matchpre_order.checkout_provider_data['conversation_id']
Next Page: CheckoutProviderAgreementListPage
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>)
Payload forwarded by the checkout provider after the customer selects a
shipping option on the hosted form. The conversation_id is validated
against the active session to prevent replay.
Primary key of the active basket.
42Provider conversation identifier. Must match the value stored in pre_order.checkout_provider_data['conversation_id'].
conv-abc-123Optional language code forwarded by the provider (e.g. "tr", "en").
trShipping option step processed
POST /orders/checkout/?page=CheckoutProviderShippingOptionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 65
"basket_id=42&conversation_id='conv-abc-123'&language='tr'"Shipping option step processed
{
"context_list": [
{
"page_name": "CheckoutProviderAgreementListPage",
"page_slug": "checkoutprovideragreementlistpage",
"page_context": {
"agreements": [
{
"code": "info",
"text": "Preliminary Information Form"
},
{
"code": "sales",
"text": "Distance Sales Agreement"
}
]
}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

