PUT api/Basket
Makes a request to add items to the basket.
Request Information
URI Parameters
None.
Body Parameters
BasketRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemId | globally unique identifier |
None. |
|
| ItemGroups | Collection of BasketItemGroupRequest |
None. |
|
| PackageId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"itemId": "0e979ad5-46c5-4c0e-9769-123e85d2309d",
"itemGroups": [
{
"concessionId": "58a8d63b-a65a-4e71-9384-c353c161bb4f",
"productId": "0b8be6dc-5abf-4f9a-9766-da55f1deddbd",
"quantity": 3,
"price": 4.0
},
{
"concessionId": "58a8d63b-a65a-4e71-9384-c353c161bb4f",
"productId": "0b8be6dc-5abf-4f9a-9766-da55f1deddbd",
"quantity": 3,
"price": 4.0
}
],
"packageId": "4b1d12e1-480b-4c27-b1ee-c17ed45131c8"
}
Response Information
Resource Description
BasketRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemId | globally unique identifier |
None. |
|
| ItemGroups | Collection of BasketItemGroupRequest |
None. |
|
| PackageId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"itemId": "554d9597-2de1-4127-9d82-41860dfe9040",
"itemGroups": [
{
"concessionId": "48d230dc-e051-441e-a012-c4c0165c84d2",
"productId": "0c7ab146-db45-4881-a859-31f4cf27509f",
"quantity": 3,
"price": 4.0
},
{
"concessionId": "48d230dc-e051-441e-a012-c4c0165c84d2",
"productId": "0c7ab146-db45-4881-a859-31f4cf27509f",
"quantity": 3,
"price": 4.0
}
],
"packageId": "47779ae2-7494-46d3-abcb-366de0be5b1a"
}