POST api/Order/{id}?cardNewId={cardNewId}&cardOnline={cardOnline}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| cardNewId | string |
Required |
|
| cardOnline | string |
Required |
Body Parameters
Collection of ShoppingCart| Name | Description | Type | Additional 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:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.