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": {
"8dd83ad4-5ed2-4fad-aee9-523a28d2fd25": 2,
"04ac8e09-2cbd-4508-ab05-2b044a51a2ca": 4
},
"DeliveryTypeRowGuid": "2b92c9f3-ad3b-44d8-9ee5-615627a7a1c9",
"Promotions": [
{
"RowGuid": "53ef7037-6320-4d29-803b-2eb8ba93a7fd",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "53ef7037-6320-4d29-803b-2eb8ba93a7fd",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"ShowRowGuid": "2d7e8be4-686a-4cb1-b26c-41e2346e14fd",
"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>2b92c9f3-ad3b-44d8-9ee5-615627a7a1c9</DeliveryTypeRowGuid>
<OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidint>
<d2p1:Key>8dd83ad4-5ed2-4fad-aee9-523a28d2fd25</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfguidint>
<d2p1:KeyValueOfguidint>
<d2p1:Key>04ac8e09-2cbd-4508-ab05-2b044a51a2ca</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>53ef7037-6320-4d29-803b-2eb8ba93a7fd</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>53ef7037-6320-4d29-803b-2eb8ba93a7fd</RowGuid>
</Promotion>
</Promotions>
<ShowRowGuid>2d7e8be4-686a-4cb1-b26c-41e2346e14fd</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": "38490104-53db-4b1c-91dc-7db69c72c823",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "38490104-53db-4b1c-91dc-7db69c72c823",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"Failed": [
{
"RowGuid": "38490104-53db-4b1c-91dc-7db69c72c823",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "38490104-53db-4b1c-91dc-7db69c72c823",
"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>38490104-53db-4b1c-91dc-7db69c72c823</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>38490104-53db-4b1c-91dc-7db69c72c823</RowGuid>
</Promotion>
</Failed>
<Validated>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>38490104-53db-4b1c-91dc-7db69c72c823</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>38490104-53db-4b1c-91dc-7db69c72c823</RowGuid>
</Promotion>
</Validated>
</PromotionValidationResult>