POST api/Promotion

Request Information

URI Parameters

None.

Body Parameters

Order
NameDescriptionTypeAdditional 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": {
    "272b695e-6a90-4158-a52e-79cde55ba639": 2,
    "83243233-d373-471a-8505-1bec2d92e5eb": 4
  },
  "DeliveryTypeRowGuid": "d618290e-c888-4055-84cf-eb3b6ef289cb",
  "Promotions": [
    {
      "RowGuid": "cdb8664a-57bb-4dfc-9c52-41e7f9ac28a0",
      "Name": "sample string 2",
      "CouponCode": "sample string 3",
      "DiscountOnTotalOrderPrice": 4.0
    },
    {
      "RowGuid": "cdb8664a-57bb-4dfc-9c52-41e7f9ac28a0",
      "Name": "sample string 2",
      "CouponCode": "sample string 3",
      "DiscountOnTotalOrderPrice": 4.0
    }
  ],
  "ShowRowGuid": "02a92f8d-1ce2-4d02-bd45-d4d1119617c7",
  "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>d618290e-c888-4055-84cf-eb3b6ef289cb</DeliveryTypeRowGuid>
  <OrderedTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfguidint>
      <d2p1:Key>272b695e-6a90-4158-a52e-79cde55ba639</d2p1:Key>
      <d2p1:Value>2</d2p1:Value>
    </d2p1:KeyValueOfguidint>
    <d2p1:KeyValueOfguidint>
      <d2p1:Key>83243233-d373-471a-8505-1bec2d92e5eb</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>cdb8664a-57bb-4dfc-9c52-41e7f9ac28a0</RowGuid>
    </Promotion>
    <Promotion>
      <CouponCode>sample string 3</CouponCode>
      <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
      <Name>sample string 2</Name>
      <RowGuid>cdb8664a-57bb-4dfc-9c52-41e7f9ac28a0</RowGuid>
    </Promotion>
  </Promotions>
  <ShowRowGuid>02a92f8d-1ce2-4d02-bd45-d4d1119617c7</ShowRowGuid>
  <TotalWithDiscount>4</TotalWithDiscount>
</Order>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PromotionValidationResult
NameDescriptionTypeAdditional information
Validated

Collection of Promotion

None.

Failed

Collection of Promotion

None.

Response Formats

application/json, text/json

Sample:
{
  "Validated": [
    {
      "RowGuid": "7f897962-e471-404c-a0df-3e898b9a442e",
      "Name": "sample string 2",
      "CouponCode": "sample string 3",
      "DiscountOnTotalOrderPrice": 4.0
    },
    {
      "RowGuid": "7f897962-e471-404c-a0df-3e898b9a442e",
      "Name": "sample string 2",
      "CouponCode": "sample string 3",
      "DiscountOnTotalOrderPrice": 4.0
    }
  ],
  "Failed": [
    {
      "RowGuid": "7f897962-e471-404c-a0df-3e898b9a442e",
      "Name": "sample string 2",
      "CouponCode": "sample string 3",
      "DiscountOnTotalOrderPrice": 4.0
    },
    {
      "RowGuid": "7f897962-e471-404c-a0df-3e898b9a442e",
      "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>7f897962-e471-404c-a0df-3e898b9a442e</RowGuid>
    </Promotion>
    <Promotion>
      <CouponCode>sample string 3</CouponCode>
      <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
      <Name>sample string 2</Name>
      <RowGuid>7f897962-e471-404c-a0df-3e898b9a442e</RowGuid>
    </Promotion>
  </Failed>
  <Validated>
    <Promotion>
      <CouponCode>sample string 3</CouponCode>
      <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
      <Name>sample string 2</Name>
      <RowGuid>7f897962-e471-404c-a0df-3e898b9a442e</RowGuid>
    </Promotion>
    <Promotion>
      <CouponCode>sample string 3</CouponCode>
      <DiscountOnTotalOrderPrice>4</DiscountOnTotalOrderPrice>
      <Name>sample string 2</Name>
      <RowGuid>7f897962-e471-404c-a0df-3e898b9a442e</RowGuid>
    </Promotion>
  </Validated>
</PromotionValidationResult>