POST Order/CreateOrder

Request Information

URI Parameters

None.

Body Parameters

CreateOrderRequestModel
NameDescriptionTypeAdditional information
PoBox

string

None.

Note

string

None.

Basket

Collection of ApiBasketColorModel

None.

Request Formats

application/json, text/json

Sample:
{
  "PoBox": "sample string 1",
  "Note": "sample string 2",
  "Basket": [
    {
      "SupplierCode": "sample string 1",
      "ColorCode": "sample string 2",
      "ColorName": "sample string 3",
      "SubColorId": 1,
      "Items": [
        {
          "ProductStockCode": "sample string 1",
          "Quantity": 2,
          "Assembled": true,
          "HingeSide": "sample string 4",
          "DoorSide": "sample string 5",
          "OvenType": "sample string 6",
          "BackSplash": "sample string 7",
          "SinkCut": "sample string 8",
          "SinkVanityCut": "sample string 9",
          "ExposedSide": "sample string 10",
          "CustomColor": "sample string 11",
          "CustomColorName": "sample string 12",
          "Is45DegreeUpgrade": true,
          "Depth": 1.1,
          "Modifications": [
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            },
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            }
          ]
        },
        {
          "ProductStockCode": "sample string 1",
          "Quantity": 2,
          "Assembled": true,
          "HingeSide": "sample string 4",
          "DoorSide": "sample string 5",
          "OvenType": "sample string 6",
          "BackSplash": "sample string 7",
          "SinkCut": "sample string 8",
          "SinkVanityCut": "sample string 9",
          "ExposedSide": "sample string 10",
          "CustomColor": "sample string 11",
          "CustomColorName": "sample string 12",
          "Is45DegreeUpgrade": true,
          "Depth": 1.1,
          "Modifications": [
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            },
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            }
          ]
        }
      ]
    },
    {
      "SupplierCode": "sample string 1",
      "ColorCode": "sample string 2",
      "ColorName": "sample string 3",
      "SubColorId": 1,
      "Items": [
        {
          "ProductStockCode": "sample string 1",
          "Quantity": 2,
          "Assembled": true,
          "HingeSide": "sample string 4",
          "DoorSide": "sample string 5",
          "OvenType": "sample string 6",
          "BackSplash": "sample string 7",
          "SinkCut": "sample string 8",
          "SinkVanityCut": "sample string 9",
          "ExposedSide": "sample string 10",
          "CustomColor": "sample string 11",
          "CustomColorName": "sample string 12",
          "Is45DegreeUpgrade": true,
          "Depth": 1.1,
          "Modifications": [
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            },
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            }
          ]
        },
        {
          "ProductStockCode": "sample string 1",
          "Quantity": 2,
          "Assembled": true,
          "HingeSide": "sample string 4",
          "DoorSide": "sample string 5",
          "OvenType": "sample string 6",
          "BackSplash": "sample string 7",
          "SinkCut": "sample string 8",
          "SinkVanityCut": "sample string 9",
          "ExposedSide": "sample string 10",
          "CustomColor": "sample string 11",
          "CustomColorName": "sample string 12",
          "Is45DegreeUpgrade": true,
          "Depth": 1.1,
          "Modifications": [
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            },
            {
              "ProductStockCode": "sample string 1",
              "Quantity": 2
            }
          ]
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<CreateOrderRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VitaCabinetry.Model.Order">
  <Basket>
    <ApiBasketColorModel>
      <ColorCode>sample string 2</ColorCode>
      <ColorName>sample string 3</ColorName>
      <Items>
        <ApiBasketItemModel>
          <Assembled>true</Assembled>
          <BackSplash>sample string 7</BackSplash>
          <CustomColor>sample string 11</CustomColor>
          <CustomColorName>sample string 12</CustomColorName>
          <Depth>1.1</Depth>
          <DoorSide>sample string 5</DoorSide>
          <ExposedSide>sample string 10</ExposedSide>
          <HingeSide>sample string 4</HingeSide>
          <Is45DegreeUpgrade>true</Is45DegreeUpgrade>
          <Modifications>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
          </Modifications>
          <OvenType>sample string 6</OvenType>
          <ProductStockCode>sample string 1</ProductStockCode>
          <Quantity>2</Quantity>
          <SinkCut>sample string 8</SinkCut>
          <SinkVanityCut>sample string 9</SinkVanityCut>
        </ApiBasketItemModel>
        <ApiBasketItemModel>
          <Assembled>true</Assembled>
          <BackSplash>sample string 7</BackSplash>
          <CustomColor>sample string 11</CustomColor>
          <CustomColorName>sample string 12</CustomColorName>
          <Depth>1.1</Depth>
          <DoorSide>sample string 5</DoorSide>
          <ExposedSide>sample string 10</ExposedSide>
          <HingeSide>sample string 4</HingeSide>
          <Is45DegreeUpgrade>true</Is45DegreeUpgrade>
          <Modifications>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
          </Modifications>
          <OvenType>sample string 6</OvenType>
          <ProductStockCode>sample string 1</ProductStockCode>
          <Quantity>2</Quantity>
          <SinkCut>sample string 8</SinkCut>
          <SinkVanityCut>sample string 9</SinkVanityCut>
        </ApiBasketItemModel>
      </Items>
      <SubColorId>1</SubColorId>
      <SupplierCode>sample string 1</SupplierCode>
    </ApiBasketColorModel>
    <ApiBasketColorModel>
      <ColorCode>sample string 2</ColorCode>
      <ColorName>sample string 3</ColorName>
      <Items>
        <ApiBasketItemModel>
          <Assembled>true</Assembled>
          <BackSplash>sample string 7</BackSplash>
          <CustomColor>sample string 11</CustomColor>
          <CustomColorName>sample string 12</CustomColorName>
          <Depth>1.1</Depth>
          <DoorSide>sample string 5</DoorSide>
          <ExposedSide>sample string 10</ExposedSide>
          <HingeSide>sample string 4</HingeSide>
          <Is45DegreeUpgrade>true</Is45DegreeUpgrade>
          <Modifications>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
          </Modifications>
          <OvenType>sample string 6</OvenType>
          <ProductStockCode>sample string 1</ProductStockCode>
          <Quantity>2</Quantity>
          <SinkCut>sample string 8</SinkCut>
          <SinkVanityCut>sample string 9</SinkVanityCut>
        </ApiBasketItemModel>
        <ApiBasketItemModel>
          <Assembled>true</Assembled>
          <BackSplash>sample string 7</BackSplash>
          <CustomColor>sample string 11</CustomColor>
          <CustomColorName>sample string 12</CustomColorName>
          <Depth>1.1</Depth>
          <DoorSide>sample string 5</DoorSide>
          <ExposedSide>sample string 10</ExposedSide>
          <HingeSide>sample string 4</HingeSide>
          <Is45DegreeUpgrade>true</Is45DegreeUpgrade>
          <Modifications>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
            <ApiBasketModificationModel>
              <ProductStockCode>sample string 1</ProductStockCode>
              <Quantity>2</Quantity>
            </ApiBasketModificationModel>
          </Modifications>
          <OvenType>sample string 6</OvenType>
          <ProductStockCode>sample string 1</ProductStockCode>
          <Quantity>2</Quantity>
          <SinkCut>sample string 8</SinkCut>
          <SinkVanityCut>sample string 9</SinkVanityCut>
        </ApiBasketItemModel>
      </Items>
      <SubColorId>1</SubColorId>
      <SupplierCode>sample string 1</SupplierCode>
    </ApiBasketColorModel>
  </Basket>
  <Note>sample string 2</Note>
  <PoBox>sample string 1</PoBox>
</CreateOrderRequestModel>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />