POST api/Promotion
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": {
"070ac325-7ab3-4a1b-9534-ee52babf42bc": 2,
"234269df-96b3-43cb-8b95-ea6b9331960b": 4
},
"DeliveryTypeRowGuid": "faeec87c-91ee-4c72-ba2b-28d6c5e91c43",
"Promotions": [
{
"RowGuid": "d4854167-ddd9-4e12-82e7-fe0c1898e902",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "d4854167-ddd9-4e12-82e7-fe0c1898e902",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"ShowRowGuid": "c82eacf6-a5d7-4428-bf59-9d2c15e6196a",
"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>faeec87c-91ee-4c72-ba2b-28d6c5e91c43</DeliveryTypeRowGuid>
<OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidint>
<d2p1:Key>070ac325-7ab3-4a1b-9534-ee52babf42bc</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfguidint>
<d2p1:KeyValueOfguidint>
<d2p1:Key>234269df-96b3-43cb-8b95-ea6b9331960b</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>d4854167-ddd9-4e12-82e7-fe0c1898e902</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>d4854167-ddd9-4e12-82e7-fe0c1898e902</RowGuid>
</Promotion>
</Promotions>
<ShowRowGuid>c82eacf6-a5d7-4428-bf59-9d2c15e6196a</ShowRowGuid>
<TotalWithDiscount>4</TotalWithDiscount>
</Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PromotionValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Validated | Collection of Promotion |
None. |
|
| Failed | Collection of Promotion |
None. |
Response Formats
application/json, text/json
Sample:
{
"Validated": [
{
"RowGuid": "959bce67-c9e3-4088-aff5-6ca231154da9",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "959bce67-c9e3-4088-aff5-6ca231154da9",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"Failed": [
{
"RowGuid": "959bce67-c9e3-4088-aff5-6ca231154da9",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "959bce67-c9e3-4088-aff5-6ca231154da9",
"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>959bce67-c9e3-4088-aff5-6ca231154da9</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>959bce67-c9e3-4088-aff5-6ca231154da9</RowGuid>
</Promotion>
</Failed>
<Validated>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>959bce67-c9e3-4088-aff5-6ca231154da9</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>959bce67-c9e3-4088-aff5-6ca231154da9</RowGuid>
</Promotion>
</Validated>
</PromotionValidationResult>