POST api/Store/AddOrderMasterDemand

Request Information

URI Parameters

None.

Body Parameters

OrderMasterDemand
NameDescriptionTypeAdditional information
details

Collection of Storedetails

None.

Businessid

integer

None.

TotalAmount

decimal number

None.

UserID

integer

None.

Customerid

integer

None.

OrderDateTime

string

None.

OrderLocation

string

None.

OrderLatitude

string

None.

OrderLongitude

string

None.

StateId

integer

None.

OrderSource

string

None.

DeliveryLocation

string

None.

DeliveryLatitude

string

None.

DeliveryLongitude

string

None.

cityname

string

None.

Request Formats

application/json, text/json

Sample:
{
  "details": [
    {
      "ItemId": 1,
      "SkulId": 2,
      "Quantity": 3,
      "Price": 4.1,
      "Discount": 5.1,
      "Notes": "sample string 6",
      "distributorId": 7,
      "itemName": "sample string 8",
      "skuCode": "sample string 9",
      "promoprice": 10.1,
      "stockPointId": 11,
      "stockpointSellingPrice": 12.0,
      "BundleSkuId": 13
    },
    {
      "ItemId": 1,
      "SkulId": 2,
      "Quantity": 3,
      "Price": 4.1,
      "Discount": 5.1,
      "Notes": "sample string 6",
      "distributorId": 7,
      "itemName": "sample string 8",
      "skuCode": "sample string 9",
      "promoprice": 10.1,
      "stockPointId": 11,
      "stockpointSellingPrice": 12.0,
      "BundleSkuId": 13
    }
  ],
  "Businessid": 1,
  "TotalAmount": 2.0,
  "UserID": 3,
  "Customerid": 4,
  "OrderDateTime": "sample string 5",
  "OrderLocation": "sample string 6",
  "OrderLatitude": "sample string 7",
  "OrderLongitude": "sample string 8",
  "StateId": 9,
  "OrderSource": "sample string 10",
  "DeliveryLocation": "sample string 11",
  "DeliveryLatitude": "sample string 12",
  "DeliveryLongitude": "sample string 13",
  "cityname": "sample string 14"
}

application/xml, text/xml

Sample:
<OrderMasterDemand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <Businessid>1</Businessid>
  <Customerid>4</Customerid>
  <DeliveryLatitude>sample string 12</DeliveryLatitude>
  <DeliveryLocation>sample string 11</DeliveryLocation>
  <DeliveryLongitude>sample string 13</DeliveryLongitude>
  <OrderDateTime>sample string 5</OrderDateTime>
  <OrderLatitude>sample string 7</OrderLatitude>
  <OrderLocation>sample string 6</OrderLocation>
  <OrderLongitude>sample string 8</OrderLongitude>
  <OrderSource>sample string 10</OrderSource>
  <StateId>9</StateId>
  <TotalAmount>2</TotalAmount>
  <UserID>3</UserID>
  <cityname>sample string 14</cityname>
  <details>
    <Storedetails>
      <BundleSkuId>13</BundleSkuId>
      <Discount>5.1</Discount>
      <ItemId>1</ItemId>
      <Notes>sample string 6</Notes>
      <Price>4.1</Price>
      <Quantity>3</Quantity>
      <SkulId>2</SkulId>
      <distributorId>7</distributorId>
      <itemName>sample string 8</itemName>
      <promoprice>10.1</promoprice>
      <skuCode>sample string 9</skuCode>
      <stockPointId>11</stockPointId>
      <stockpointSellingPrice>12</stockpointSellingPrice>
    </Storedetails>
    <Storedetails>
      <BundleSkuId>13</BundleSkuId>
      <Discount>5.1</Discount>
      <ItemId>1</ItemId>
      <Notes>sample string 6</Notes>
      <Price>4.1</Price>
      <Quantity>3</Quantity>
      <SkulId>2</SkulId>
      <distributorId>7</distributorId>
      <itemName>sample string 8</itemName>
      <promoprice>10.1</promoprice>
      <skuCode>sample string 9</skuCode>
      <stockPointId>11</stockPointId>
      <stockpointSellingPrice>12</stockpointSellingPrice>
    </Storedetails>
  </details>
</OrderMasterDemand>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.