POST AddToCart/AddItemToCart
Request Information
URI Parameters
None.
Body Parameters
CartInput| Name | Description | Type | Additional information |
|---|---|---|---|
| selectedlistId | integer |
None. |
|
| customerId | integer |
None. |
|
| shopId | integer |
Required |
|
| productId | integer |
None. |
|
| quantity | integer |
None. |
|
| variationId | integer |
None. |
|
| productVariationId | integer |
None. |
|
| currencyCode | string |
Required |
|
| selectedItemId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"selectedlistId": 1,
"customerId": 2,
"shopId": 3,
"productId": 4,
"quantity": 5,
"variationId": 6,
"productVariationId": 7,
"currencyCode": "sample string 8",
"selectedItemId": 9
}
application/xml, text/xml
Sample:
<CartInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstroVed.Api.DAL.ShoppingCart"> <currencyCode>sample string 8</currencyCode> <customerId>2</customerId> <productId>4</productId> <productVariationId>7</productVariationId> <quantity>5</quantity> <selectedItemId>9</selectedItemId> <selectedlistId>1</selectedlistId> <shopId>3</shopId> <variationId>6</variationId> </CartInput>
application/x-www-form-urlencoded
Sample:
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. |