POST api/PriceListsController/GetHistoryListSimpleStaff

Request Information

URI Parameters

None.

Body Parameters

SimpleStaffPriceList
NameDescriptionTypeAdditional information
key_code

integer

Required

insur_code

integer

Required

district_code

integer

Required

business_branch_code

integer

Required

oper_code

integer

Required

group_num

integer

Required

employee_code

integer

Required

occupation_code

integer

Required

from_date

date

Required

to_date

date

Required

percent

decimal number

None.

sum

decimal number

None.

interface_code

string

String length: inclusive between 0 and 10

old_code

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "key_code": 1,
  "insur_code": 2,
  "district_code": 3,
  "business_branch_code": 4,
  "oper_code": 5,
  "group_num": 6,
  "employee_code": 7,
  "occupation_code": 8,
  "from_date": "2024-03-29T18:22:21.7979423+03:00",
  "to_date": "2024-03-29T18:22:21.7979423+03:00",
  "percent": 11.0,
  "sum": 12.0,
  "interface_code": "sample string 13",
  "old_code": 1
}

application/xml, text/xml

Sample:
<SimpleStaffPriceList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <business_branch_code>4</business_branch_code>
  <district_code>3</district_code>
  <employee_code>7</employee_code>
  <from_date>2024-03-29T18:22:21.7979423+03:00</from_date>
  <group_num>6</group_num>
  <insur_code>2</insur_code>
  <interface_code>sample string 13</interface_code>
  <key_code>1</key_code>
  <occupation_code>8</occupation_code>
  <old_code>1</old_code>
  <oper_code>5</oper_code>
  <percent>11</percent>
  <sum>12</sum>
  <to_date>2024-03-29T18:22:21.7979423+03:00</to_date>
</SimpleStaffPriceList>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {},
  {}
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfanyType:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfanyType:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.