Select Pickup Location
Sets the selected pickup location for the order.
Configuration:
DEFAULT_COUNTRY_CODE: Default country code used to populate country field in address contexts.
Pickup Location Handling:
Uses
PickupLocationServiceto fetch location byremote_idCreates a
PickupLocationAddressobjectValidates that the remote location exists
Next Pages:
Shipping option selection page
post
Header parameters
x-requested-withstring · enumRequiredDefault:
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: CookiestringOptional
Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Body
remote_idstringRequired
Remote identifier for the pickup location
billing_addressintegerRequired
Primary key of the billing address
Responses
200
Pickup location selected successfully
application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=PickupLocationSelectionPage
POST /orders/checkout/?page=PickupLocationSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"remote_id='LOC123'&billing_address=10"200
Pickup location selected successfully
{
"context_list": [
{
"page_name": "ShippingOptionSelectionPage",
"page_slug": "shippingoptionselectionpage",
"page_context": {
"shipping_options": []
}
}
],
"pre_order": {
"billing_address": {
"pk": 10
},
"shipping_address": {
"remote_id": "LOC123",
"address_type": "pickup_location"
},
"billing_and_shipping_same": false
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

