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": { "ac7096a3-001d-424f-963b-0e8e9f85a012": 2, "c48316cf-b58b-472f-abca-6cda3642b2e5": 4 }, "DeliveryTypeRowGuid": "87c2381f-1275-4eca-829c-0731409d204d", "Promotions": [ { "RowGuid": "dfd62ec5-7f80-4df3-8c0f-16f4375a4178", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "dfd62ec5-7f80-4df3-8c0f-16f4375a4178", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "1fc3ff7a-d6f7-4280-b011-ee55a6bd6d9c", "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>87c2381f-1275-4eca-829c-0731409d204d</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>ac7096a3-001d-424f-963b-0e8e9f85a012</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>c48316cf-b58b-472f-abca-6cda3642b2e5</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>dfd62ec5-7f80-4df3-8c0f-16f4375a4178</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>dfd62ec5-7f80-4df3-8c0f-16f4375a4178</RowGuid> </Promotion> </Promotions> <ShowRowGuid>1fc3ff7a-d6f7-4280-b011-ee55a6bd6d9c</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.