GET api/V3/Distributor/GetStock/{lastStockId}

View the Stocks of a Particular Distributor (100 at a time) Starting from lastStockId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lastStockId

StockId after which Data has to be Requested

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of Distributor Stocks

Collection of V3.DistributorStock
NameDescriptionTypeAdditional information
StockId

Stock Id

integer

None.

DistributorCode

ERP ID of the Distributor

string

None.

Time

Time at which Stock was taken

date

None.

SyncTime

Time at Which Data was synced to the Server

date

None.

Distributor

Name of the Distributor

string

None.

Items

Details of the Stock

Collection of DistributorStockItems

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StockId": 1,
    "DistributorCode": "sample string 2",
    "Time": "2025-04-04T05:17:57.4369853+00:00",
    "SyncTime": "2025-04-04T05:17:57.4369853+00:00",
    "Distributor": "sample string 5",
    "Items": [
      {
        "ProductName": "sample string 1",
        "ProductCode": "sample string 2",
        "StockCount": 3
      },
      {
        "ProductName": "sample string 1",
        "ProductCode": "sample string 2",
        "StockCount": 3
      }
    ]
  },
  {
    "StockId": 1,
    "DistributorCode": "sample string 2",
    "Time": "2025-04-04T05:17:57.4369853+00:00",
    "SyncTime": "2025-04-04T05:17:57.4369853+00:00",
    "Distributor": "sample string 5",
    "Items": [
      {
        "ProductName": "sample string 1",
        "ProductCode": "sample string 2",
        "StockCount": 3
      },
      {
        "ProductName": "sample string 1",
        "ProductCode": "sample string 2",
        "StockCount": 3
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfDistributorStock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models">
  <DistributorStock>
    <Distributor>sample string 5</Distributor>
    <DistributorCode>sample string 2</DistributorCode>
    <Items>
      <DistributorStockItems>
        <ProductCode>sample string 2</ProductCode>
        <ProductName>sample string 1</ProductName>
        <StockCount>3</StockCount>
      </DistributorStockItems>
      <DistributorStockItems>
        <ProductCode>sample string 2</ProductCode>
        <ProductName>sample string 1</ProductName>
        <StockCount>3</StockCount>
      </DistributorStockItems>
    </Items>
    <StockId>1</StockId>
    <Time>2025-04-04T05:17:57.4369853+00:00</Time>
  </DistributorStock>
  <DistributorStock>
    <Distributor>sample string 5</Distributor>
    <DistributorCode>sample string 2</DistributorCode>
    <Items>
      <DistributorStockItems>
        <ProductCode>sample string 2</ProductCode>
        <ProductName>sample string 1</ProductName>
        <StockCount>3</StockCount>
      </DistributorStockItems>
      <DistributorStockItems>
        <ProductCode>sample string 2</ProductCode>
        <ProductName>sample string 1</ProductName>
        <StockCount>3</StockCount>
      </DistributorStockItems>
    </Items>
    <StockId>1</StockId>
    <Time>2025-04-04T05:17:57.4369853+00:00</Time>
  </DistributorStock>
</ArrayOfDistributorStock>