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": {
"826b5fe6-005f-48b1-a3fc-58bf2c133593": 2,
"044a634f-e9fb-4f5d-9406-deeb56c15fd5": 4
},
"DeliveryTypeRowGuid": "4cceb98a-ce21-4f97-ba03-130c9fff2607",
"Promotions": [
{
"RowGuid": "925fe2ef-70f5-4263-b1c8-06a891b75390",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "925fe2ef-70f5-4263-b1c8-06a891b75390",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"ShowRowGuid": "5eac83de-c53b-449f-a338-c260608e3dfa",
"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>4cceb98a-ce21-4f97-ba03-130c9fff2607</DeliveryTypeRowGuid>
<OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidint>
<d2p1:Key>826b5fe6-005f-48b1-a3fc-58bf2c133593</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfguidint>
<d2p1:KeyValueOfguidint>
<d2p1:Key>044a634f-e9fb-4f5d-9406-deeb56c15fd5</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>925fe2ef-70f5-4263-b1c8-06a891b75390</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>925fe2ef-70f5-4263-b1c8-06a891b75390</RowGuid>
</Promotion>
</Promotions>
<ShowRowGuid>5eac83de-c53b-449f-a338-c260608e3dfa</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": "4266eb57-e968-4d6c-b3cb-7ce89c728a01",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "4266eb57-e968-4d6c-b3cb-7ce89c728a01",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
}
],
"Failed": [
{
"RowGuid": "4266eb57-e968-4d6c-b3cb-7ce89c728a01",
"Name": "sample string 2",
"CouponCode": "sample string 3",
"DiscountOnTotalOrderPrice": 4.0
},
{
"RowGuid": "4266eb57-e968-4d6c-b3cb-7ce89c728a01",
"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>4266eb57-e968-4d6c-b3cb-7ce89c728a01</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>4266eb57-e968-4d6c-b3cb-7ce89c728a01</RowGuid>
</Promotion>
</Failed>
<Validated>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>4266eb57-e968-4d6c-b3cb-7ce89c728a01</RowGuid>
</Promotion>
<Promotion>
<CouponCode>sample string 3</CouponCode>
<DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
<Name>sample string 2</Name>
<RowGuid>4266eb57-e968-4d6c-b3cb-7ce89c728a01</RowGuid>
</Promotion>
</Validated>
</PromotionValidationResult>