POST api/retailerApp/GenerateRCOrder?CustomerId={CustomerId}&SessionId={SessionId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CustomerId

integer

Required

SessionId

string

Required

Body Parameters

GenerateOrderDTO
NameDescriptionTypeAdditional information
StockistId

integer

None.

Remark

string

None.

ProductList

Collection of GenerateOrder_ProductList

None.

Request Formats

application/json, text/json

Sample:
{
  "StockistId": 1,
  "Remark": "sample string 2",
  "ProductList": [
    {
      "ProductId": 1,
      "Qty": 2
    },
    {
      "ProductId": 1,
      "Qty": 2
    }
  ]
}

application/xml, text/xml

Sample:
<GenerateOrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/application.knh.webapi.BE">
  <ProductList>
    <GenerateOrder_ProductList>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
    </GenerateOrder_ProductList>
    <GenerateOrder_ProductList>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
    </GenerateOrder_ProductList>
  </ProductList>
  <Remark>sample string 2</Remark>
  <StockistId>1</StockistId>
</GenerateOrderDTO>

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.