POST api/SHOPORDER

Request Information

URI Parameters

None.

Body Parameters

SHOPORDERS
NameDescriptionTypeAdditional information
ACCOUNT

string

None.

TOTALPRICE

decimal number

None.

DISCOUNT

decimal number

None.

NETTOTAL

decimal number

None.

CCOMMENT

string

None.

STATUS

integer

None.

DELIVERYTYPE

string

None.

ORDERTYPE

string

None.

FIRSTNAME

string

None.

LASTNAME

string

None.

Companyname

string

None.

country

string

None.

streetadd1

string

None.

streetadd2

string

None.

town

string

None.

state

string

None.

postalcode

string

None.

phone

string

None.

COUPON

string

None.

ORDER

Collection of SHOPORDERDET

None.

Request Formats

application/json, text/json

Sample:
{
  "ACCOUNT": "sample string 1",
  "TOTALPRICE": 2.0,
  "DISCOUNT": 3.0,
  "NETTOTAL": 4.0,
  "CCOMMENT": "sample string 5",
  "STATUS": 6,
  "DELIVERYTYPE": "sample string 7",
  "ORDERTYPE": "sample string 8",
  "FIRSTNAME": "sample string 9",
  "LASTNAME": "sample string 10",
  "Companyname": "sample string 11",
  "country": "sample string 12",
  "streetadd1": "sample string 13",
  "streetadd2": "sample string 14",
  "town": "sample string 15",
  "state": "sample string 16",
  "postalcode": "sample string 17",
  "phone": "sample string 18",
  "COUPON": "sample string 19",
  "ORDER": [
    {
      "ITEMID": 1,
      "ITEMNAME": "sample string 2",
      "QTY": 3.0,
      "UNIT": "sample string 4",
      "PRICE": 5.0,
      "DISCOUNT1": 6.0,
      "TOTALPRICE1": 7.0,
      "ITEMDETAILS": "sample string 8",
      "ITEMDCLASS": "sample string 9",
      "indexe": 10,
      "ORDERDC": [
        {
          "PRODUCTID": 1,
          "ORD": [
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            },
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            }
          ]
        },
        {
          "PRODUCTID": 1,
          "ORD": [
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            },
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            }
          ]
        }
      ]
    },
    {
      "ITEMID": 1,
      "ITEMNAME": "sample string 2",
      "QTY": 3.0,
      "UNIT": "sample string 4",
      "PRICE": 5.0,
      "DISCOUNT1": 6.0,
      "TOTALPRICE1": 7.0,
      "ITEMDETAILS": "sample string 8",
      "ITEMDCLASS": "sample string 9",
      "indexe": 10,
      "ORDERDC": [
        {
          "PRODUCTID": 1,
          "ORD": [
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            },
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            }
          ]
        },
        {
          "PRODUCTID": 1,
          "ORD": [
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            },
            {
              "CUSTID": 1,
              "CUSTNAME": "sample string 2",
              "CUSTDESC": "sample string 3",
              "CID": 4
            }
          ]
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<SHOPORDERS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WEBAPIDEMO">
  <ACCOUNT>sample string 1</ACCOUNT>
  <CCOMMENT>sample string 5</CCOMMENT>
  <COUPON>sample string 19</COUPON>
  <Companyname>sample string 11</Companyname>
  <DELIVERYTYPE>sample string 7</DELIVERYTYPE>
  <DISCOUNT>3</DISCOUNT>
  <FIRSTNAME>sample string 9</FIRSTNAME>
  <LASTNAME>sample string 10</LASTNAME>
  <NETTOTAL>4</NETTOTAL>
  <ORDER>
    <SHOPORDERDET>
      <DISCOUNT1>6</DISCOUNT1>
      <ITEMDCLASS>sample string 9</ITEMDCLASS>
      <ITEMDETAILS>sample string 8</ITEMDETAILS>
      <ITEMID>1</ITEMID>
      <ITEMNAME>sample string 2</ITEMNAME>
      <ORDERDC>
        <SHOPORDERPEODUCT>
          <ORD>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
          </ORD>
          <PRODUCTID>1</PRODUCTID>
        </SHOPORDERPEODUCT>
        <SHOPORDERPEODUCT>
          <ORD>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
          </ORD>
          <PRODUCTID>1</PRODUCTID>
        </SHOPORDERPEODUCT>
      </ORDERDC>
      <PRICE>5</PRICE>
      <QTY>3</QTY>
      <TOTALPRICE1>7</TOTALPRICE1>
      <UNIT>sample string 4</UNIT>
      <indexe>10</indexe>
    </SHOPORDERDET>
    <SHOPORDERDET>
      <DISCOUNT1>6</DISCOUNT1>
      <ITEMDCLASS>sample string 9</ITEMDCLASS>
      <ITEMDETAILS>sample string 8</ITEMDETAILS>
      <ITEMID>1</ITEMID>
      <ITEMNAME>sample string 2</ITEMNAME>
      <ORDERDC>
        <SHOPORDERPEODUCT>
          <ORD>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
          </ORD>
          <PRODUCTID>1</PRODUCTID>
        </SHOPORDERPEODUCT>
        <SHOPORDERPEODUCT>
          <ORD>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
            <SHOPORDERDETCUSTO>
              <CID>4</CID>
              <CUSTDESC>sample string 3</CUSTDESC>
              <CUSTID>1</CUSTID>
              <CUSTNAME>sample string 2</CUSTNAME>
            </SHOPORDERDETCUSTO>
          </ORD>
          <PRODUCTID>1</PRODUCTID>
        </SHOPORDERPEODUCT>
      </ORDERDC>
      <PRICE>5</PRICE>
      <QTY>3</QTY>
      <TOTALPRICE1>7</TOTALPRICE1>
      <UNIT>sample string 4</UNIT>
      <indexe>10</indexe>
    </SHOPORDERDET>
  </ORDER>
  <ORDERTYPE>sample string 8</ORDERTYPE>
  <STATUS>6</STATUS>
  <TOTALPRICE>2</TOTALPRICE>
  <country>sample string 12</country>
  <phone>sample string 18</phone>
  <postalcode>sample string 17</postalcode>
  <state>sample string 16</state>
  <streetadd1>sample string 13</streetadd1>
  <streetadd2>sample string 14</streetadd2>
  <town>sample string 15</town>
</SHOPORDERS>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.