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": { "da968c85-fa0e-4df0-9f87-2238c9421a84": 2, "06ea405f-835f-445c-bd74-42e852edda23": 4 }, "DeliveryTypeRowGuid": "0defe405-57ce-40e0-97ab-17f349d6c250", "Promotions": [ { "RowGuid": "15ed9abe-04a9-49bb-a22c-48a22dc4505a", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "15ed9abe-04a9-49bb-a22c-48a22dc4505a", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "40f7705c-9d21-49b4-9b24-88ef0da7e432", "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>0defe405-57ce-40e0-97ab-17f349d6c250</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>da968c85-fa0e-4df0-9f87-2238c9421a84</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>06ea405f-835f-445c-bd74-42e852edda23</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>15ed9abe-04a9-49bb-a22c-48a22dc4505a</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>15ed9abe-04a9-49bb-a22c-48a22dc4505a</RowGuid> </Promotion> </Promotions> <ShowRowGuid>40f7705c-9d21-49b4-9b24-88ef0da7e432</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": "9d88c5d3-3ffe-4b9e-ab82-d87e361896c8", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "9d88c5d3-3ffe-4b9e-ab82-d87e361896c8", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "Failed": [ { "RowGuid": "9d88c5d3-3ffe-4b9e-ab82-d87e361896c8", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "9d88c5d3-3ffe-4b9e-ab82-d87e361896c8", "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>9d88c5d3-3ffe-4b9e-ab82-d87e361896c8</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>9d88c5d3-3ffe-4b9e-ab82-d87e361896c8</RowGuid> </Promotion> </Failed> <Validated> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>9d88c5d3-3ffe-4b9e-ab82-d87e361896c8</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>9d88c5d3-3ffe-4b9e-ab82-d87e361896c8</RowGuid> </Promotion> </Validated> </PromotionValidationResult>