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": {
"f62f8e31-eb97-4474-bf93-53ed6311df13": 2,
"adcb517c-be77-4fa4-8073-f87669288f03": 4
},
"DeliveryTypeRowGuid": "e37d0fc1-7acf-4ee5-8c41-4c8d045e9296",
"Promotions": [
{
"RowGuid": "a73fd0a5-bf29-470b-b740-deac82f931b5",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "a73fd0a5-bf29-470b-b740-deac82f931b5",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"ShowRowGuid": "be42cfce-de3c-4ea6-874d-4de792af7c54",
"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>e37d0fc1-7acf-4ee5-8c41-4c8d045e9296</DeliveryTypeRowGuid>
<OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidint>
<d2p1:Key>f62f8e31-eb97-4474-bf93-53ed6311df13</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfguidint>
<d2p1:KeyValueOfguidint>
<d2p1:Key>adcb517c-be77-4fa4-8073-f87669288f03</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>a73fd0a5-bf29-470b-b740-deac82f931b5</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>a73fd0a5-bf29-470b-b740-deac82f931b5</RowGuid>
</Promotion>
</Promotions>
<ShowRowGuid>be42cfce-de3c-4ea6-874d-4de792af7c54</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": "d4273e5f-25c1-471d-89ff-fe44f2430434",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "d4273e5f-25c1-471d-89ff-fe44f2430434",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"Failed": [
{
"RowGuid": "d4273e5f-25c1-471d-89ff-fe44f2430434",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "d4273e5f-25c1-471d-89ff-fe44f2430434",
"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>d4273e5f-25c1-471d-89ff-fe44f2430434</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>d4273e5f-25c1-471d-89ff-fe44f2430434</RowGuid>
</Promotion>
</Failed>
<Validated>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>d4273e5f-25c1-471d-89ff-fe44f2430434</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>d4273e5f-25c1-471d-89ff-fe44f2430434</RowGuid>
</Promotion>
</Validated>
</PromotionValidationResult>