POST Product/AddProductsToCart
Request Information
URI Parameters
None.
Body Parameters
CartDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | integer |
None. |
|
| productId | integer |
None. |
|
| quantity | integer |
None. |
|
| shopName | string |
None. |
|
| variationId | integer |
None. |
|
| currencyCode | string |
None. |
|
| localeCode | string |
None. |
|
| freeProductContributionAmount | decimal number |
None. |
|
| productSubVariationExternalId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"customerId": 1,
"productId": 2,
"quantity": 3,
"shopName": "sample string 4",
"variationId": 5,
"currencyCode": "sample string 6",
"localeCode": "sample string 7",
"freeProductContributionAmount": 1.0,
"productSubVariationExternalId": "sample string 8"
}
application/xml, text/xml
Sample:
<CartDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstroVed.Api.DAL"> <currencyCode>sample string 6</currencyCode> <customerId>1</customerId> <freeProductContributionAmount>1</freeProductContributionAmount> <localeCode>sample string 7</localeCode> <productId>2</productId> <productSubVariationExternalId>sample string 8</productSubVariationExternalId> <quantity>3</quantity> <shopName>sample string 4</shopName> <variationId>5</variationId> </CartDetails>
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. |