POST api/qm?IdEmpresa={IdEmpresa}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IdEmpresa

string

Required

Body Parameters

OrderReqRoot
NameDescriptionTypeAdditional information
timeWindow

Collection of TimeWindow

None.

orderItems

Collection of OrderItem

None.

poiId

integer

None.

code

string

None.

operation

string

None.

date

string

None.

Request Formats

application/json, text/json

Sample:
{
  "timeWindow": [
    {
      "from": "sample string 1",
      "to": "sample string 2"
    },
    {
      "from": "sample string 1",
      "to": "sample string 2"
    }
  ],
  "orderItems": [
    {
      "productCode": "sample string 1",
      "quantity": 2,
      "unitPrice": 3,
      "productId": 4
    },
    {
      "productCode": "sample string 1",
      "quantity": 2,
      "unitPrice": 3,
      "productId": 4
    }
  ],
  "poiId": 1,
  "code": "sample string 2",
  "operation": "sample string 3",
  "date": "sample string 4"
}

text/html

Sample:
{"timeWindow":[{"from":"sample string 1","to":"sample string 2"},{"from":"sample string 1","to":"sample string 2"}],"orderItems":[{"productCode":"sample string 1","quantity":2,"unitPrice":3,"productId":4},{"productCode":"sample string 1","quantity":2,"unitPrice":3,"productId":4}],"poiId":1,"code":"sample string 2","operation":"sample string 3","date":"sample string 4"}

application/xml, text/xml

Sample:
<Ordernew.OrderReq.OrderReqRoot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.webapplications1.Models.WS">
  <code>sample string 2</code>
  <date>sample string 4</date>
  <operation>sample string 3</operation>
  <orderItems>
    <Ordernew.OrderReq.OrderItem>
      <productCode>sample string 1</productCode>
      <productId>4</productId>
      <quantity>2</quantity>
      <unitPrice>3</unitPrice>
    </Ordernew.OrderReq.OrderItem>
    <Ordernew.OrderReq.OrderItem>
      <productCode>sample string 1</productCode>
      <productId>4</productId>
      <quantity>2</quantity>
      <unitPrice>3</unitPrice>
    </Ordernew.OrderReq.OrderItem>
  </orderItems>
  <poiId>1</poiId>
  <timeWindow>
    <Ordernew.OrderReq.TimeWindow>
      <from>sample string 1</from>
      <to>sample string 2</to>
    </Ordernew.OrderReq.TimeWindow>
    <Ordernew.OrderReq.TimeWindow>
      <from>sample string 1</from>
      <to>sample string 2</to>
    </Ordernew.OrderReq.TimeWindow>
  </timeWindow>
</Ordernew.OrderReq.OrderReqRoot>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Reply
NameDescriptionTypeAdditional information
message

string

None.

result

integer

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "result": 2,
  "data": {}
}

text/html

Sample:
{"message":"sample string 1","result":2,"data":{}}

application/xml, text/xml

Sample:
<Reply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.webapplications1.Models.WS">
  <data />
  <message>sample string 1</message>
  <result>2</result>
</Reply>