POST api/Order
Request Information
URI Parameters
None.
Body Parameters
OrderName | 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": { "068702c3-518b-45dc-8278-5ee8c2e68a4a": 2, "80ebb616-ba97-46fe-98b4-bfc2de00017a": 4 }, "DeliveryTypeRowGuid": "a7d06cb1-a3cb-45ba-932f-fa82dd5dd915", "Promotions": [ { "RowGuid": "d7fd253f-57b7-479e-af72-064497df6a9a", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "d7fd253f-57b7-479e-af72-064497df6a9a", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "ab0c23a5-88d6-4dc5-b92a-34e22be433f7", "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>a7d06cb1-a3cb-45ba-932f-fa82dd5dd915</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>068702c3-518b-45dc-8278-5ee8c2e68a4a</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>80ebb616-ba97-46fe-98b4-bfc2de00017a</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>d7fd253f-57b7-479e-af72-064497df6a9a</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>d7fd253f-57b7-479e-af72-064497df6a9a</RowGuid> </Promotion> </Promotions> <ShowRowGuid>ab0c23a5-88d6-4dc5-b92a-34e22be433f7</ShowRowGuid> <TotalWithDiscount>4</TotalWithDiscount> </Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrderResultName | 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.