Service Url: POST /baskets/{ref}/orders/deliveryDetails
Tokens
basketReference – String – reference of the basket
Request Body
ISetDeliveryDetailsRequest
- address – ICustomerOrderAddress – the address of the order
- deliveryOption – IDeliveryOption – the delivery option for the order.
- deliveryName – IName – the name of delivery address.
Response body
- 200 OK
Remarks
This services update the baskets order details with a delivery name, address, and option. Any existing delivery options will be removed and replaced.
Example Request
{
"address": {
"houseNumber": "44 Furlong Way, Great Amwellbb",
"street1": "Great Amwell",
"city": "Ware",
"postCode": "sg124 9tf",
"phoneNumber": "7565678900"
},
"deliveryOption": {
"@type": "addressDeliveryOption",
"address": {
"countryCodeId": {},
"typeId": {},
"postCode": "sg124 9tf",
"street1": "Great Amwell",
"isTemplate": false
},
"deliverySlot": {
"currencyId": {},
"deliveryCharge": 500,
"fulfilmentOptions": [
{
"locationStockFulfilment": {
"locationId": {
"id": "0100"
},
"quantity": 1,
"productId": {
"id": "VV639JS-12"
}
}
},
{
"locationStockFulfilment": {
"locationId": {
"id": "0100"
},
"quantity": 1,
"productId": {
"id": "VV639JS-8"
}
}
}
],
"deliveryTypeId": {
"deliveryTypeId": "Express"
}
},
"products": [
{
"productKey": {
"id": "VV639JS-12"
},
"quantity": 1
},
{
"productKey": {
"id": "VV639JS-8"
},
"quantity": 1
}
],
"index": 0
},
"deliveryName": {
"forename": "James",
"surname": "hanson"
}
}