POST api/Product/GetProductStocks

Request Information

URI Parameters

None.

Body Parameters

ProductStockRequestDto
NameDescriptionTypeAdditional information
ProductId

integer

None.

TrackerNumber

string

None.

WarehouseId

integer

None.

EffectiveDate

date

None.

ExcludeWarehouseStockNull

boolean

None.

GetStockByTrackerNumber

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "TrackerNumber": "sample string 2",
  "WarehouseId": 1,
  "EffectiveDate": "2026-06-22T08:17:34.6743302+02:00",
  "ExcludeWarehouseStockNull": true,
  "GetStockByTrackerNumber": true
}

application/xml, text/xml

Sample:
<ProductStockRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestApi.DTO">
  <EffectiveDate>2026-06-22T08:17:34.6743302+02:00</EffectiveDate>
  <ExcludeWarehouseStockNull>true</ExcludeWarehouseStockNull>
  <GetStockByTrackerNumber>true</GetStockByTrackerNumber>
  <ProductId>1</ProductId>
  <TrackerNumber>sample string 2</TrackerNumber>
  <WarehouseId>1</WarehouseId>
</ProductStockRequestDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ProductStockResponseDto
NameDescriptionTypeAdditional information
TrackerNumber

string

None.

WarehouseId

integer

None.

WarehouseCode

string

None.

WarehouseName

string

None.

WarehouseStock

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TrackerNumber": "sample string 1",
    "WarehouseId": 1,
    "WarehouseCode": "sample string 2",
    "WarehouseName": "sample string 3",
    "WarehouseStock": 1.0
  },
  {
    "TrackerNumber": "sample string 1",
    "WarehouseId": 1,
    "WarehouseCode": "sample string 2",
    "WarehouseName": "sample string 3",
    "WarehouseStock": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductStockResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestApi.DTO">
  <ProductStockResponseDto>
    <TrackerNumber>sample string 1</TrackerNumber>
    <WarehouseCode>sample string 2</WarehouseCode>
    <WarehouseId>1</WarehouseId>
    <WarehouseName>sample string 3</WarehouseName>
    <WarehouseStock>1</WarehouseStock>
  </ProductStockResponseDto>
  <ProductStockResponseDto>
    <TrackerNumber>sample string 1</TrackerNumber>
    <WarehouseCode>sample string 2</WarehouseCode>
    <WarehouseId>1</WarehouseId>
    <WarehouseName>sample string 3</WarehouseName>
    <WarehouseStock>1</WarehouseStock>
  </ProductStockResponseDto>
</ArrayOfProductStockResponseDto>