POST api/Order/KioskPlaceOrder

Request Information

URI Parameters

None.

Body Parameters

KioskOrderRequest
NameDescriptionTypeAdditional information
StoreId

globally unique identifier

None.

Items

Collection of OrderItemRequest

None.

CardNumber

string

None.

IsPaid

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "StoreId": "f6061fe2-7191-4403-bd94-af14ebd4b05b",
  "Items": [
    {
      "ProductId": "c22c2ed1-d636-4adc-819f-941b611850ee",
      "ProductPriceId": "cfe92e10-6e03-4d80-9317-6dbe7a3c5356",
      "Qty": 3,
      "Modifiers": [
        {
          "ModifierId": "11af88c2-84ad-4f8c-8150-16d5646bdf1c",
          "ModifierPriceId": "a7c26e09-2ec7-4eae-8d07-e460c0d989ee",
          "Qty": 3
        },
        {
          "ModifierId": "11af88c2-84ad-4f8c-8150-16d5646bdf1c",
          "ModifierPriceId": "a7c26e09-2ec7-4eae-8d07-e460c0d989ee",
          "Qty": 3
        }
      ]
    },
    {
      "ProductId": "c22c2ed1-d636-4adc-819f-941b611850ee",
      "ProductPriceId": "cfe92e10-6e03-4d80-9317-6dbe7a3c5356",
      "Qty": 3,
      "Modifiers": [
        {
          "ModifierId": "11af88c2-84ad-4f8c-8150-16d5646bdf1c",
          "ModifierPriceId": "a7c26e09-2ec7-4eae-8d07-e460c0d989ee",
          "Qty": 3
        },
        {
          "ModifierId": "11af88c2-84ad-4f8c-8150-16d5646bdf1c",
          "ModifierPriceId": "a7c26e09-2ec7-4eae-8d07-e460c0d989ee",
          "Qty": 3
        }
      ]
    }
  ],
  "CardNumber": "sample string 2",
  "IsPaid": true
}

application/xml, text/xml

Sample:
<KioskOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi2.Controllers">
  <CardNumber>sample string 2</CardNumber>
  <IsPaid>true</IsPaid>
  <Items>
    <OrderItemRequest>
      <Modifiers>
        <ModifierRequest>
          <ModifierId>11af88c2-84ad-4f8c-8150-16d5646bdf1c</ModifierId>
          <ModifierPriceId>a7c26e09-2ec7-4eae-8d07-e460c0d989ee</ModifierPriceId>
          <Qty>3</Qty>
        </ModifierRequest>
        <ModifierRequest>
          <ModifierId>11af88c2-84ad-4f8c-8150-16d5646bdf1c</ModifierId>
          <ModifierPriceId>a7c26e09-2ec7-4eae-8d07-e460c0d989ee</ModifierPriceId>
          <Qty>3</Qty>
        </ModifierRequest>
      </Modifiers>
      <ProductId>c22c2ed1-d636-4adc-819f-941b611850ee</ProductId>
      <ProductPriceId>cfe92e10-6e03-4d80-9317-6dbe7a3c5356</ProductPriceId>
      <Qty>3</Qty>
    </OrderItemRequest>
    <OrderItemRequest>
      <Modifiers>
        <ModifierRequest>
          <ModifierId>11af88c2-84ad-4f8c-8150-16d5646bdf1c</ModifierId>
          <ModifierPriceId>a7c26e09-2ec7-4eae-8d07-e460c0d989ee</ModifierPriceId>
          <Qty>3</Qty>
        </ModifierRequest>
        <ModifierRequest>
          <ModifierId>11af88c2-84ad-4f8c-8150-16d5646bdf1c</ModifierId>
          <ModifierPriceId>a7c26e09-2ec7-4eae-8d07-e460c0d989ee</ModifierPriceId>
          <Qty>3</Qty>
        </ModifierRequest>
      </Modifiers>
      <ProductId>c22c2ed1-d636-4adc-819f-941b611850ee</ProductId>
      <ProductPriceId>cfe92e10-6e03-4d80-9317-6dbe7a3c5356</ProductPriceId>
      <Qty>3</Qty>
    </OrderItemRequest>
  </Items>
  <StoreId>f6061fe2-7191-4403-bd94-af14ebd4b05b</StoreId>
</KioskOrderRequest>

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 'KioskOrderRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.