POST api/SalesOrder

Request Information

URI Parameters

None.

Body Parameters

SalesOrderRequestData
NameDescriptionTypeAdditional information
Orders

Collection of SalesOrder

None.

Request Formats

application/json, text/json

Sample:
{
  "Orders": [
    {
      "CO": "sample string 1",
      "DIV": "sample string 2",
      "ORDERNO": 3,
      "ORDERDATE": "sample string 4",
      "CUSTNO": "sample string 5",
      "SHIPDATE": "sample string 6",
      "CANCELDATE": "sample string 7",
      "PONO": "sample string 8",
      "DEPT": "sample string 9",
      "VIA": "sample string 10",
      "UPCEAN": "sample string 11",
      "TOTALQTY": 12,
      "SHIPTO": [
        {
          "ADDRESS": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STORE": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STYLES": [
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            },
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            }
          ]
        },
        {
          "ADDRESS": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STORE": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STYLES": [
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            },
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            }
          ]
        }
      ],
      "CUSTNAME": "sample string 13",
      "CUSTADDRESS1": "sample string 14",
      "CUSTADDRESS2": "sample string 15",
      "CUSTCITY": "sample string 16",
      "CUSTSTATE": "sample string 17",
      "CUSTZIP": "sample string 18",
      "BATCHTOT": 1
    },
    {
      "CO": "sample string 1",
      "DIV": "sample string 2",
      "ORDERNO": 3,
      "ORDERDATE": "sample string 4",
      "CUSTNO": "sample string 5",
      "SHIPDATE": "sample string 6",
      "CANCELDATE": "sample string 7",
      "PONO": "sample string 8",
      "DEPT": "sample string 9",
      "VIA": "sample string 10",
      "UPCEAN": "sample string 11",
      "TOTALQTY": 12,
      "SHIPTO": [
        {
          "ADDRESS": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STORE": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STYLES": [
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            },
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            }
          ]
        },
        {
          "ADDRESS": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STORE": {
            "CODE": 1,
            "NAME": "sample string 2",
            "ADDRESS1": "sample string 3",
            "ADDRESS2": "sample string 4",
            "CITY": "sample string 5",
            "STATE": "sample string 6",
            "ZIP": "sample string 7"
          },
          "STYLES": [
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            },
            {
              "CODE": "sample string 1",
              "COLORCODE": "sample string 2",
              "SIZE": "sample string 3",
              "QTY": 4,
              "PRICE": "sample string 5",
              "UPCEAN": "sample string 6",
              "ALTSKU": "sample string 7"
            }
          ]
        }
      ],
      "CUSTNAME": "sample string 13",
      "CUSTADDRESS1": "sample string 14",
      "CUSTADDRESS2": "sample string 15",
      "CUSTCITY": "sample string 16",
      "CUSTSTATE": "sample string 17",
      "CUSTZIP": "sample string 18",
      "BATCHTOT": 1
    }
  ]
}

application/xml, text/xml

Sample:
<SalesOrderRequestData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HanoverAPI.Controllers">
  <Orders>
    <SalesOrder>
      <BATCHTOT>1</BATCHTOT>
      <CANCELDATE>sample string 7</CANCELDATE>
      <CO>sample string 1</CO>
      <CUSTADDRESS1>sample string 14</CUSTADDRESS1>
      <CUSTADDRESS2>sample string 15</CUSTADDRESS2>
      <CUSTCITY>sample string 16</CUSTCITY>
      <CUSTNAME>sample string 13</CUSTNAME>
      <CUSTNO>sample string 5</CUSTNO>
      <CUSTSTATE>sample string 17</CUSTSTATE>
      <CUSTZIP>sample string 18</CUSTZIP>
      <DEPT>sample string 9</DEPT>
      <DIV>sample string 2</DIV>
      <ORDERDATE>sample string 4</ORDERDATE>
      <ORDERNO>3</ORDERNO>
      <PONO>sample string 8</PONO>
      <SHIPDATE>sample string 6</SHIPDATE>
      <SHIPTO>
        <SOSHIPTO>
          <ADDRESS>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </ADDRESS>
          <STORE>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </STORE>
          <STYLES>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
          </STYLES>
        </SOSHIPTO>
        <SOSHIPTO>
          <ADDRESS>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </ADDRESS>
          <STORE>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </STORE>
          <STYLES>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
          </STYLES>
        </SOSHIPTO>
      </SHIPTO>
      <TOTALQTY>12</TOTALQTY>
      <UPCEAN>sample string 11</UPCEAN>
      <VIA>sample string 10</VIA>
    </SalesOrder>
    <SalesOrder>
      <BATCHTOT>1</BATCHTOT>
      <CANCELDATE>sample string 7</CANCELDATE>
      <CO>sample string 1</CO>
      <CUSTADDRESS1>sample string 14</CUSTADDRESS1>
      <CUSTADDRESS2>sample string 15</CUSTADDRESS2>
      <CUSTCITY>sample string 16</CUSTCITY>
      <CUSTNAME>sample string 13</CUSTNAME>
      <CUSTNO>sample string 5</CUSTNO>
      <CUSTSTATE>sample string 17</CUSTSTATE>
      <CUSTZIP>sample string 18</CUSTZIP>
      <DEPT>sample string 9</DEPT>
      <DIV>sample string 2</DIV>
      <ORDERDATE>sample string 4</ORDERDATE>
      <ORDERNO>3</ORDERNO>
      <PONO>sample string 8</PONO>
      <SHIPDATE>sample string 6</SHIPDATE>
      <SHIPTO>
        <SOSHIPTO>
          <ADDRESS>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </ADDRESS>
          <STORE>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </STORE>
          <STYLES>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
          </STYLES>
        </SOSHIPTO>
        <SOSHIPTO>
          <ADDRESS>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </ADDRESS>
          <STORE>
            <ADDRESS1>sample string 3</ADDRESS1>
            <ADDRESS2>sample string 4</ADDRESS2>
            <CITY>sample string 5</CITY>
            <CODE>1</CODE>
            <NAME>sample string 2</NAME>
            <STATE>sample string 6</STATE>
            <ZIP>sample string 7</ZIP>
          </STORE>
          <STYLES>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
            <SOSTYLE>
              <ALTSKU>sample string 7</ALTSKU>
              <CODE>sample string 1</CODE>
              <COLORCODE>sample string 2</COLORCODE>
              <PRICE>sample string 5</PRICE>
              <QTY>4</QTY>
              <SIZE>sample string 3</SIZE>
              <UPCEAN>sample string 6</UPCEAN>
            </SOSTYLE>
          </STYLES>
        </SOSHIPTO>
      </SHIPTO>
      <TOTALQTY>12</TOTALQTY>
      <UPCEAN>sample string 11</UPCEAN>
      <VIA>sample string 10</VIA>
    </SalesOrder>
  </Orders>
</SalesOrderRequestData>

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

Response Information

Resource Description

ResponseBaseOfSalesOrderResult
NameDescriptionTypeAdditional information
status

Status

None.

result

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": {
    "type": "Info",
    "code": "sample string 1",
    "message": "sample string 2",
    "refCode": "sample string 3",
    "stackTrace": "sample string 4",
    "requestErrors": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  }
}

application/xml, text/xml

Sample:
<ResponseBaseOfArrayOfSalesOrderResultRecordjDs_SOEIA xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HanoverAPI.Models">
  <result xmlns:d2p1="http://schemas.datacontract.org/2004/07/HanoverAPI.Controllers" i:nil="true" />
  <status>
    <code>sample string 1</code>
    <message>sample string 2</message>
    <refCode>sample string 3</refCode>
    <requestErrors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </requestErrors>
    <stackTrace>sample string 4</stackTrace>
    <type>Info</type>
  </status>
</ResponseBaseOfArrayOfSalesOrderResultRecordjDs_SOEIA>