POST api/ShoppingCart

Creates a new ShoppingCart entity

Request Information

URI Parameters

None.

Body Parameters

ShoppingCartData object

ShoppingCartData
NameDescriptionTypeAdditional 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": "7cbd3c92-2619-4d9e-a558-3924692757b1",
  "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>7cbd3c92-2619-4d9e-a558-3924692757b1</UserId>
</ShoppingCartData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.