PUT api/OrderItems?orderId={orderId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderId

string

Required

Body Parameters

Collection of OrderItemModel
NameDescriptionTypeAdditional information
Quantity

integer

None.

Price

decimal number

None.

ProductKey

string

None.

ProductShapeId

integer

None.

ProductShapeTypeId

integer

None.

Note

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Quantity": 1,
    "Price": 2.1,
    "ProductKey": "sample string 3",
    "ProductShapeId": 1,
    "ProductShapeTypeId": 4,
    "Note": "sample string 5"
  },
  {
    "Quantity": 1,
    "Price": 2.1,
    "ProductKey": "sample string 3",
    "ProductShapeId": 1,
    "ProductShapeTypeId": 4,
    "Note": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrderItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Salesforce.Gateway.Model">
  <OrderItemModel>
    <Note>sample string 5</Note>
    <Price>2.1</Price>
    <ProductKey>sample string 3</ProductKey>
    <ProductShapeId>1</ProductShapeId>
    <ProductShapeTypeId>4</ProductShapeTypeId>
    <Quantity>1</Quantity>
  </OrderItemModel>
  <OrderItemModel>
    <Note>sample string 5</Note>
    <Price>2.1</Price>
    <ProductKey>sample string 3</ProductKey>
    <ProductShapeId>1</ProductShapeId>
    <ProductShapeTypeId>4</ProductShapeTypeId>
    <Quantity>1</Quantity>
  </OrderItemModel>
</ArrayOfOrderItemModel>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.