PUT api/Basket

Makes a request to add items to the basket.

Request Information

URI Parameters

None.

Body Parameters

BasketRequest
NameDescriptionTypeAdditional information
ItemId

globally unique identifier

None.

ItemGroups

Collection of BasketItemGroupRequest

None.

PackageId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "itemId": "c42455b6-d578-4c1f-8d54-39b593111646",
  "itemGroups": [
    {
      "concessionId": "f50ff09c-2596-41a1-8fd3-89f16db1e0c2",
      "productId": "f111a227-00d2-44ef-819d-9db80475eb3e",
      "quantity": 3,
      "price": 4.0
    },
    {
      "concessionId": "f50ff09c-2596-41a1-8fd3-89f16db1e0c2",
      "productId": "f111a227-00d2-44ef-819d-9db80475eb3e",
      "quantity": 3,
      "price": 4.0
    }
  ],
  "packageId": "f864ebbd-9873-4402-b9ef-bb97dcd24208"
}

Response Information

Resource Description

BasketRequest
NameDescriptionTypeAdditional information
ItemId

globally unique identifier

None.

ItemGroups

Collection of BasketItemGroupRequest

None.

PackageId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "itemId": "f6502a61-c8aa-4ccc-b59c-9db3c140d7da",
  "itemGroups": [
    {
      "concessionId": "88baee3f-6797-409b-8f88-28a7187b8c12",
      "productId": "701846c3-1182-4696-856f-50065baf00af",
      "quantity": 3,
      "price": 4.0
    },
    {
      "concessionId": "88baee3f-6797-409b-8f88-28a7187b8c12",
      "productId": "701846c3-1182-4696-856f-50065baf00af",
      "quantity": 3,
      "price": 4.0
    }
  ],
  "packageId": "daea5ea5-a183-4eb3-a95f-26a319a3d524"
}