POST api/Promotion
Request Information
URI Parameters
None.
Body Parameters
OrderName | 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": { "38f62096-c16d-4c7d-8c56-7808db7e4972": 2, "39e122c5-f03c-400b-a2a4-a3a1f724b491": 4 }, "DeliveryTypeRowGuid": "2148a47c-2156-4c6a-857a-baf25dfab1d3", "Promotions": [ { "RowGuid": "af310f32-af5e-4b43-b3ee-ff7d80e4d7b0", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "af310f32-af5e-4b43-b3ee-ff7d80e4d7b0", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "2072ac65-da97-4d41-8cf9-b38353c79825", "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>2148a47c-2156-4c6a-857a-baf25dfab1d3</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>38f62096-c16d-4c7d-8c56-7808db7e4972</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>39e122c5-f03c-400b-a2a4-a3a1f724b491</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>af310f32-af5e-4b43-b3ee-ff7d80e4d7b0</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>af310f32-af5e-4b43-b3ee-ff7d80e4d7b0</RowGuid> </Promotion> </Promotions> <ShowRowGuid>2072ac65-da97-4d41-8cf9-b38353c79825</ShowRowGuid> <TotalWithDiscount>4</TotalWithDiscount> </Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PromotionValidationResultName | Description | Type | Additional information |
---|---|---|---|
Validated | Collection of Promotion |
None. |
|
Failed | Collection of Promotion |
None. |
Response Formats
application/json, text/json
Sample:
{ "Validated": [ { "RowGuid": "4898ee63-ecb9-4641-b971-3f904adf69e3", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "4898ee63-ecb9-4641-b971-3f904adf69e3", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "Failed": [ { "RowGuid": "4898ee63-ecb9-4641-b971-3f904adf69e3", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "4898ee63-ecb9-4641-b971-3f904adf69e3", "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>4898ee63-ecb9-4641-b971-3f904adf69e3</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>4898ee63-ecb9-4641-b971-3f904adf69e3</RowGuid> </Promotion> </Failed> <Validated> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>4898ee63-ecb9-4641-b971-3f904adf69e3</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>4898ee63-ecb9-4641-b971-3f904adf69e3</RowGuid> </Promotion> </Validated> </PromotionValidationResult>