GET api/V3/DistributorProducts/GetDistributorProductStocks?distributorErpId={distributorErpId}&startDate={startDate}&endDate={endDate}

Gets opening and closing values for distributor's products.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
distributorErpId

distributorErpId.

string

Required

startDate

date from which api gives data

date

Required

endDate

End date for api response

date

Required

Body Parameters

None.

Response Information

Resource Description

all entries for mentioned date range are returned.

DistributorStockModel
NameDescriptionTypeAdditional information
Date

Date of the order

string

None.

DistributorErpId

Erp Id of the Distributor

string

None.

ProductErpId

Erp Id of the Product

string

None.

OpeningStockQty

Opening stock quantity for the product for current distributor

decimal number

None.

OpeningStockQtyStdUnit

Opening stock quantity in standard units for the product for current distributor

decimal number

None.

OpeningStockQtySuperUnit

Opening stock quantity in super units for the product for current distributor

decimal number

None.

OpeningStockValue

Opening stock value for the product for current distributor

decimal number

None.

ClosingStockQty

closing stock quantity for the product for current distributor

decimal number

None.

ClosingStockQtyStdUnit

closing stock quantity in standard units for the product for current distributor

decimal number

None.

ClosingStockQtySuperUnit

closing stock quantity in super units for the product for current distributor

decimal number

None.

ClosingStockValue

closing stock value for the product for current distributor

decimal number

None.

Unit

Unit of the Product

string

None.

StandardUnit

Standard Unit of the Product

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Date": "sample string 1",
  "DistributorErpId": "sample string 2",
  "ProductErpId": "sample string 3",
  "OpeningStockQty": 4.0,
  "OpeningStockQtyStdUnit": 5.0,
  "OpeningStockQtySuperUnit": 6.0,
  "OpeningStockValue": 7.0,
  "ClosingStockQty": 8.0,
  "ClosingStockQtyStdUnit": 9.0,
  "ClosingStockQtySuperUnit": 10.0,
  "ClosingStockValue": 11.0,
  "Unit": "sample string 12",
  "StandardUnit": "sample string 13"
}

application/xml, text/xml

Sample:
<DistributorStockModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
  <ClosingStockQty>8</ClosingStockQty>
  <ClosingStockQtyStdUnit>9</ClosingStockQtyStdUnit>
  <ClosingStockQtySuperUnit>10</ClosingStockQtySuperUnit>
  <ClosingStockValue>11</ClosingStockValue>
  <Date>sample string 1</Date>
  <DistributorErpId>sample string 2</DistributorErpId>
  <OpeningStockQty>4</OpeningStockQty>
  <OpeningStockQtyStdUnit>5</OpeningStockQtyStdUnit>
  <OpeningStockQtySuperUnit>6</OpeningStockQtySuperUnit>
  <OpeningStockValue>7</OpeningStockValue>
  <ProductErpId>sample string 3</ProductErpId>
  <StandardUnit>sample string 13</StandardUnit>
  <Unit>sample string 12</Unit>
</DistributorStockModel>