POST api/SpecialPrice/ImportSPList

Request Information

URI Parameters

None.

Body Parameters

Collection of PLRowDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

None.

StockRef

string

None.

Description

string

None.

SellPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Code": "sample string 2",
    "StockRef": "sample string 3",
    "Description": "sample string 4",
    "SellPrice": 5.0
  },
  {
    "Id": 1,
    "Code": "sample string 2",
    "StockRef": "sample string 3",
    "Description": "sample string 4",
    "SellPrice": 5.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfPLRowDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DMH.DTO.Upload">
  <PLRowDTO>
    <_x003C_Code_x003E_k__BackingField>sample string 2</_x003C_Code_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 4</_x003C_Description_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
    <_x003C_SellPrice_x003E_k__BackingField>5</_x003C_SellPrice_x003E_k__BackingField>
    <_x003C_StockRef_x003E_k__BackingField>sample string 3</_x003C_StockRef_x003E_k__BackingField>
  </PLRowDTO>
  <PLRowDTO>
    <_x003C_Code_x003E_k__BackingField>sample string 2</_x003C_Code_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 4</_x003C_Description_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
    <_x003C_SellPrice_x003E_k__BackingField>5</_x003C_SellPrice_x003E_k__BackingField>
    <_x003C_StockRef_x003E_k__BackingField>sample string 3</_x003C_StockRef_x003E_k__BackingField>
  </PLRowDTO>
</ArrayOfPLRowDTO>

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 'List`1'.

Response Information

Resource Description

None.