POST api/Order

Request Information

URI Parameters

None.

Body Parameters

order
NameDescriptionTypeAdditional information
customerId

string

None.

orderId

string

None.

deliveryTime

string

None.

customerEmail

string

None.

site

string

None.

lines

Collection of product

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": "sample string 1",
  "orderId": "sample string 2",
  "deliveryTime": "sample string 3",
  "customerEmail": "sample string 4",
  "site": "sample string 5",
  "lines": [
    {
      "productId": "sample string 1",
      "quantity": "sample string 2",
      "amount": "sample string 3",
      "detail": [
        {
          "productId": "sample string 1",
          "amount": "sample string 2",
          "option": "sample string 3"
        },
        {
          "productId": "sample string 1",
          "amount": "sample string 2",
          "option": "sample string 3"
        }
      ]
    },
    {
      "productId": "sample string 1",
      "quantity": "sample string 2",
      "amount": "sample string 3",
      "detail": [
        {
          "productId": "sample string 1",
          "amount": "sample string 2",
          "option": "sample string 3"
        },
        {
          "productId": "sample string 1",
          "amount": "sample string 2",
          "option": "sample string 3"
        }
      ]
    }
  ]
}

text/html

Sample:
{"customerId":"sample string 1","orderId":"sample string 2","deliveryTime":"sample string 3","customerEmail":"sample string 4","site":"sample string 5","lines":[{"productId":"sample string 1","quantity":"sample string 2","amount":"sample string 3","detail":[{"productId":"sample string 1","amount":"sample string 2","option":"sample string 3"},{"productId":"sample string 1","amount":"sample string 2","option":"sample string 3"}]},{"productId":"sample string 1","quantity":"sample string 2","amount":"sample string 3","detail":[{"productId":"sample string 1","amount":"sample string 2","option":"sample string 3"},{"productId":"sample string 1","amount":"sample string 2","option":"sample string 3"}]}]}

application/xml, text/xml

Sample:
<order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/web2019solu.Models">
  <customerEmail>sample string 4</customerEmail>
  <customerId>sample string 1</customerId>
  <deliveryTime>sample string 3</deliveryTime>
  <lines>
    <product>
      <amount>sample string 3</amount>
      <detail>
        <option2>
          <amount>sample string 2</amount>
          <option>sample string 3</option>
          <productId>sample string 1</productId>
        </option2>
        <option2>
          <amount>sample string 2</amount>
          <option>sample string 3</option>
          <productId>sample string 1</productId>
        </option2>
      </detail>
      <productId>sample string 1</productId>
      <quantity>sample string 2</quantity>
    </product>
    <product>
      <amount>sample string 3</amount>
      <detail>
        <option2>
          <amount>sample string 2</amount>
          <option>sample string 3</option>
          <productId>sample string 1</productId>
        </option2>
        <option2>
          <amount>sample string 2</amount>
          <option>sample string 3</option>
          <productId>sample string 1</productId>
        </option2>
      </detail>
      <productId>sample string 1</productId>
      <quantity>sample string 2</quantity>
    </product>
  </lines>
  <orderId>sample string 2</orderId>
  <site>sample string 5</site>
</order>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.