POST api/Promotion
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": { "ac986bbd-5374-4379-bbf9-f7f715d28f49": 2, "84bf87ec-fed2-4080-8310-12d3f3179882": 4 }, "DeliveryTypeRowGuid": "f30952e0-98be-4447-9e78-4424dbf25b1c", "Promotions": [ { "RowGuid": "177a1ad7-ec18-4758-94eb-d15b3eb1bda0", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "177a1ad7-ec18-4758-94eb-d15b3eb1bda0", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "cb13bc23-cf59-49f0-a8b2-812389fc5f44", "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>f30952e0-98be-4447-9e78-4424dbf25b1c</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>ac986bbd-5374-4379-bbf9-f7f715d28f49</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>84bf87ec-fed2-4080-8310-12d3f3179882</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>177a1ad7-ec18-4758-94eb-d15b3eb1bda0</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>177a1ad7-ec18-4758-94eb-d15b3eb1bda0</RowGuid> </Promotion> </Promotions> <ShowRowGuid>cb13bc23-cf59-49f0-a8b2-812389fc5f44</ShowRowGuid> <TotalWithDiscount>4</TotalWithDiscount> </Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PromotionValidationResultName | Description | Type | Additional information |
---|---|---|---|
Validated | Collection of Promotion |
None. |
|
Failed | Collection of Promotion |
None. |
Response Formats
application/json, text/json
Sample:
{ "Validated": [ { "RowGuid": "33aa841a-b998-4ae1-a674-d286e0489561", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "33aa841a-b998-4ae1-a674-d286e0489561", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "Failed": [ { "RowGuid": "33aa841a-b998-4ae1-a674-d286e0489561", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "33aa841a-b998-4ae1-a674-d286e0489561", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ] }
application/xml, text/xml
Sample:
<PromotionValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoodFluweel.Api.Models"> <Failed> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>33aa841a-b998-4ae1-a674-d286e0489561</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>33aa841a-b998-4ae1-a674-d286e0489561</RowGuid> </Promotion> </Failed> <Validated> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>33aa841a-b998-4ae1-a674-d286e0489561</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>33aa841a-b998-4ae1-a674-d286e0489561</RowGuid> </Promotion> </Validated> </PromotionValidationResult>