POST api/cart/items/{cartId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cartId

integer

Required

Body Parameters

CmsCreateOrderItem
NameDescriptionTypeAdditional information
LineItemTypeID

integer

Required

Range: inclusive between 1 and 2147483647

ProductID

integer

Required

Range: inclusive between 1 and 2147483647

Quantity

integer

Required

Range: inclusive between 1 and 2147483647

CustomPrice

decimal number

None.

LotId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LineItemTypeID": 1,
  "ProductID": 2,
  "Quantity": 3,
  "CustomPrice": 1.0,
  "LotId": 1
}

application/xml, text/xml

Sample:
<CmsCreateOrderItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Opimian.Wimps.DTO.CmsDTOs">
  <CustomPrice>1</CustomPrice>
  <LineItemTypeID>1</LineItemTypeID>
  <LotId>1</LotId>
  <ProductID>2</ProductID>
  <Quantity>3</Quantity>
</CmsCreateOrderItem>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CmsCreateOrderItem'.

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.