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": { "57a4585a-adb7-49dd-8947-dfdf815bdfc1": 2, "ca554fca-c4af-4f23-8a8f-e7a4052fdc72": 4 }, "DeliveryTypeRowGuid": "12bd7dbf-9b95-40fb-b3e6-d27065bcf584", "Promotions": [ { "RowGuid": "c192942c-cccc-4a46-aa24-6ab3d34badf3", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "c192942c-cccc-4a46-aa24-6ab3d34badf3", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "c28126ef-9528-4361-afb1-136554c1137b", "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>12bd7dbf-9b95-40fb-b3e6-d27065bcf584</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>57a4585a-adb7-49dd-8947-dfdf815bdfc1</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>ca554fca-c4af-4f23-8a8f-e7a4052fdc72</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>c192942c-cccc-4a46-aa24-6ab3d34badf3</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>c192942c-cccc-4a46-aa24-6ab3d34badf3</RowGuid> </Promotion> </Promotions> <ShowRowGuid>c28126ef-9528-4361-afb1-136554c1137b</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": "9709936c-da81-4169-acf9-f0788ab79f3d", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "9709936c-da81-4169-acf9-f0788ab79f3d", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "Failed": [ { "RowGuid": "9709936c-da81-4169-acf9-f0788ab79f3d", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "9709936c-da81-4169-acf9-f0788ab79f3d", "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>9709936c-da81-4169-acf9-f0788ab79f3d</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>9709936c-da81-4169-acf9-f0788ab79f3d</RowGuid> </Promotion> </Failed> <Validated> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>9709936c-da81-4169-acf9-f0788ab79f3d</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>9709936c-da81-4169-acf9-f0788ab79f3d</RowGuid> </Promotion> </Validated> </PromotionValidationResult>