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": { "2611ef6f-8c40-434f-8801-d26685f1d259": 2, "491c2d58-2292-4b03-9eef-a68f1a1a8864": 4 }, "DeliveryTypeRowGuid": "aa7b3700-a432-4fc4-ad9e-c06dd819ae42", "Promotions": [ { "RowGuid": "09e5bdd8-20f9-4f8e-abcb-a8eedde90444", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "09e5bdd8-20f9-4f8e-abcb-a8eedde90444", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "ShowRowGuid": "123b694d-462f-44b9-9558-4ef88d7d8ae5", "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>aa7b3700-a432-4fc4-ad9e-c06dd819ae42</DeliveryTypeRowGuid> <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>2611ef6f-8c40-434f-8801-d26685f1d259</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>491c2d58-2292-4b03-9eef-a68f1a1a8864</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>09e5bdd8-20f9-4f8e-abcb-a8eedde90444</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>09e5bdd8-20f9-4f8e-abcb-a8eedde90444</RowGuid> </Promotion> </Promotions> <ShowRowGuid>123b694d-462f-44b9-9558-4ef88d7d8ae5</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": "c41709af-1250-48a6-9fbf-d8c8e0c175bb", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "c41709af-1250-48a6-9fbf-d8c8e0c175bb", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 } ], "Failed": [ { "RowGuid": "c41709af-1250-48a6-9fbf-d8c8e0c175bb", "Name": "sample string 2", "CouponCode": "sample string 3", "DiscountOnTotalOrderPrice": 4.0 }, { "RowGuid": "c41709af-1250-48a6-9fbf-d8c8e0c175bb", "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>c41709af-1250-48a6-9fbf-d8c8e0c175bb</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>c41709af-1250-48a6-9fbf-d8c8e0c175bb</RowGuid> </Promotion> </Failed> <Validated> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>c41709af-1250-48a6-9fbf-d8c8e0c175bb</RowGuid> </Promotion> <Promotion> <CouponCode>sample string 3</CouponCode> <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice> <Name>sample string 2</Name> <RowGuid>c41709af-1250-48a6-9fbf-d8c8e0c175bb</RowGuid> </Promotion> </Validated> </PromotionValidationResult>