POST api/Order
Request Information
URI Parameters
None.
Body Parameters
Order| Name | Description | Type | Additional information |
|---|---|---|---|
| AddReservationCosts | boolean |
None. |
|
| OrderedTickets | Dictionary of globally unique identifier [key] and integer [value] |
None. |
|
| DeliveryTypeRowGuid | globally unique identifier |
None. |
|
| Promotions | Collection of Promotion |
None. |
|
| ShowRowGuid | globally unique identifier |
None. |
|
| TotalWithDiscount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"AddReservationCosts": true,
"OrderedTickets": {
"19a92995-f8dc-4f6b-aea3-27cae1fce0c8": 2,
"10cfc20d-d92d-4b4a-8643-822b0be1ce36": 4
},
"DeliveryTypeRowGuid": "de3dcc81-e8b4-4ba8-b004-f7144c0058b2",
"Promotions": [
{
"RowGuid": "be21f0a4-e4ee-485c-b38c-b03daeae37f1",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "be21f0a4-e4ee-485c-b38c-b03daeae37f1",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"ShowRowGuid": "8659402c-fc9c-4b32-aae6-8e946ceb7ac6",
"TotalWithDiscount": 4.0
}
application/xml, text/xml
Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoodFluweel.Api.Models">
<AddReservationCosts>true</AddReservationCosts>
<DeliveryTypeRowGuid>de3dcc81-e8b4-4ba8-b004-f7144c0058b2</DeliveryTypeRowGuid>
<OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidint>
<d2p1:Key>19a92995-f8dc-4f6b-aea3-27cae1fce0c8</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfguidint>
<d2p1:KeyValueOfguidint>
<d2p1:Key>10cfc20d-d92d-4b4a-8643-822b0be1ce36</d2p1:Key>
<d2p1:Value>4</d2p1:Value>
</d2p1:KeyValueOfguidint>
</OrderedTickets>
<Promotions>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>be21f0a4-e4ee-485c-b38c-b03daeae37f1</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>be21f0a4-e4ee-485c-b38c-b03daeae37f1</RowGuid>
</Promotion>
</Promotions>
<ShowRowGuid>8659402c-fc9c-4b32-aae6-8e946ceb7ac6</ShowRowGuid>
<TotalWithDiscount>4</TotalWithDiscount>
</Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrderResult| Name | Description | Type | Additional information |
|---|---|---|---|
| UsedPromotions | Collection of Promotion |
None. |
|
| UnUsedPromotions | Collection of Promotion |
None. |
|
| TotalPrice | decimal number |
None. |
|
| ResultCode | OrderResultCode |
None. |
|
| Seats | Collection of Seat |
None. |
|
| ShowGuid | globally unique identifier |
None. |
|
| SeatPlanImageUri | URI |
None. |
|
| OrderRowGuid | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.