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": {
"de4baa34-b425-4a10-8c7f-c43249ef6bfa": 2,
"4b8276d0-e275-4367-89a6-fc76442f67fd": 4
},
"DeliveryTypeRowGuid": "36f65f34-0627-4166-9e48-19a545493c7e",
"Promotions": [
{
"RowGuid": "05fb3f23-3f36-4ccd-9495-93e20f554c19",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "05fb3f23-3f36-4ccd-9495-93e20f554c19",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"ShowRowGuid": "f65d97e2-f316-4a41-a2d6-69f3b76aa95e",
"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>36f65f34-0627-4166-9e48-19a545493c7e</DeliveryTypeRowGuid>
<OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidint>
<d2p1:Key>de4baa34-b425-4a10-8c7f-c43249ef6bfa</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfguidint>
<d2p1:KeyValueOfguidint>
<d2p1:Key>4b8276d0-e275-4367-89a6-fc76442f67fd</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>05fb3f23-3f36-4ccd-9495-93e20f554c19</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>05fb3f23-3f36-4ccd-9495-93e20f554c19</RowGuid>
</Promotion>
</Promotions>
<ShowRowGuid>f65d97e2-f316-4a41-a2d6-69f3b76aa95e</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": "17a1e5a3-5696-42e0-b0c4-38e0b792b19e",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "17a1e5a3-5696-42e0-b0c4-38e0b792b19e",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"Failed": [
{
"RowGuid": "17a1e5a3-5696-42e0-b0c4-38e0b792b19e",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "17a1e5a3-5696-42e0-b0c4-38e0b792b19e",
"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>17a1e5a3-5696-42e0-b0c4-38e0b792b19e</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>17a1e5a3-5696-42e0-b0c4-38e0b792b19e</RowGuid>
</Promotion>
</Failed>
<Validated>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>17a1e5a3-5696-42e0-b0c4-38e0b792b19e</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>17a1e5a3-5696-42e0-b0c4-38e0b792b19e</RowGuid>
</Promotion>
</Validated>
</PromotionValidationResult>