POST api/order/AddOrder
Request Information
URI Parameters
None.
Body Parameters
OrderDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CurrencyCode | string |
None. |
|
| SubPrice | decimal number |
None. |
|
| ShipmentPrice | decimal number |
None. |
|
| TotalPrice | decimal number |
None. |
|
| QiratCoinAmount | decimal number |
None. |
|
| QiratCoinValue | decimal number |
None. |
|
| CurrencyStripeCode | string |
None. |
|
| Address | StoreDeliveryAddressDTO |
None. |
|
| OrderLines | StoreOrderLine |
None. |
Request Formats
application/json, text/json
Sample:
{
"CurrencyCode": "sample string 1",
"SubPrice": 1.1,
"ShipmentPrice": 1.1,
"TotalPrice": 1.1,
"QiratCoinAmount": 1.1,
"QiratCoinValue": 1.1,
"CurrencyStripeCode": "sample string 2",
"Address": {
"FullName": "sample string 1",
"Title": "sample string 2",
"CountryId": 3,
"City": "sample string 4",
"Street": "sample string 5",
"Note": "sample string 6"
},
"OrderLines": {
"values": [
{
"nameValuePairs": {
"ProductId": 1,
"Quantity": 2.1,
"UnitPrice": 3.1,
"TotalPrice": 4.1
}
},
{
"nameValuePairs": {
"ProductId": 1,
"Quantity": 2.1,
"UnitPrice": 3.1,
"TotalPrice": 4.1
}
}
]
}
}
application/xml, text/xml
Sample:
<OrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaBook.Api.DTO">
<Address>
<City>sample string 4</City>
<CountryId>3</CountryId>
<FullName>sample string 1</FullName>
<Note>sample string 6</Note>
<Street>sample string 5</Street>
<Title>sample string 2</Title>
</Address>
<CurrencyCode>sample string 1</CurrencyCode>
<CurrencyStripeCode>sample string 2</CurrencyStripeCode>
<OrderLines>
<values>
<LineValue>
<nameValuePairs>
<ProductId>1</ProductId>
<Quantity>2.1</Quantity>
<TotalPrice>4.1</TotalPrice>
<UnitPrice>3.1</UnitPrice>
</nameValuePairs>
</LineValue>
<LineValue>
<nameValuePairs>
<ProductId>1</ProductId>
<Quantity>2.1</Quantity>
<TotalPrice>4.1</TotalPrice>
<UnitPrice>3.1</UnitPrice>
</nameValuePairs>
</LineValue>
</values>
</OrderLines>
<QiratCoinAmount>1.1</QiratCoinAmount>
<QiratCoinValue>1.1</QiratCoinValue>
<ShipmentPrice>1.1</ShipmentPrice>
<SubPrice>1.1</SubPrice>
<TotalPrice>1.1</TotalPrice>
</OrderDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |