PUT api/ShoppingCart
Updates an existing ShoppingCart entity
Request Information
URI Parameters
None.
Body Parameters
ShoppingCartData object
ShoppingCartData| Name | Description | Type | Additional information |
|---|---|---|---|
| ShoppingCartID | integer |
None. |
|
| UserId | globally unique identifier |
None. |
|
| ShoppingCartKey | string |
None. |
|
| ProductID | integer |
None. |
|
| ProductTitle | string |
None. |
|
| SubscriptionID | integer |
None. |
|
| SubscriptionTitle | string |
None. |
|
| SKU | string |
None. |
|
| Quantity | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| DiscountPercent | integer |
None. |
|
| SubscriptionPrice | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"ShoppingCartID": 1,
"UserId": "8629aa1b-cf7a-474d-807b-e4121874915f",
"ShoppingCartKey": "sample string 3",
"ProductID": 4,
"ProductTitle": "sample string 5",
"SubscriptionID": 6,
"SubscriptionTitle": "sample string 7",
"SKU": "sample string 8",
"Quantity": 9,
"UnitPrice": 10.0,
"DiscountPercent": 11,
"SubscriptionPrice": 12.0
}
text/xml
Sample:
<ShoppingCartData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodeBhagat.DAL"> <DiscountPercent>11</DiscountPercent> <ProductID>4</ProductID> <ProductTitle>sample string 5</ProductTitle> <Quantity>9</Quantity> <SKU>sample string 8</SKU> <ShoppingCartID>1</ShoppingCartID> <ShoppingCartKey>sample string 3</ShoppingCartKey> <SubscriptionID>6</SubscriptionID> <SubscriptionPrice>12</SubscriptionPrice> <SubscriptionTitle>sample string 7</SubscriptionTitle> <UnitPrice>10</UnitPrice> <UserId>8629aa1b-cf7a-474d-807b-e4121874915f</UserId> </ShoppingCartData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |