POST api/PriceList

Request Information

URI Parameters

None.

Body Parameters

PriceListViewModel
NameDescriptionTypeAdditional information
StockId

integer

None.

StockOnHand

decimal number

None.

LotSummary

string

None.

ProtocolItems

Collection of PriceListViewModel

None.

DefaultMeasureAmount

decimal number

None.

PriceListId

integer

None.

Type

string

None.

CategoryDescription

string

None.

SubcategoryDesciption

string

None.

Description

string

None.

Cost

decimal number

None.

MarkupPerc

decimal number

None.

PriceExclVat

decimal number

None.

Vat

decimal number

None.

PriceInclVat

decimal number

None.

MeasureUnit

string

None.

InvoiceDescription

string

None.

ViewConsultation

boolean

None.

ViewHospitalization

boolean

None.

ViewReceptionist

boolean

None.

ViewNurseConsultation

boolean

None.

ViewNurseHospitalization

boolean

None.

ViewBoarding

boolean

None.

PracticeId

integer

None.

LastUpdated

date

None.

Schedule

integer

None.

Warning

string

None.

Rule

integer

None.

LowStockOnHand

decimal number

None.

IsProtocol

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "StockId": 1,
  "StockOnHand": 1.1,
  "LotSummary": "sample string 2",
  "ProtocolItems": [],
  "DefaultMeasureAmount": 1.1,
  "PriceListId": 3,
  "Type": "sample string 4",
  "CategoryDescription": "sample string 5",
  "SubcategoryDesciption": "sample string 6",
  "Description": "sample string 7",
  "Cost": 1.1,
  "MarkupPerc": 1.1,
  "PriceExclVat": 1.1,
  "Vat": 1.1,
  "PriceInclVat": 1.1,
  "MeasureUnit": "sample string 8",
  "InvoiceDescription": "sample string 9",
  "ViewConsultation": true,
  "ViewHospitalization": true,
  "ViewReceptionist": true,
  "ViewNurseConsultation": true,
  "ViewNurseHospitalization": true,
  "ViewBoarding": true,
  "PracticeId": 16,
  "LastUpdated": "2025-07-06T12:22:16.3467102+00:00",
  "Schedule": 17,
  "Warning": "sample string 18",
  "Rule": 1,
  "LowStockOnHand": 1.1,
  "IsProtocol": true
}

text/html

Sample:
{"StockId":1,"StockOnHand":1.1,"LotSummary":"sample string 2","ProtocolItems":[],"DefaultMeasureAmount":1.1,"PriceListId":3,"Type":"sample string 4","CategoryDescription":"sample string 5","SubcategoryDesciption":"sample string 6","Description":"sample string 7","Cost":1.1,"MarkupPerc":1.1,"PriceExclVat":1.1,"Vat":1.1,"PriceInclVat":1.1,"MeasureUnit":"sample string 8","InvoiceDescription":"sample string 9","ViewConsultation":true,"ViewHospitalization":true,"ViewReceptionist":true,"ViewNurseConsultation":true,"ViewNurseHospitalization":true,"ViewBoarding":true,"PracticeId":16,"LastUpdated":"2025-07-06T12:22:16.3467102+00:00","Schedule":17,"Warning":"sample string 18","Rule":1,"LowStockOnHand":1.1,"IsProtocol":true}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.

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 'PriceListViewModel'.

Response Information

Resource Description

PriceList
NameDescriptionTypeAdditional information
PriceListId

integer

None.

Type

string

None.

CategoryDescription

string

None.

SubcategoryDesciption

string

None.

Description

string

None.

Cost

decimal number

None.

MarkupPerc

decimal number

None.

PriceExclVat

decimal number

None.

Vat

decimal number

None.

PriceInclVat

decimal number

None.

MeasureUnit

string

None.

InvoiceDescription

string

None.

ViewConsultation

boolean

None.

ViewHospitalization

boolean

None.

ViewReceptionist

boolean

None.

ViewNurseConsultation

boolean

None.

ViewNurseHospitalization

boolean

None.

ViewBoarding

boolean

None.

PracticeId

integer

None.

LastUpdated

date

None.

Schedule

integer

None.

Warning

string

None.

Rule

integer

None.

LowStockOnHand

decimal number

None.

IsProtocol

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "PriceListId": 1,
  "Type": "sample string 2",
  "CategoryDescription": "sample string 3",
  "SubcategoryDesciption": "sample string 4",
  "Description": "sample string 5",
  "Cost": 1.1,
  "MarkupPerc": 1.1,
  "PriceExclVat": 1.1,
  "Vat": 1.1,
  "PriceInclVat": 1.1,
  "MeasureUnit": "sample string 6",
  "InvoiceDescription": "sample string 7",
  "ViewConsultation": true,
  "ViewHospitalization": true,
  "ViewReceptionist": true,
  "ViewNurseConsultation": true,
  "ViewNurseHospitalization": true,
  "ViewBoarding": true,
  "PracticeId": 14,
  "LastUpdated": "2025-07-06T12:22:17.0665047+00:00",
  "Schedule": 15,
  "Warning": "sample string 16",
  "Rule": 1,
  "LowStockOnHand": 1.1,
  "IsProtocol": true
}

text/html

Sample:
{"PriceListId":1,"Type":"sample string 2","CategoryDescription":"sample string 3","SubcategoryDesciption":"sample string 4","Description":"sample string 5","Cost":1.1,"MarkupPerc":1.1,"PriceExclVat":1.1,"Vat":1.1,"PriceInclVat":1.1,"MeasureUnit":"sample string 6","InvoiceDescription":"sample string 7","ViewConsultation":true,"ViewHospitalization":true,"ViewReceptionist":true,"ViewNurseConsultation":true,"ViewNurseHospitalization":true,"ViewBoarding":true,"PracticeId":14,"LastUpdated":"2025-07-06T12:22:17.0665047+00:00","Schedule":15,"Warning":"sample string 16","Rule":1,"LowStockOnHand":1.1,"IsProtocol":true}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.AspNetUser' contains cycles and cannot be serialized if reference tracking is disabled.