POST api/GetCartProducts
Request Information
URI Parameters
None.
Body Parameters
CartProducts| Name | Description | Type | Additional information |
|---|---|---|---|
| DeliveryTypeId | integer |
None. |
|
| UserCarts | Collection of UserCart |
None. |
|
| ProductsPrice | decimal number |
None. |
|
| Points | integer |
None. |
|
| DeliveryAmount | decimal number |
None. |
|
| FreeDelivery | boolean |
None. |
|
| CostOfRenewMembership | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| HaveGiftPoint | boolean |
None. |
|
| GiftPointId | integer |
None. |
|
| CashDiscountAmount | decimal number |
None. |
|
| PurchaseVoucherAmount | decimal number |
None. |
|
| GiftOfferType | OfferType |
None. |
|
| HaveGiftOffer | boolean |
None. |
|
| GiftOfferId | integer |
None. |
|
| GiftProgram | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeliveryTypeId": 1,
"UserCarts": [
{
"Id": 1,
"UserId": 2,
"ProductId": 3,
"ProductCount": 4,
"ProductPoints": 5.1,
"ProductPrice": 1.0,
"TotalPrice": 1.0,
"Product": {
"Id": 1,
"Name": "sample string 2",
"NameAR": "sample string 3",
"Description": "sample string 4",
"DescriptionAR": "sample string 5",
"Code": "sample string 6",
"Point": 7.1,
"Image": "sample string 8",
"CategoryId": 1,
"CurrentPrice": 1.0,
"OldPrice": 1.0,
"AvailableCount": 1,
"IsAvailable": true,
"IsFavorite": true
}
},
{
"Id": 1,
"UserId": 2,
"ProductId": 3,
"ProductCount": 4,
"ProductPoints": 5.1,
"ProductPrice": 1.0,
"TotalPrice": 1.0,
"Product": {
"Id": 1,
"Name": "sample string 2",
"NameAR": "sample string 3",
"Description": "sample string 4",
"DescriptionAR": "sample string 5",
"Code": "sample string 6",
"Point": 7.1,
"Image": "sample string 8",
"CategoryId": 1,
"CurrentPrice": 1.0,
"OldPrice": 1.0,
"AvailableCount": 1,
"IsAvailable": true,
"IsFavorite": true
}
}
],
"ProductsPrice": 1.0,
"Points": 2,
"DeliveryAmount": 3.0,
"FreeDelivery": true,
"CostOfRenewMembership": 4.0,
"TotalAmount": 5.0,
"HaveGiftPoint": true,
"GiftPointId": 1,
"CashDiscountAmount": 1.0,
"PurchaseVoucherAmount": 1.0,
"GiftOfferType": 1,
"HaveGiftOffer": true,
"GiftOfferId": 1,
"GiftProgram": true
}
application/xml, text/xml
Sample:
<CartProducts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.Entities.ViewModel">
<CashDiscountAmount>1</CashDiscountAmount>
<DeliveryTypeId>1</DeliveryTypeId>
<FreeDelivery>true</FreeDelivery>
<GiftOfferType>SelectProduct</GiftOfferType>
<PurchaseVoucherAmount>1</PurchaseVoucherAmount>
<UserCarts xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataAccess.Entities">
<d2p1:UserCart>
<d2p1:Id>1</d2p1:Id>
<d2p1:Product>
<d2p1:AvailableCount>1</d2p1:AvailableCount>
<d2p1:CategoryId>1</d2p1:CategoryId>
<d2p1:Code>sample string 6</d2p1:Code>
<d2p1:CurrentPrice>1</d2p1:CurrentPrice>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:DescriptionAR>sample string 5</d2p1:DescriptionAR>
<d2p1:Id>1</d2p1:Id>
<d2p1:Image>sample string 8</d2p1:Image>
<d2p1:IsAvailable>true</d2p1:IsAvailable>
<d2p1:IsFavorite>true</d2p1:IsFavorite>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:NameAR>sample string 3</d2p1:NameAR>
<d2p1:OldPrice>1</d2p1:OldPrice>
<d2p1:Point>7.1</d2p1:Point>
</d2p1:Product>
<d2p1:ProductCount>4</d2p1:ProductCount>
<d2p1:ProductId>3</d2p1:ProductId>
<d2p1:ProductPoints>5.1</d2p1:ProductPoints>
<d2p1:ProductPrice>1</d2p1:ProductPrice>
<d2p1:TotalPrice>1</d2p1:TotalPrice>
<d2p1:UserId>2</d2p1:UserId>
</d2p1:UserCart>
<d2p1:UserCart>
<d2p1:Id>1</d2p1:Id>
<d2p1:Product>
<d2p1:AvailableCount>1</d2p1:AvailableCount>
<d2p1:CategoryId>1</d2p1:CategoryId>
<d2p1:Code>sample string 6</d2p1:Code>
<d2p1:CurrentPrice>1</d2p1:CurrentPrice>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:DescriptionAR>sample string 5</d2p1:DescriptionAR>
<d2p1:Id>1</d2p1:Id>
<d2p1:Image>sample string 8</d2p1:Image>
<d2p1:IsAvailable>true</d2p1:IsAvailable>
<d2p1:IsFavorite>true</d2p1:IsFavorite>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:NameAR>sample string 3</d2p1:NameAR>
<d2p1:OldPrice>1</d2p1:OldPrice>
<d2p1:Point>7.1</d2p1:Point>
</d2p1:Product>
<d2p1:ProductCount>4</d2p1:ProductCount>
<d2p1:ProductId>3</d2p1:ProductId>
<d2p1:ProductPoints>5.1</d2p1:ProductPoints>
<d2p1:ProductPrice>1</d2p1:ProductPrice>
<d2p1:TotalPrice>1</d2p1:TotalPrice>
<d2p1:UserId>2</d2p1:UserId>
</d2p1:UserCart>
</UserCarts>
</CartProducts>
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. |