POST api/Order?agencyId={agencyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
agencyId

integer

Required

Body Parameters

Collection of ShoppingCart
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

Number

integer

None.

Price

decimal number

None.

OrderId

integer

None.

Size

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ProductId": 2,
    "Number": 3,
    "Price": 1.1,
    "OrderId": 4,
    "Size": "sample string 5"
  },
  {
    "Id": 1,
    "ProductId": 2,
    "Number": 3,
    "Price": 1.1,
    "OrderId": 4,
    "Size": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfShoppingCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMSApi.Model">
  <ShoppingCart>
    <Id>1</Id>
    <Number>3</Number>
    <OrderId>4</OrderId>
    <Price>1.1</Price>
    <ProductId>2</ProductId>
    <Size>sample string 5</Size>
  </ShoppingCart>
  <ShoppingCart>
    <Id>1</Id>
    <Number>3</Number>
    <OrderId>4</OrderId>
    <Price>1.1</Price>
    <ProductId>2</ProductId>
    <Size>sample string 5</Size>
  </ShoppingCart>
</ArrayOfShoppingCart>

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

decimal number

Response Formats

application/json, text/json

Sample:
1.0

application/xml, text/xml

Sample:
<decimal xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</decimal>