PUT api/ShoppingCart/UpdateProductWithStock
Remove product from shopping cart
Request Information
URI Parameters
None.
Body Parameters
ShoppingCartBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | integer |
Required |
|
| ProductQty | integer |
Required |
|
| AddrressId | integer |
None. |
|
| OfferIds | Collection of integer |
None. |
|
| OfferTypeIds | Collection of integer |
None. |
|
| SourceType | OrderSource |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductId": 1,
"ProductQty": 2,
"AddrressId": 1,
"OfferIds": [
1,
2
],
"OfferTypeIds": [
1,
2
],
"SourceType": 0
}
application/xml, text/xml
Sample:
<ShoppingCartBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.BindingModels.ShoppingCart">
<AddrressId>1</AddrressId>
<OfferIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</OfferIds>
<OfferTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</OfferTypeIds>
<ProductId>1</ProductId>
<ProductQty>2</ProductQty>
<SourceType>Android</SourceType>
</ShoppingCartBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.