POST api/POS/uploadStock

Request Information

URI Parameters

None.

Body Parameters

StockData
NameDescriptionTypeAdditional information
MerchantId

integer

None.

From

string

None.

Date

date

None.

StockList

Collection of StockModel

None.

Request Formats

application/json, text/json

Sample:
{
  "MerchantId": 1,
  "From": "sample string 2",
  "Date": "2024-11-06T15:33:17.5894+00:00",
  "StockList": [
    {
      "UId": 1,
      "SKU": "sample string 2",
      "Unit": "sample string 3",
      "Stock": 1.1,
      "Status": 4
    },
    {
      "UId": 1,
      "SKU": "sample string 2",
      "Unit": "sample string 3",
      "Stock": 1.1,
      "Status": 4
    }
  ]
}

application/xml, text/xml

Sample:
<StockData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models">
  <Date>2024-11-06T15:33:17.5894+00:00</Date>
  <From>sample string 2</From>
  <MerchantId>1</MerchantId>
  <StockList>
    <StockModel>
      <SKU>sample string 2</SKU>
      <Status>4</Status>
      <Stock>1.1</Stock>
      <UId>1</UId>
      <Unit>sample string 3</Unit>
    </StockModel>
    <StockModel>
      <SKU>sample string 2</SKU>
      <Status>4</Status>
      <Stock>1.1</Stock>
      <UId>1</UId>
      <Unit>sample string 3</Unit>
    </StockModel>
  </StockList>
</StockData>

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.