POST api/order/PlaceOrder

Request Information

URI Parameters

None.

Body Parameters

OrderPlaceRequest
NameDescriptionTypeAdditional information
StockistId

integer

None.

TourPlanDetailId

integer

None.

BusinessPartnerId

integer

None.

TotalAmount

decimal number

None.

Remark

string

None.

PlaceByNetPrice

boolean

None.

Phone1

string

None.

BMEmployeeId

integer

None.

OrderProductList

Collection of OrderPlaceProductRequest

None.

OrderGiftProductList

Collection of OrderGiftProductRequest

None.

EmployeeId

integer

None.

SessionID

string

None.

DeviceID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StockistId": 1,
  "TourPlanDetailId": 2,
  "BusinessPartnerId": 3,
  "TotalAmount": 4.0,
  "Remark": "sample string 5",
  "PlaceByNetPrice": true,
  "Phone1": "sample string 7",
  "BMEmployeeId": 8,
  "OrderProductList": [
    {
      "ProductId": 1,
      "Qty": 2
    },
    {
      "ProductId": 1,
      "Qty": 2
    }
  ],
  "OrderGiftProductList": [
    {
      "ProductId": 1,
      "Qty": 2,
      "GiftProduct": true
    },
    {
      "ProductId": 1,
      "Qty": 2,
      "GiftProduct": true
    }
  ],
  "EmployeeId": 9,
  "SessionID": "sample string 10",
  "DeviceID": "sample string 11"
}

application/xml, text/xml

Sample:
<OrderPlaceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/application.knh.webapi.Models">
  <DeviceID xmlns="http://schemas.datacontract.org/2004/07/application.knh.webapi.BE">sample string 11</DeviceID>
  <EmployeeId xmlns="http://schemas.datacontract.org/2004/07/application.knh.webapi.BE">9</EmployeeId>
  <SessionID xmlns="http://schemas.datacontract.org/2004/07/application.knh.webapi.BE">sample string 10</SessionID>
  <BMEmployeeId>8</BMEmployeeId>
  <BusinessPartnerId>3</BusinessPartnerId>
  <OrderGiftProductList>
    <OrderGiftProductRequest>
      <GiftProduct>true</GiftProduct>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
    </OrderGiftProductRequest>
    <OrderGiftProductRequest>
      <GiftProduct>true</GiftProduct>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
    </OrderGiftProductRequest>
  </OrderGiftProductList>
  <OrderProductList>
    <OrderPlaceProductRequest>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
    </OrderPlaceProductRequest>
    <OrderPlaceProductRequest>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
    </OrderPlaceProductRequest>
  </OrderProductList>
  <Phone1>sample string 7</Phone1>
  <PlaceByNetPrice>true</PlaceByNetPrice>
  <Remark>sample string 5</Remark>
  <StockistId>1</StockistId>
  <TotalAmount>4</TotalAmount>
  <TourPlanDetailId>2</TourPlanDetailId>
</OrderPlaceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.