POST api/Report/StockValue

Request Information

URI Parameters

None.

Body Parameters

ReportParameters
NameDescriptionTypeAdditional information
BeginDate

date

None.

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "BeginDate": "2025-07-06T12:11:42.8774081+00:00",
  "EndDate": "2025-07-06T12:11:42.8774081+00:00"
}

text/html

Sample:
{"BeginDate":"2025-07-06T12:11:42.8774081+00:00","EndDate":"2025-07-06T12:11:42.8774081+00:00"}

application/xml, text/xml

Sample:
<ReportParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VetAPI.Models">
  <BeginDate>2025-07-06T12:11:42.8774081+00:00</BeginDate>
  <EndDate>2025-07-06T12:11:42.8774081+00:00</EndDate>
</ReportParameters>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReportParameters'.

Response Information

Resource Description

Collection of StockValue
NameDescriptionTypeAdditional information
StockId

integer

None.

Type

string

None.

CategoryDescription

string

None.

SubcategoryDesciption

string

None.

Description

string

None.

MeasureUnit

string

None.

InvoiceDescription

string

None.

StockOnHand

decimal number

None.

Schedule

integer

None.

PriceExclVat

decimal number

None.

StockValueExclVat

decimal number

None.

StockValueInclVat

decimal number

None.

PracticeId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StockId": 1,
    "Type": "sample string 2",
    "CategoryDescription": "sample string 3",
    "SubcategoryDesciption": "sample string 4",
    "Description": "sample string 5",
    "MeasureUnit": "sample string 6",
    "InvoiceDescription": "sample string 7",
    "StockOnHand": 8.1,
    "Schedule": 9,
    "PriceExclVat": 1.1,
    "StockValueExclVat": 1.1,
    "StockValueInclVat": 1.1,
    "PracticeId": 1
  },
  {
    "StockId": 1,
    "Type": "sample string 2",
    "CategoryDescription": "sample string 3",
    "SubcategoryDesciption": "sample string 4",
    "Description": "sample string 5",
    "MeasureUnit": "sample string 6",
    "InvoiceDescription": "sample string 7",
    "StockOnHand": 8.1,
    "Schedule": 9,
    "PriceExclVat": 1.1,
    "StockValueExclVat": 1.1,
    "StockValueInclVat": 1.1,
    "PracticeId": 1
  }
]

text/html

Sample:
[{"StockId":1,"Type":"sample string 2","CategoryDescription":"sample string 3","SubcategoryDesciption":"sample string 4","Description":"sample string 5","MeasureUnit":"sample string 6","InvoiceDescription":"sample string 7","StockOnHand":8.1,"Schedule":9,"PriceExclVat":1.1,"StockValueExclVat":1.1,"StockValueInclVat":1.1,"PracticeId":1},{"StockId":1,"Type":"sample string 2","CategoryDescription":"sample string 3","SubcategoryDesciption":"sample string 4","Description":"sample string 5","MeasureUnit":"sample string 6","InvoiceDescription":"sample string 7","StockOnHand":8.1,"Schedule":9,"PriceExclVat":1.1,"StockValueExclVat":1.1,"StockValueInclVat":1.1,"PracticeId":1}]

application/xml, text/xml

Sample:
<ArrayOfStockValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VetAPI.DataModel">
  <StockValue>
    <CategoryDescription>sample string 3</CategoryDescription>
    <Description>sample string 5</Description>
    <InvoiceDescription>sample string 7</InvoiceDescription>
    <MeasureUnit>sample string 6</MeasureUnit>
    <PracticeId>1</PracticeId>
    <PriceExclVat>1.1</PriceExclVat>
    <Schedule>9</Schedule>
    <StockId>1</StockId>
    <StockOnHand>8.1</StockOnHand>
    <StockValueExclVat>1.1</StockValueExclVat>
    <StockValueInclVat>1.1</StockValueInclVat>
    <SubcategoryDesciption>sample string 4</SubcategoryDesciption>
    <Type>sample string 2</Type>
  </StockValue>
  <StockValue>
    <CategoryDescription>sample string 3</CategoryDescription>
    <Description>sample string 5</Description>
    <InvoiceDescription>sample string 7</InvoiceDescription>
    <MeasureUnit>sample string 6</MeasureUnit>
    <PracticeId>1</PracticeId>
    <PriceExclVat>1.1</PriceExclVat>
    <Schedule>9</Schedule>
    <StockId>1</StockId>
    <StockOnHand>8.1</StockOnHand>
    <StockValueExclVat>1.1</StockValueExclVat>
    <StockValueInclVat>1.1</StockValueInclVat>
    <SubcategoryDesciption>sample string 4</SubcategoryDesciption>
    <Type>sample string 2</Type>
  </StockValue>
</ArrayOfStockValue>