POST api/Order/RedeemItem

Request Information

URI Parameters

None.

Body Parameters

RedeemOrderRequest
NameDescriptionTypeAdditional information
SubTotal

decimal number

None.

Total

decimal number

None.

Items

Collection of RedeemOrderItemRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "SubTotal": 1.0,
  "Total": 2.0,
  "Items": [
    {
      "ProductId": "45b04751-a941-49bc-a307-fa20247f5a7e",
      "ProductPriceId": "9a8ec892-e478-4676-a8d1-20d8533e0112",
      "Qty": 3,
      "UnitPrice": 4.0,
      "Modifiers": [
        {
          "ProductId": "0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d",
          "ModifierId": "db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c",
          "ModifierPriceId": "fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d",
          "Qty": 4,
          "UnitPrice": 5.0
        },
        {
          "ProductId": "0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d",
          "ModifierId": "db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c",
          "ModifierPriceId": "fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d",
          "Qty": 4,
          "UnitPrice": 5.0
        }
      ]
    },
    {
      "ProductId": "45b04751-a941-49bc-a307-fa20247f5a7e",
      "ProductPriceId": "9a8ec892-e478-4676-a8d1-20d8533e0112",
      "Qty": 3,
      "UnitPrice": 4.0,
      "Modifiers": [
        {
          "ProductId": "0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d",
          "ModifierId": "db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c",
          "ModifierPriceId": "fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d",
          "Qty": 4,
          "UnitPrice": 5.0
        },
        {
          "ProductId": "0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d",
          "ModifierId": "db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c",
          "ModifierPriceId": "fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d",
          "Qty": 4,
          "UnitPrice": 5.0
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<RedeemOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi2.Controllers">
  <Items>
    <RedeemOrderItemRequest>
      <Modifiers>
        <RedeemOrderItemModifierRequest>
          <ModifierId>db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c</ModifierId>
          <ModifierPriceId>fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d</ModifierPriceId>
          <ProductId>0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d</ProductId>
          <Qty>4</Qty>
          <UnitPrice>5</UnitPrice>
        </RedeemOrderItemModifierRequest>
        <RedeemOrderItemModifierRequest>
          <ModifierId>db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c</ModifierId>
          <ModifierPriceId>fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d</ModifierPriceId>
          <ProductId>0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d</ProductId>
          <Qty>4</Qty>
          <UnitPrice>5</UnitPrice>
        </RedeemOrderItemModifierRequest>
      </Modifiers>
      <ProductId>45b04751-a941-49bc-a307-fa20247f5a7e</ProductId>
      <ProductPriceId>9a8ec892-e478-4676-a8d1-20d8533e0112</ProductPriceId>
      <Qty>3</Qty>
      <UnitPrice>4</UnitPrice>
    </RedeemOrderItemRequest>
    <RedeemOrderItemRequest>
      <Modifiers>
        <RedeemOrderItemModifierRequest>
          <ModifierId>db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c</ModifierId>
          <ModifierPriceId>fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d</ModifierPriceId>
          <ProductId>0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d</ProductId>
          <Qty>4</Qty>
          <UnitPrice>5</UnitPrice>
        </RedeemOrderItemModifierRequest>
        <RedeemOrderItemModifierRequest>
          <ModifierId>db1e6b86-251f-4f9d-8c1a-150ddfbb2d5c</ModifierId>
          <ModifierPriceId>fb3ba051-2a4d-481f-8b52-2eb4dbafdf1d</ModifierPriceId>
          <ProductId>0ec8fa72-bf3b-47fe-bdeb-cb5bcc38811d</ProductId>
          <Qty>4</Qty>
          <UnitPrice>5</UnitPrice>
        </RedeemOrderItemModifierRequest>
      </Modifiers>
      <ProductId>45b04751-a941-49bc-a307-fa20247f5a7e</ProductId>
      <ProductPriceId>9a8ec892-e478-4676-a8d1-20d8533e0112</ProductPriceId>
      <Qty>3</Qty>
      <UnitPrice>4</UnitPrice>
    </RedeemOrderItemRequest>
  </Items>
  <SubTotal>1</SubTotal>
  <Total>2</Total>
</RedeemOrderRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RedeemOrderRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.