Update Collection Details

Service Url: POST /baskets/{ref}/orders/collectionDetails

Request Body

UpdateCollectionDetailsRequest

locationId – String – the id of the location

deliveryOption – IDeliveryOption – the (collection) delivery option to update the order with

deliveryName – IName – the name of the delivery option

Remarks

Updates the collection details for a basket. 

Example Request

POST http://localhost:8080/WebRestApi/rest/baskets/PRIMARY/orders/collectionDetails

{
  "locationId": "0001",
  "deliveryOption": {
    "@type": "locationCollectionDeliveryOption",
    "locationId": {
      "id": "0001"
    },
    "deliveryDescription": "Enactor Store",
    "deliverySlot": {
      "currencyId": {},
      "fulfilmentOptions": [
        {
          "locationStockFulfilment": {
            "locationId": {
              "id": "0100"
            },
            "quantity": 1,
            "productId": {
              "id": "VV639JS-12"
            }
          }
        },
        {
          "locationStockFulfilment": {
            "locationId": {
              "id": "0100"
            },
            "quantity": 1,
            "productId": {
              "id": "VV639JS-8"
            }
          }
        }
      ]
    },
    "products": [
      {
        "productKey": {
          "id": "VV639JS-12"
        },
        "quantity": 1
      },
      {
        "productKey": {
          "id": "VV639JS-8"
        },
        "quantity": 1
      }
    ],
    "index": 1
  },
  "deliveryName": {
    "forename": "James",
    "surname": "hanson"
  }
}

Example Response

1200 OK
Go to Top